Answer Questions
David Friesen Cannot add class
I just downloaded the new Visual C++ Express Edition Beta 2 and created a new project, but I can't add any classes. It just says "Code model not available, cannot add class." Any one know what's going on and how to fix it This is a bug with VC++ Express Beta2. We fixed it in our current bits and you should see the bug fixed in the final release. Thanks, Tarek That's a pretty useless response. A developm ...Show All
Daniel at SCANA dependencies between assemblies
I am using VC2005 B2. I have two assemblies that have been compiled with CLR but contain a mix of managed and unmanaged classes. Whenever I change code and rebuild the one assembly, the VC seems to recompile all of the classes in the dependent module, even though no headers have been changed. Is this to be expected That is the expected behavior if you have a reference from one project to the other. You ca ...Show All
jy_lam What will cause AfxGetModuleState() return different values during DLL initialization?
My application has over 100 Dlls. During startup, many resources failed to be found. I finally find out this is because AfxGetModuleState() returns different values in the CDynLinkLibrary's constructor, but I get no idea how can this happen. Anybody can help Thanks. AFX_MANAGE_STATE(AfxGetModuleState( )) is redundant, as you're telling MFC to context-switch to the context it's already in. I would try to tro ...Show All
Sneath Problem compiling a program
Hi all, recently i had to work on a program which was running ok on VC++ 6. Due to certain restrictions i only can work with visual studio 2005 express beta 2. When i tried to compile the program in VS 2005 express beta 2, i got these errors which never occurred in VC++ 6: Compiling... STDAFX.CPP Compiling... Database.cpp DatabaseMarpos.cpp DataCom.CPP DBMarpos.cpp EBlockEntry.cpp EBlockLabel.cpp EdcsSettings.cpp EDCSSetupDialog ...Show All
Ran Rose Unresolved external symbol _main referenced in function _mainCRTStartup
Hello, When I upgraded my code from VS2003 to VS2005, the VS2005 gave me these error responses. Error 189 error LNK2019: unresolved external symbol _main referenced in function _mainCRTStartup Error 190 fatal error LNK1120: 1 unresolved externals The program works well under VS2005. I do not know how to fix this , please help me.... Thank you very much! Yang Thanks for your quick response. I am using MFC. ...Show All
Darkwings Running a signed managed assembly with an unsigned unmanaged dll
Hello, I have an unsigned (no snk), unmanaged DLL from a 3rd party supplier written in C++. I have written an assembly in Visual C++ (using managed extensions) that invokes functions in the DLL. This assembly has a strong named key. When I try and invoke the application (it is a web app) I get the following error message: Could not load file or assembly '<signed assembly>' or one of its dependencies. Strong name signature could not b ...Show All
Jemue error C2440: 'return' : cannot convert from 'IPromInfo **' to 'ATL::CComPtr<T> *'
Hi, I'm compiling one vc6 project into vc8. It is using vector class of STL. it is giving error: Error 8 error C2440: 'return' : cannot convert from 'IPromInfo **' to 'ATL::CComPtr<T> *' d:\program files\microsoft visual studio 8 \vc\include\vector 302 The calling point is: for (i=0; i< m_vecOptionalRiderBoards.size(); i++) { CComQIPtr<IBoardInfoFileIO> pFileIO(m_vecOptionalRiderBoards ); pFileIO.p-> ...Show All
Friendly Dog hae i need some help
i made a program in which i used char *name; cin>>name; also i used cin>>*name; but both of these syntax are not giving any error but at runtime debug window opens and tell me whats unresolved external errors i think it will be stupid to ask these question frm ya but i am a new programmer what so ever so please reply me as soon as possible or tell me if i have any concept mistake The ASCII characterset has 256 chara ...Show All
khemmerl Unicode characters in console-application.
I'm writing a program that prints the date in different languages, but it dosn't work with languages that uses the Unicode Character Set. Here's the source-code: #include <iostream> #include <locale> #include <time.h> using namespace std; int wmain(void) { wchar_t date[81]; time_t currentTime; struct tm tmTime; time(¤tTime); gmtime_s(&tmTime, ¤tTime); _wasctime_s(date, 80, &tmTime); loc ...Show All
bhat I got this error when compiling "Error c2784"
Hi everyone, Can someone help me with my program I've been working on it for awhile and still cant get it to work. Here's the listing: #pragma warning (disable : 4786) //disable warning about truncation of string data #include <iostream> #include <fstream> #include <string> #include <set> #include "masterheader.h" using namespace std; //type definitions typedef multiset <MasterHeader> typeMH; ...Show All
Pradeep T How to link to the correct STL library when a third party dll is based on VC6?
I have a third party dll targeted for VC6 and .net 2003. It worked well with my old MFC application. After it was migrated to VC 2005, it throws an exception of access violation whenever the stl string information in the object is accessed. Accessing other members of the object is OK. I guess it might be linked to the stl.net library instead of the old stl library that the dll is based on. Anyone knows what is the problem and how it c ...Show All
jerome c Link Error/Resource file/VC++6/WinXP
Pls Guide me i have problem in compiling. /*When i build the following project i get a link error which says """Compiling resources... Compiling... file1.cpp Linking... nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __endthreadex nafxcwd.lib(thrdcore.obj) : error LNK2001: unresolved external symbol __beginthreadex Debug/myproject1.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. myproject1.exe ...Show All
Ravin08 Process Info in UNICODE
Hi I am unable to enumerate process in unicode build what code should i use for enumerating process info Currently I m unable to get the info with this code, if i run without UNICODE its working perfectly FEnumProcesses = (PFEnumProcesses)::GetProcAddress(PSAPI,( LPCSTR )_T("EnumProcesses")); FEnumProcesses always NULL Regards If you look at the raw structure of a Win32 portable executable, you will see that all ...Show All
Jim Vinsel How to read unicode character??
Hi all, Currently i am doing one project related to unicode file reading, showing the characters in the ListCtrl . I got my result applying CFile, API WideCharToMultibyte & the reverse one.Here I read BOM for each file(.txt),then got the bytes for respective characters. but i have some confusion regarding whether those functions work properly if the character is more than two bytes ...Show All
TimP Problem calling a function as thread
i get an debug assertion failed (file: wincore.cpp line: 884) when i call the following AfxBeginThread. The function CardThread will do some I/O on a usb device. Then i trace down the problem, it's caused by calling UpdateData(TRUE) as i wanna display what i read from the device to a dialog box. it's a dialog based application with only one main dialog box. if i keep on clicking ignore when the debug assertion comes up whenever it come ...Show All
