Sug
2006-03-26 17:23:42 UTC
Hello,
I have written an app and derived a calls from CDialog. This class is
associated with a dialog from the RC file.
I compile all my resources into a resource DLL. And my code loads the
resource DLL.
When I call DoModal on my dialog, sometimes it succeeds and sometimes
DoModal() returns -1 and GetLastError() gives me error 1812
(ERROR_RESOURCE_DATA_NOT_FOUND)
As I said, sometimes I am able to successfully do a DoModal and it fails
sometimes. I opened my resource DLL and varified that it does contain the
dialog I want to load.
Can anyone point me to possible cause of this? I am using VC 7.1 on Windows
XP.
Thanks much
Sug
I have written an app and derived a calls from CDialog. This class is
associated with a dialog from the RC file.
I compile all my resources into a resource DLL. And my code loads the
resource DLL.
When I call DoModal on my dialog, sometimes it succeeds and sometimes
DoModal() returns -1 and GetLastError() gives me error 1812
(ERROR_RESOURCE_DATA_NOT_FOUND)
As I said, sometimes I am able to successfully do a DoModal and it fails
sometimes. I opened my resource DLL and varified that it does contain the
dialog I want to load.
Can anyone point me to possible cause of this? I am using VC 7.1 on Windows
XP.
Thanks much
Sug