All in DLLs
-
Ok this is a simple question. Can you have all DialogBoxes, TextBoxes, resources etc in DLL, and then have .exe file call some kind of initialisation function contained in DLL that would start whatever application is supposed to do. Are there any problems with this. I haven't tried implementing myself. [thinkig in terms of Win32 API] Regards, Venet. -------- Black holes are where God divided by zero.(Steven Wright)
-
Ok this is a simple question. Can you have all DialogBoxes, TextBoxes, resources etc in DLL, and then have .exe file call some kind of initialisation function contained in DLL that would start whatever application is supposed to do. Are there any problems with this. I haven't tried implementing myself. [thinkig in terms of Win32 API] Regards, Venet. -------- Black holes are where God divided by zero.(Steven Wright)
No problem, but you have to be careful when loading resources, because you need the instance handle; and a simple call to GetModuleHandle(NULL) will not give it to you (it will return the calling exe), so you need to get it in the DllMain function and use for all resource loading tasks. I can´t see more problems actually... "nobody knows it, but you´ve got a secret smile, and you use it only for me"
-
No problem, but you have to be careful when loading resources, because you need the instance handle; and a simple call to GetModuleHandle(NULL) will not give it to you (it will return the calling exe), so you need to get it in the DllMain function and use for all resource loading tasks. I can´t see more problems actually... "nobody knows it, but you´ve got a secret smile, and you use it only for me"