VC7 Resource Bug?
by Elliot Svec · in Torque Game Engine · 07/27/2004 (1:57 am) · 5 replies
I've been trying to figure this out with no solution;
In engine/platformWin32/winWindow.cc, around line 736 there is a call to LoadIcon() to load the icon for the WNDCLASS.
I noticed that it is pointed to IDI_ICON2 (which doesn't exist) -- I changed this to IDI_ICON1, but this doesn't work either.
GetLastError() reports an error of 1813 (which is something like 'resource for this type not found').
Anyone have any ideas? I noticed that IDI_ICON1 / IDI_ICON2 are declared in engine/game/resource.h.
I also noticed that VC6 has a resource.h in its directory where as VC7 does not.
Any leads?
In engine/platformWin32/winWindow.cc, around line 736 there is a call to LoadIcon() to load the icon for the WNDCLASS.
I noticed that it is pointed to IDI_ICON2 (which doesn't exist) -- I changed this to IDI_ICON1, but this doesn't work either.
GetLastError() reports an error of 1813 (which is something like 'resource for this type not found').
Anyone have any ideas? I noticed that IDI_ICON1 / IDI_ICON2 are declared in engine/game/resource.h.
I also noticed that VC6 has a resource.h in its directory where as VC7 does not.
Any leads?
#2
07/29/2004 (5:29 pm)
Yeah same here, straight out of CVS...i had created my ownn problems converting VC6->7 files for the dtsSDKPlus but after I fixed that (EOL was forced to Unix oooops, the DSP->VCPROJ conversion doesn't take that into account) it's been working fine....
#3
07/31/2004 (12:41 am)
There are no compile problems, or anything, just simply at runtime, it fails to load the icon from the executable resources for the window creation. (No game icon for the window in alt+tab, etc).
#4
07/31/2004 (11:17 am)
Ahh... Interesting. I don't really know off hand how to fix this. I would imagine that a quick look at the VC resource compiler docs and maybe some sample win32 apps would get you where you need to be. If you do fix it, please tell us how you did it. :)
#5
03/01/2006 (3:12 pm)
I know this is an old thread, but I was still seeing this same error, using VS .NET 2005. Changing the LoadIcon() call in winWindow.cc to IDI_ICON1 instead of IDI_ICON2 solved it for me. Thought it might be useful info for anyone else who's still having this problem.
Associate Kyle Carter