DLL IsWindow assert
-
I still haven't been able to solve my problem with the ::IsWindow asserting in the dll when call SetWindowText() in the dll for the main application dialog. To make this more understandable I have upload a test application that shows the problem. full source code is attached with it and you must rebuild it, I delete all object and exe files so the download will not take to long. The file is under 500k byte and includeds both the App and DLL. -load the workspace for the app,.. this work spaces is setup so if you just rebuild all it should compile and run. When runnning you will notice that the DLL IsWindow fails?! why?! I need help here. here is the link to download the test program: www.marino.dk/misc/dlltest01.zip plz note, always run the debug version!!:confused: Peter Marino ( www.marino.dk ) Programmer for IO Interactive ( Hitman Codename 47 )
-
I still haven't been able to solve my problem with the ::IsWindow asserting in the dll when call SetWindowText() in the dll for the main application dialog. To make this more understandable I have upload a test application that shows the problem. full source code is attached with it and you must rebuild it, I delete all object and exe files so the download will not take to long. The file is under 500k byte and includeds both the App and DLL. -load the workspace for the app,.. this work spaces is setup so if you just rebuild all it should compile and run. When runnning you will notice that the DLL IsWindow fails?! why?! I need help here. here is the link to download the test program: www.marino.dk/misc/dlltest01.zip plz note, always run the debug version!!:confused: Peter Marino ( www.marino.dk ) Programmer for IO Interactive ( Hitman Codename 47 )
Try setting both the DLL and the exe to use either static or DLL MFC library. Before fixing that, I couldn't link, after fixing that I couldn't crash.
-
Try setting both the DLL and the exe to use either static or DLL MFC library. Before fixing that, I couldn't link, after fixing that I couldn't crash.
ok, now I'm completly confused, but your solution seems to work?! another strange thing is that the compiler can't find the AfxLoadLibrary when using static, which I also find very confusing.... I'm now trying to use your fix in my main project,.. hope it works,... thx a lot Peter Marino ( www.marino.dk ) ps: finished testing in my main application,.. it works :-) jubii!!! If you ever come to Denmark then I'm buying you dinner ;-)