Creating a window from a DLL
I am trying to create a simple window class, and put it in a DLL with a few other of my commonly used classes. The problem is, CreateWindow isn''t working! I''m guessing that the problem has to do with the window being created being used in a different module. Anyone know anything about this?
You have to call CreateWindow and RegisterClass in the same module, if that helps.
who told you that?
if you use MCI, window class is registered in msvfw32.dll while any clients, be that other dll modules or the executable, can create MCI windows.
[edited by - niyaw on March 23, 2003 1:47:50 AM]
if you use MCI, window class is registered in msvfw32.dll while any clients, be that other dll modules or the executable, can create MCI windows.
[edited by - niyaw on March 23, 2003 1:47:50 AM]
OK, I think I''ve found the real problem. I believe there''s a little bug somewhere in the message handler system causing it to not return TRUE to WM_NCCREATE causing CreateWindow to fail. I will continue to experiment on this and hopefully get it to work.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement