unknown
2009-12-03 13:05:20 UTC
XP SP3
VS 2005
I've tried to use the code below in a dll at DLL_PROCESS_ATTACH:
It works on Vista but not XP.
(Well, it used to work and I don't know what has changed.)
The returned error is 1411, "Class does not exist"
I pasted the code into another app and it worked fine so it seems that it
has something to do with the dll.
A little later ...
I can't step into the dll at all now.
All I get is an error: "The application failed to initialize properly
(0xc0000142).
Any pointers on what to look for because I just seem to be digging a bigger
hole for myself.
[code]
WNDCLASSEX wcx;
ZeroMemory(&wcx,sizeof(WNDCLASSEX));
wcx.cbSize=sizeof(WNDCLASSEX);
if(!GetClassInfoEx(GetModuleHandle(NULL),"Edit",&wcx))
{
DWORD err=GetLastError();
return 0;
}
[/code]
Regards,
Ron Francis
www.RonaldFrancis.com
VS 2005
I've tried to use the code below in a dll at DLL_PROCESS_ATTACH:
It works on Vista but not XP.
(Well, it used to work and I don't know what has changed.)
The returned error is 1411, "Class does not exist"
I pasted the code into another app and it worked fine so it seems that it
has something to do with the dll.
A little later ...
I can't step into the dll at all now.
All I get is an error: "The application failed to initialize properly
(0xc0000142).
Any pointers on what to look for because I just seem to be digging a bigger
hole for myself.
[code]
WNDCLASSEX wcx;
ZeroMemory(&wcx,sizeof(WNDCLASSEX));
wcx.cbSize=sizeof(WNDCLASSEX);
if(!GetClassInfoEx(GetModuleHandle(NULL),"Edit",&wcx))
{
DWORD err=GetLastError();
return 0;
}
[/code]
Regards,
Ron Francis
www.RonaldFrancis.com