Solved

Tell me little,earn more(about ocx)

Posted on 2000-03-22
7
196 Views
Last Modified: 2013-11-20
Why my VC++6.0 built ocx can't be registered by regsvr32.exe on win98?
0
Comment
Question by:ycl
7 Comments
 

Author Comment

by:ycl
ID: 2643803
My platform is win95
0
 

Expert Comment

by:Blaze22
ID: 2644256
What's the message?
0
 
LVL 3

Accepted Solution

by:
mnewton022700 earned 50 total points
ID: 2644305
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
Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

 
LVL 23

Expert Comment

by:chensu
ID: 2646674
Debug it to see what happens with your DllRegisterServer.
0
 

Author Comment

by:ycl
ID: 2648184
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
 

Expert Comment

by:wardkd
ID: 2648199
Override the OnDraw() method in your ctrl class.
0
 
LVL 23

Expert Comment

by:chensu
ID: 2649870
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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
mixString challenge 36 131
Replacement selected text 2 63
how to monitor remote shell execution on linux 9 104
wait notify demo infinite loop 3 121
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question