|
-
April 27th, 2003, 09:52 PM
#1
OCX registration
Hi !
I'm having a problem with registering my activex control. Actually I finished with it and the compiler reports no error conserning the code.but when it comes to registering the control,I received a Regsvr32 error saying the program has performed an illegal operation.the actual error code returned by the GetLastError() is:0x0000045a .I checked in the error lookup tool wich reports that a Dll initialization routine failed. my question is, how do I fixe this problem so I can register my control and test it? . could you explain me a little more about this error .Please give me hand ! Thank you very much for all your helps.
thanks
-
April 28th, 2003, 08:23 AM
#2
The first thing to note is that when you register an ActiveX control, Windows actually loads the control and calls some of its methods (for example, InitInstance()). If you have code in these methods, they may execute when you don't want them to. This will most likely cause problems possibly due to uninitialized pointers or variables. One way to debug this is to place some AfxMessageBox() calls in the code that may be executing during the registration time.
Gort...Klaatu, Barada Nikto!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|