CThreadLocalObject Crash on Exit I recently ported an app from VC2003 to VC2005. My app now crashes on exit. The following is the stack trace from the app. mfc80d.dll!CThreadLocalObject::GetData(CNoTrackObject * (void)* pfnCreateObject=0x78245650) Line 409 + 0x3 bytes C++ mfc80d.dll!CThreadLocal<AFX_MODULE_THREAD_STATE>::GetData() Line 177 ... 29 Jul 2007 21:33
CFileDialog and "My Computer" Hi all, The MFC class CFileDialog is used allowing the user to select a file. The problem is that "My Computer" does not show anything. The local drives are not available and can not be seen. "My Computer" works fine ONLY if a call to CoInitializeEx() was made in a single-threaded apartment (STA). This fu... 10 Jul 2007 13:23
MFC/MDI App fails with "An invalid argument was encountered." on click File menu item. A message is popping up "An invalid argument was encountered." when the user clicks on the File menu item. I have an MDI app and it appears that the message occurs before any document is selected. When a document file has been opened, the message also pops up, again when the File menu is clicked. The file men... 11 Jul 2007 04:54
Memory leak with CAsyncSocket::Create I have traced a memory leak problem to CAsyncSocket::Create(). Is this a known problem? Is there a workaround/solution/fix? Here is sample code: for (int i=0; i<m_nReopenCount; ++i) { CAsyncSocket *pAS = new CAsyncSocket; pAS->Create(); pAS->Close(); delete pAS; } Running this 1000 tim... 11 Jul 2007 01:49
loading xml file in winme The following works when run in Winxp but when transported to WinMe m_pDocument is null after CoCreateInstance. Thus, trapping on m_pDocument->load(). #include <msxml2.h> .... CComPtr <IXMLDOMDocument> m_pDocument; .... hr = m_pDocument.CoCreateInstance(CLSID_DOMDocument); .... VARIANT_BOOL loadResult; ... 7 Jul 2007 04:53
using MXXMLWriter to pretty print xml I am trying to use MXXMLWriter with put_indent(VARIANT_TRUE) to get formatted xml. It works great if the output type is BSTR. If i set a DOMDocument as the output type, i get an empty document when i save. If this sounds familiar, please let me know what's wrong. CComPtr<IMXWriter> pWriter; HRESULT hr = p... 6 Jul 2007 14:30
Access violation error Hi All, i have the following code in my cpp file ************************************************** int i = 0; char *passwordToEncrypt = "080000151F6ECF67"; char *encpwd8 = NULL; char *encpwd16 = NULL; //if i uncomment below line,then it throwing access violation error during runtime //i = 0605; in... 12 Jul 2007 06:34
CHtmlView hi to all, i am trying to create a view with CHtmlview loding the html from the resource, to create a page like outlook today , my question is how can i identify the click of the moues to open a new form view and witch form to open thanks for help ... 2 Jul 2007 17:38
Vista DrawThemeBackground I want to draw the background of my Wnd with the background (glass look) like the background of non-client area in Window Vista. However when I tried DrawThemeBackground with "WINDOW", "WP_CAPTION", "CS_ACTIVE", it does not do it. It give some blue background. Is there other way, or other function that do this?... 2 Jul 2007 16:35
uafxcw.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined I am trying to compile ATL project but I get the following error: Linking... Searching libraries Searching C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\lib\winmm.lib: Searching ..\CTIAdapterLib\Release\CTIAdapterLib.lib: Searching C:\Program Files\Microsoft Visual Studio .NET 200... 29 Jun 2007 07:48 |