Window with UNDEFINED window proc

Started by
3 comments, last by IvanGG 21 years, 8 months ago
Hello, everybody! I have a .DLL with 2 exported functions - Show and Hide. The first shows a dialog and the second - hides it. It is a very simple mechanism. I have written a test MFC application wich uses this .DLL. Everything works alright. But this .DLL is planned to be part of a real project. And here are the problems. This time the test MFC application is more complicated MFC application which shows and hides the dialog from the .DLL. But no WM_PAINT, WM_TIMER and so on messages are sent to the dialog. I used Spy++, located my dialog and in the window properties I saw: "Window proc: (undefined)". With Spy++ I saw that no messages are sent to my dialog. What''s the difference between the test MFC application and the real project? Is the presence of some worker threads in the project could be the problem? Any advice? Ivan.
Best wishes, Ivan.
Advertisement
Is the dialog procedure for the dialog in the DLL or in the calling application?


Goblineye Entertainment
The road to success is always under construction
Goblineye EntertainmentThe road to success is always under construction
I created the dialog with Class Wizard and predefined the WM_PAINT and WM_TIMER messages. I create the dialog in this way:

//CODE
CMyDlg m_dlg;
dlg.Create(IDD_MY_DIALOG);
//CODE END

I don''t know where is the dialog procedure. May be in MFC42.DLL.
Best wishes, Ivan.
How much basic Win32 do you know?
daerid@gmail.com
I tried to create the window without MFC by filling WNDCLASS structure, passing it to RegisterClass and creating the window. I put my own window procedure and the result is the same: Window proc: (UNAVAILABLE). (not ''undefined'' as I wrote above -mistake). No messages come to my window procedure. Now it is sure that the window procedure is in the .DLL


P.S.: Excuse my English, it is not my first language.

Best wishes, Ivan.
Best wishes, Ivan.

This topic is closed to new replies.

Advertisement