CreateDialogParam in a static linked library fails returning error no 1406
Posted on 2005-05-11
I have a static linked library (pure win32 API calls used) in which I load a
dialog from a template using CreateDialogParam. If the test application &
the library are within the same solution , the dialog is shown. But , when I
try to load it in a different application( I've included the .lib name in
the project settings & the .h file of the interface) , on click of a button
in the application, it is failing. I tried debugging & it is failing in the
CreateDialogParam, where it is returning NULL & GetLastError returned error
no 1406 "Cannot create a top-level child window".
Can anyone help ?