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:
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?
Norma PosyPhysicistAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Just run the command that you posted:
regsvr32 C:\windows\system32\MSFLXGRD.OCX

Open in new window

The "C:\Users\Norma>" that you mentioned is just the "current directory." Moving to C:\ does not matter for the command you are running.
JohnBusiness Consultant (Owner)Commented:
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).
Rob MinersCommented:
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"
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Norma PosyPhysicistAuthor Commented:
Just checking in.
Appreciate all commentary.
I will have something to report in a few days.
- - Norma
Rob MinersCommented:
Thank you for the update Norma :)
Norma PosyPhysicistAuthor Commented:
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"
JohnBusiness Consultant (Owner)Commented:
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.
Norma PosyPhysicistAuthor Commented:
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.
JohnBusiness Consultant (Owner)Commented:
XP Mode can be found in Downloads at

I have it, but it is no good on Windows 8, so I just use a proper virtual machine application (VMware Workstation).

Here is the link for XP Mode:
Rob MinersCommented:
If you're running win7 64bit, the file needs to go under C:\Windows\SysWOW64\ instead of System32.
To register it you then need to run the command prompt as an administrator and type:

regsvr32 C:\Windows\SysWOW64\MSFLXGRD.OCX
DllRegisterServer in C:\Windows\SysWOW64\MSFLXGRD.OCX succeeded.

If not you could try a 32 bit version of the msflxgrd.ocx that maybe compatible with your system but no guarantee that it will work with your software.
It needs to be placed in C:\Windows\SysWOW64\


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Norma PosyPhysicistAuthor Commented:
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
JohnBusiness Consultant (Owner)Commented:
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).
Rob MinersCommented:
That is good news Norma, I'm glad that you were able to resolve the problem. All the best. :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows XP

From novice to tech pro — start learning today.