• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 3733
  • Last Modified:

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?
0
NormaPosy
Asked:
NormaPosy
  • 4
  • 4
  • 4
  • +1
3 Solutions
 
ThomasMcA2Commented:
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.
0
 
John HurstBusiness 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).
0
 
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"
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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

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:

http://www.microsoft.com/en-us/download/details.aspx?id=8002
0
 
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\

http://www.ocxdump.com/download-ocx-files_new.php/ocxfiles/M/msflxgrd.ocx/6.00.8418/download.html

ref#
http://answers.microsoft.com/en-us/windows/forum/windows_7-windows_programs/run-time-error-339-component-msflxgrdocx-is-not/50615498-cddd-4153-8477-5fa2f7d81000
0
 
NormaPosyAuthor 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
0
 
John HurstBusiness 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).
0
 
Rob MinersCommented:
That is good news Norma, I'm glad that you were able to resolve the problem. All the best. :)
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 4
  • 4
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now