Tell me little,earn more(about ocx)

Why my VC++6.0 built ocx can't be registered by regsvr32.exe on win98?
yclAsked:
Who is Participating?
 
mnewton022700Connect With a Mentor Commented:
You are probably missing a required DLL on the 98 machine. Or a required DLL is not uptodate. Have a look at the dependent DLLs of your control and then check the versions of these DLLs on both machines.

You can see the dependents of a DLL, EXE, or OCX using the depends tool in of Visual Studio (it's off the start menu.)

If I am right you will need to copy these DLLs from your 95 machine to the 98 machine.
0
 
yclAuthor Commented:
My platform is win95
0
 
Blaze22Commented:
What's the message?
0
Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

 
chensuCommented:
Debug it to see what happens with your DllRegisterServer.
0
 
yclAuthor Commented:
Mr. Mnewton's answer is quite right. But I have another question that how to prevent the run-time-visible ocx from sizing or drawing at design-time?
0
 
wardkdCommented:
Override the OnDraw() method in your ctrl class.
0
 
chensuCommented:
If mnewton's answer is right in your case, you may accept the comment as an answer. And please post a new question for the different question.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.