Hi folks,
I need to do a weird thing: to integrate wxPython into an existent C++ DLL. So far I managed to integrate wxWindows into my DLL, like this:
extern "C" int APIENTRY
DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
wxEntry((WXHINSTANCE)hInstance, 0, "", SW_SHOWNA, 0);
else if (dwReason == DLL_PROCESS_DETACH)
{
if (wxTheApp != 0)
{ // OnExit isn't called by CleanUp so must be called explicitly.
wxTheApp->OnExit();
wxApp::CleanUp();
}
}
return 1; // ok
}
I define a custom wxApp and a custom wxFrame, then on a certain command I call
wxGetApp().CreateFrame();
to display the frame.
This way I could create a test GUI for this DLL using wxWindows.
Instead of my DLL using wxWindows I want now to have my DLL using wxPython. Does anyone have an idea of how to do this?
Many thanks,
Cristina.