Answer Questions
mcssnt /CLR: All files recompile when I change a referenced C# library?
Hi! I have a MFC application (compiled with /CLR) which references a C# library. When I change something in my C# library, the whole MFC application recompiles (more than 200 files!). Is there a way to prevent this The C# library is used only in 1 file, so it would be nice, if only this file compiles. Thanks for any help. Jus Take a look at http://forums.microsoft.com/MSDN/ShowPost.asp ...Show All
Anthony Borton UNICODE-UNICODE-UNICODE!!!
Again UNICODE Console C++ programs Dear MSDN C++ experts, I have Visual Studio 2005 Professional installed, I need a help issue about something annoying a bit. My professor in college asked us to make a report how to write in name in Arabic using UNICODE, in fact I was unable to make such a program as it's so hard for me as I'm still a beginner. I asked the professor about this issue, he told me that Arabic could be printed out ...Show All
GerryAO ECMA C++/CLI and VC++ 2005
Does the ECMA C++/CLI Standards document ECMA-372 delineate the exact C++/CLI language in VC++ 2005 If not, what are the differences. I did log the suggestion. Thanks for pointing it out to me. Then I can only wait until a VC++ compiler team person gives me an answer. It is important for MS to provide a document specifying the C++/CLI specification used in VC++ 2005 and, if ...Show All
Nibu Thomas Class View doesn't show all classes if conditional compilation used
By using VSudio 2005 with following code, the CMyClass is not shown in class view if I define MY_OPTIONAL_FEATURE in the .h file. To get it works, I have to add MY_OPTIONAL_FEATURE into Project property>Configurationproperty>C/C++>Preprocessor>Preprocessor definitions. Is there a way to ignore the condtional compilation and show all class like VStudio6 #if defined (MY_OPTIONAL_FEATURE) class CMyClass { int m_nCount; }; ...Show All
Terry Starkey Lots of linking errors porting from VC++6
Hey all. I'm porting a VC++6 project to 2005, and making some minor code changes to remove some deprecated calls, I get these linking errors during build: Error 3 error LNK2019: unresolved external symbol "unsigned char __cdecl build_cmd(unsigned char,unsigned char,unsigned char *)" ( build_cmd@@YAEEEPAE@Z ) referenced in function "protected: void __thiscall CMy1tcelDoc::OnEeon(void)" ( OnEeon@CMy1tcelDoc@@IAEXXZ ) ...Show All
ko712000 how
This is my first time using Microsoft Visual C++. I have written the coding down for the program. Now how do I use the program Pressing F5 will build the application ( turn what you typed into an executable program ) and start it. If your application does not contain any code to stop it running ( such as waiting for the keyboard ) then it may seem to run and end right away, as it may just run through without p ...Show All
Jason Frazier -MSFT- C# to C++
using System; using System.Drawing; using System.Collections; using System.ComponentModel; using System.Windows.Forms; using System.Data; namespace Map_Maker_Worker { /// <summary> /// Dialog for a useless application that runs a checksum on multiple maps. /// </summary> public class frmSigner : System.Windows.Forms.Form { private System.Windows.Forms.Button btnSelectMaps; priv ...Show All
Pete Richards TIME CONVERSION BUG
// TimeConstructionBug.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include "ATLComTime.h" int _tmain( int argc, _TCHAR* argv[]) { COleDateTime a(2006, 12, 1, 17, 0, 0); SYSTEMTIME b; a.GetAsSystemTime(b); FILETIME c; ::SystemTimeToFileTime(&b, &c); COleDateTime d(c); CString startTime(a.Format()); CString endTime(d.Format()); printf( " ...Show All
Plow Array of System::string in C++ 2005
When I want to make a string in C++ 2005, I write System::String ^ myString; But now I want to make not only one string, but array from System::String (s). How can I do it A know how do it in VB: Dim msStringArray(10) As String But I don't now how do it in C++... array<String ^> ^ MyArray = gcnew array<String ^>(10); And what about two-dimensional arrays In Vb it is: Dim myArray(10,2) A ...Show All
CDR-Maverick-TG htonl source code
Hi All, My first ever posting. I am lookling for the sourec code for htonl, htons, ntohl etc function calls. I need to generate my own implmentation of these calls and hence need the source code for the same. All Suggestions are welcome!!! Thanks in advance -Sachin Thanks Nishant, Well, i was hoping for the same as well as to find some source from Unix site(s) as these calls are very much supported on them. but not to any ...Show All
Bill Foust-DAI Vector: deque iterator not dereferencable
Hi, i've got a problem with a stl vector, and i cant find any information about this error. the error is: deque iterator not dereferencable while (!Servers->empty()){ if (RequestServerInfo(&Servers->front())!=0){ MisScanned++; } else { if (DealWithServerInfo(&Servers->front())!=0){ //ERROR LOCATION MisScanned++; } after some debugging, i found that the error was at the DealWithServerInfo function call. however ...Show All
John Burrows Error when trying to run apps on other computers
Hi! I've just switched to Visual C++ Express Beta. All my apps compile and work well, that's on My PC only! Whenever I move my app to another PC and try to run it It gives me this wierd error: "This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this program" . Am I doing something wrong. Am I not getting some files that should be with my apps, or am I not setting the lin ...Show All
Venkat708 about performance of managed and unmanaged code, please explain it
I want to compare the performance of managed and unmanaged code, so I wrote a simple example. ************************************************** #include <stdlib.h> #include <sys/timeb.h> #include <stdio.h> #include <vector> #include <algorithm> using namespace std; using namespace System; void print_cur_time(); void test_sort_1(); void test_sort_2(); int main() { printf("\n\nTime for sorting array\n"); ...Show All
Peter Foot Pls help me out! I cannot build a very simple Hello World app.
I have been trying to build the following simple app for these two days. #include <iostream> using namespace std; int main() { cout << "Hello World!" << endl; return 0; } VS2005 C++ Express complains this way; Warning 2 warning C4512: 'std::basic_ostream<_E,_Tr>::sentry' : assignment operator could not be generated c:\program ...Show All
Ronnell linking problems in vc 6.0 and vs2005
dear all, I'm facing a problem with linking of a dll( prepared in vs 2005 ), with the vc 6.0. Here are the details, I have some funcions defined in a win32 dll project (vs 2005). it looks like : int __declspec(dllexport) login(string userId, string passwd) { //code goes here } when I build the project it generates a dll, a lib and a def file. when I use the lib (put in settings>link>input additional libs), and ...Show All
