How to load resource of static librray from exe.?
-
how to invoke the dilaog from exe ? This dialog is created in static library. mallikarjun
-
how to invoke the dilaog from exe ? This dialog is created in static library. mallikarjun
Use AfxLoadLibrary and AfxSetResourceHandle APIs.
HINSTANCE m_hPrevRes; HINSTANCE m_hDllInstance;
m_hDllInstance = AfxLoadLibrary("Your Resource file path"); AfxSetResourceHandle(m_hDllInstance);
Regards, Paresh. -
how to invoke the dilaog from exe ? This dialog is created in static library. mallikarjun
Have you tried some thing as of now. I think dialog can be created normally as the module instance is same.
-
Use AfxLoadLibrary and AfxSetResourceHandle APIs.
HINSTANCE m_hPrevRes; HINSTANCE m_hDllInstance;
m_hDllInstance = AfxLoadLibrary("Your Resource file path"); AfxSetResourceHandle(m_hDllInstance);
Regards, Paresh.it's static library
-
how to invoke the dilaog from exe ? This dialog is created in static library. mallikarjun
Static libraries do not contain resources, you have to link resource files (.rc or .res) along with that library.