Hi everyone!
I have questions about registering OCX/ActiveX controls/DLLs under
Windows 95.
Environment: VC++ 4.1/5.0 Win95/NT
My OCX is build using VC++ 4.1. Inside apart from using Multithreaded
MFC DLLs I am using some runtime DLLs (loaded dynamycally).
When I use REGSVR32 on NT4.0 it will register OCX with no problem
at all.
When trying to register under Win95 (PreOEM2), DLL will give-up completely.
It will crash on AfxFreeLibrary statement (Of course it will give a lot
of memory leaks and other funny staff, becuse it never returns to main code).
It does not depend of DLL contents. It could be only:
BOOL APIENTRY DllMain(...){
return 1;
}
Q1: Is it possible to use Dynamic loading/unloading of the DLL during
registration?
Q2: Is it possible to use Dynamic loading/unloading of the DLL in OCX/ActiveX
in any form?
I will be appreciate if any one who expirienced same problem or know
solution could give a clue.
Thanks and regards
Sergei