Link to home
Start Free TrialLog in
Avatar of Norma Posy
Norma PosyFlag for United States of America

asked on

Registering an XP OCX in Win7

I have an application written under XP that needs to run on Win 7.
Application uses MSFLXGRD.OCX
I copied that OCX to my Win7 system32 directory.
I intend to run:
regsvr32 C:\windows\system32\MSFLXGRD.OCX

Command prompt comes up:
C:\Users\Norma>
Can't backspace back to the C:
"Enter" just duplicates the line.
So, I suppose I have to append the regsvr command. Is that correct?

If so: What is the correct syntax to append my regsvr32 command to that line?

It is possible I may have to do all this in SysWOW64 instead. When I try to copy that OCX to SysWOW32, I need to be the "administrator". How do I do that in Win7?
SOLUTION
Avatar of ThomasMcA2
ThomasMcA2

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If that does not work, then the application probably will not work on a 64-bit machine (hardly unusual).

You may need to run the application in an XP virtual machine (much more common).
Click the Start button.
In the Start Search box, type in cmd
Right click on the Command Prompt (cmd.exe) in the search results and select Run as Administrator.
Click OK or Yes to the UAC prompt.

Run your command and press Enter.

If successful you should get a popup saying "DllregisterServer in MSFLXGRD.OCX succeeded"
Avatar of Norma Posy

ASKER

Just checking in.
Appreciate all commentary.
I will have something to report in a few days.
- - Norma
Thank you for the update Norma :)
I have MSFLXGRD.OCX in C:\windows\system32

When I run
regsvr32 C:\windows\system32\MSFLXGRD.OCX
I get a message "Failed to load ... Could not be found"
The strong likelihood is that the OCX is just not compatible with Windows 7 64-bit. There is not much you can do except run your application in an XP virtual machine.
The other day, while drilling down in All Programs, I found "XP Mode". But I didn't write down where I found it.

I have a Windows7 book (Preppernau and Cox). On page 354 it says "Windows XP Mode" is a utility, accessible from All Programs > Accessories

But I can't find it there.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thank you all for your help.

Using "inno" I put together a setup installer. From what you folks have taught me, I was able to write an inno script that correctly installs and registers the OCX in Windows 7.

Seems to work for Win 7. Installs OK in Vista also, but runs slow there. I discovered there is a way to configure Vista to run normally with legacy programs. Haven't tried all this on Windows 8.

This is a rather large application that people depend on that I wrote some years back. I'm supposed to be retired, but maybe now I can really retire. The company hired a bright young man to re-write the app in C++. I'm guiding him through the program.

Thank you all again. - - Norma
Thank you for the comprehensive update and I was happy to help. Good luck with retirement (I am half way there because I have not wanted to fully stop).
That is good news Norma, I'm glad that you were able to resolve the problem. All the best. :)