regsvr, XP?

Posted on 2003-03-16
Medium Priority
Last Modified: 2008-09-04
I´m writing a program that register the controls(ocx) inside itself.
It works fine on win98 but when I run it on XP the regsvr says it
can´t find the file I want to register.

I know XP have regsvr in directory "windir\system32" but it still don´t
work... I try to manualy regsiter them whit regsvr and It don´t work either.
It just tells me that it can´t find the file...
So what can I do?
Question by:Curtwell
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Expert Comment

ID: 8148618
When you invoke RegSvr32.exe from within your program, make sure you give is a fully qualified path..

call shell("c:\windows\system32\regsvr32.exe " & app.path & "\MyControl.ocx")

If this isn't your problem, what does your code look like ?

Author Comment

ID: 8152831
Sorry this is not the problem...

the thing is that I can´t even do this:

I go to the XP command promt and go to the "windir\system32" directory. Then types in:
regsvr32 c:\whatever\fname.ocx

and I get the message can´t find file, I´ve checked whit various directories for the file but it wont work.
This is extremly odd... I´m not an expert but I do know that a program should be able to find a file if u give it the right directory, and that is what I have done.
So, some help would be most kind.
LVL 26

Accepted Solution

EDDYKT earned 150 total points
ID: 8152994
May be it miss some dependency file or your ocx is corrupted
LVL 26

Expert Comment

ID: 8153765
Did you solve your problem?
What cause it?

Author Comment

ID: 8274865
The ocx was corruted... just sended over a new one and it worked fine... hehe.. somethimes u just don´t think about things.. thx

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month8 days, 10 hours left to enroll

764 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