Need AfxFindResourceHandle method on Win32 API
-
Than is possible to replace MFC method AfxFindResourceHandle not resorting to MFC, for example on Win32 API. I need a method for load a resource from app and/or DLL. Best regards, Eugene Pustovoyt
-
Than is possible to replace MFC method AfxFindResourceHandle not resorting to MFC, for example on Win32 API. I need a method for load a resource from app and/or DLL. Best regards, Eugene Pustovoyt
Have you looked at
AfxFindResourceHandle()
in dllinit.cpp to see what it is doing?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
-
Have you looked at
AfxFindResourceHandle()
in dllinit.cpp to see what it is doing?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
Do you see this code? :)
AfxFindResourceHandle()
method in dllinit.cpp has a few other MFC methods. What I must rewrite all this methods? Best regards, Eugene Pustovoyt -
Do you see this code? :)
AfxFindResourceHandle()
method in dllinit.cpp has a few other MFC methods. What I must rewrite all this methods? Best regards, Eugene PustovoytEugene Pustovoyt wrote: Do you see this code? Of course. That's why I suggested the exercise. What you should have noticed, however, is that
AfxFindResourceHandle()
is nothing more than a fancy wrapper aroundFindResource()
.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
-
Than is possible to replace MFC method AfxFindResourceHandle not resorting to MFC, for example on Win32 API. I need a method for load a resource from app and/or DLL. Best regards, Eugene Pustovoyt
From memory you just need to specify the hInstance of the EXE/DLL where the Resource lives. Neville Franks, Author of ED for Windows www.getsoft.com and Surfulater www.surfulater.com "Save what you Surf"