Problem Find Resources In Extension DLL From ATL Exe Server
-
This one has me totally stumped. How do I hook up the resources for an Extension DLL that in turn calls another Extension DLL? I have tried setting afxCurrentResourceHandle and others. It appears the main problem is the lack of a CWinApp object. I am trying to access some Dialog resources and of course any DoModal loop will fail due to lack of an initialized CWinApp object. This is an ATL exe Server built using CExeModule. Any help would surely be appreciated.
-
This one has me totally stumped. How do I hook up the resources for an Extension DLL that in turn calls another Extension DLL? I have tried setting afxCurrentResourceHandle and others. It appears the main problem is the lack of a CWinApp object. I am trying to access some Dialog resources and of course any DoModal loop will fail due to lack of an initialized CWinApp object. This is an ATL exe Server built using CExeModule. Any help would surely be appreciated.
You can use extension-style DLL only if .exe links with .dll version of MFC as well. It seems your exe server doesn't. Tomasz Sowinski -- http://www.shooltz.com
To some its a six-pack, to me it's a support group
-
You can use extension-style DLL only if .exe links with .dll version of MFC as well. It seems your exe server doesn't. Tomasz Sowinski -- http://www.shooltz.com
To some its a six-pack, to me it's a support group
-
Thanks for the reply! It sounds as though my solution would be to create a Regular DLL and export a function that will create the class objects in the Extension DLL. Do you agree with this?
I'm not sure about the structure of your project. Your COM objects are created by the ATL-based .exe server. What's the role of DLLs? What kind of services are they providing? Tomasz Sowinski -- http://www.shooltz.com
To some its a six-pack, to me it's a support group
-
I'm not sure about the structure of your project. Your COM objects are created by the ATL-based .exe server. What's the role of DLLs? What kind of services are they providing? Tomasz Sowinski -- http://www.shooltz.com
To some its a six-pack, to me it's a support group
Hi Tomasz, The role of the Exe server is to handle special OPC scanning/communications with a Control System. The Server is designed to run standalone and execute scheduled scan tasks using OPC, but we now have to implement automatic generation of report files that are normally done manually by a user using a client connected to this Server. The report generation objects are located in MFC Extension DLL's that are currently being used by client apps. The need is to execute the existing report objects in the background with hidden windows. My only problem is getting the resource chain initialized properly and I believe your solution to call a Regular DLL will work since it will initialize its own CWinApp object. :):):) Best Regards, Bill