C# with MFC
-
Hi :confused: I have MFC Dll with dialog, I used it in C# App. It's working functionality, but The MFC Dialog stays grey. (Missing WM_PAINT (? I think that I have problem with window handle. Can U help me? Thanks :rose: Koby
-
Hi :confused: I have MFC Dll with dialog, I used it in C# App. It's working functionality, but The MFC Dialog stays grey. (Missing WM_PAINT (? I think that I have problem with window handle. Can U help me? Thanks :rose: Koby
Can you give us a code fragment of how your C# code invokes the MFC built dialog/control? There are plenty of things that can go wrong. Without more information its purely conjecture on what to do to fix it.
-
Can you give us a code fragment of how your C# code invokes the MFC built dialog/control? There are plenty of things that can go wrong. Without more information its purely conjecture on what to do to fix it.
-
The Code in the C#: [..."MyDll.dll"...] export static int Init(CallBack* xxx, SData* ps); The function get delegate to return event from the DLL and data on the application. ( name and ID, not window handle or other data like it) Koby
-
why are you using win32 for a dialog box anyway? show us WndProc and the one that create the dialog!
Sorry :(, I forgot an essential point. All the function (from App to the Dll ) was at other Thread ("Dll thread"). Not in the main (GUI) thread, but in the same one (using queue) The init(…) and other function first enter to Q and the pulled by the "Dll Thread") koby