Search found 11 matches

by Jaganlal
Tue Feb 16, 2010 10:05 pm
Forum: C++ Development
Topic: Dialog controls shifts
Replies: 1
Views: 393

Issue is resolved. Let me answer my own question :p - Actually i was hiding the Application Title bar (by calling FindWindow(..., SW_HIDE)), though the title bar was hidden, windows ignore's to repaint that area when Virtual Keypad is clicked/invoked. note: This issue is ONLY RELATED TO WINDOWS MOBILE
by Jaganlal
Tue Feb 16, 2010 8:48 pm
Forum: C++ Development
Topic: Dialog controls shifts
Replies: 1
Views: 393

Dialog controls shifts

wxWidgets version: 2.8.10 Target Device: Windows Mobile 5.0 IDE: Visual Studio 2005 Hi, i have few controls (wxTextCtrl, wxStaticText & wxStaticBitmap) on my dialog box. Whenever i click on the virtual keypad (which comes along with Windows Mobile devices), my whole screen shifts few pixels down. Ca...
by Jaganlal
Wed Dec 23, 2009 7:51 pm
Forum: C++ Development
Topic: Issues with initializing a DLL from an EXE
Replies: 12
Views: 3568

Hi, just in addition DO NOT INVOKE GUI RELATED FUNCTIONS, EXPORTED BY A DLL FROM A NON GUI THREAD. Just for clarification: This has nothing to do with DLL or not. Only the main thread can make gui calls. That's it. It is not absolutely exact. Only the thread in which has been initialized WX can mak...
by Jaganlal
Wed Dec 23, 2009 3:22 pm
Forum: C++ Development
Topic: Issues with initializing a DLL from an EXE
Replies: 12
Views: 3568

With my little understanding, i think only MainApp (or THE APP for ur application) can invoke extern "C" functions (exported by a dll) which involve GUI related stuffs like showmodal/show as in my case, i never tried other scenarios. Other non gui related dll functions can be called by any thread......
by Jaganlal
Tue Dec 22, 2009 3:09 pm
Forum: C++ Development
Topic: Issues with initializing a DLL from an EXE
Replies: 12
Views: 3568

In a nut shell my application has 1 Executable - for program logic and a CONTROLLER class to control both UI and hardware component 2 DLLs - 1 to show UI and other to interact with bar code reader hardware My intention is to use the CONTROLLER class to control both GUI and Hardware , this way i can ...
by Jaganlal
Tue Dec 22, 2009 12:06 am
Forum: C++ Development
Topic: Issues with initializing a DLL from an EXE
Replies: 12
Views: 3568

Ever wondered why the Mainthread is called GUI-Thread ;) Because it's the thread in wich the GUI happens. But when i statically linked wxWidgets library , i was able to call Show() from separate thread (in my case UILoader). I dont think there are restrictions calling GUI related methods (like Show...
by Jaganlal
Mon Dec 21, 2009 11:37 pm
Forum: C++ Development
Topic: Issues with initializing a DLL from an EXE
Replies: 12
Views: 3568

To my surprise, everything works fine if Show() is called within MainApp without creating separate thread . Something like this typedef void (*SHOW_UI)(); bool MainApp::OnInit() { wxDynamicLibrary lib; lib.Load("Login.dll"); SHOW_UI Show = (SHOW_UI)lib.GetSymbol( wxT("ShowUI") ); Show(); } No change...
by Jaganlal
Mon Dec 21, 2009 11:12 pm
Forum: C++ Development
Topic: Issues with initializing a DLL from an EXE
Replies: 12
Views: 3568

As frank said, DLLMain function is not required. Which resolves the problem of getting MainApp::OnInit being called twice. Now i ended up with the following problem. From my MainApp i'm creating separate thread (UILoader) to load Login.dll and call Show method (extern "C" function exported from Logi...
by Jaganlal
Mon Dec 21, 2009 10:09 pm
Forum: C++ Development
Topic: Using wxWidgets as shared library (.dll/.so)
Replies: 0
Views: 356

Using wxWidgets as shared library (.dll/.so)

I want to create an executable(MyExe) and a dll(MyDLL) which uses wxWidgets as Shared Library . Is there any specific settings like PREPROCESSOR macros or linker options? MyExe - for application logic MyDLL - for UI purpose MyExe triggers/loads and shows (ShowModal) MyDLL from its mainthread. wxWidg...
by Jaganlal
Mon Dec 21, 2009 6:36 pm
Forum: C++ Development
Topic: Issues with initializing a DLL from an EXE
Replies: 12
Views: 3568

Frank: I removed BOOL APIENTRY DllMain , this time MainApp::OnInit was called only once. But when i tried calling ShowUI (extern "C" function exported from Login.dll) from MainApp.exe i got Debug Assertion, when i looked into the code it says only main thread may call wxMutexGuiLeaveOrEnter() . Here...
by Jaganlal
Mon Dec 21, 2009 4:17 pm
Forum: C++ Development
Topic: Issues with initializing a DLL from an EXE
Replies: 12
Views: 3568

Issues with initializing a DLL from an EXE

I'am initializing a DLL (calling it as Login.dll) from an EXE (calling it as MainApp) using wxDynamicLibrary::Load method, to my surprise bool MainApp::OnInit() gets called twice. COMPILING wxWidgets-2.8.10 AS DLL Platform: WinXP, SP3 IDE: Visual Studio 2005 ALL THESE THINGS WERE WORKING VERY WELL, ...