Solved

registering an OCX in Windows 7

Posted on 2015-01-10
6
187 Views
Last Modified: 2015-01-13
Legacy V6 program written under XP.
Resides in C:\windows\Program Files (x86)

Run gives message box:
Run time error 339
Component MSFLXGRD.OCX or one of its dependencies not registered: a file is missing or invalid

In command line window:

dir C:\windows\system32\MSFLXGRID.OCX
Volume in drive C has no lable.
Volume Serial Number is D807-7544
Directory of C:\windows\system32
05/21/2000 11:00 pm 244.416 msflxgrd.ocx
1 file(s) 244.416 bytes
0 Dir(s) 73,732,345,856 bytes free

Try this:
dir C:\windows\sysWOW64\MSFLXGRID.OCX
File not found.

=====

The OCX seems to be properly registered in system32.
Could it be that this is the wrong place?
Should it be in sysWOW64?
If so, how do I get it there and registered?
Or: Should it be in the folder containing the program that uses it?
0
Comment
Question by:NormaPosy
[X]
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
  • 3
  • 2
6 Comments
 
LVL 24

Expert Comment

by:VB ITS
ID: 40542834
The answer to this is "it depends on the program". I've seen some programs place OCX files in C:\Users\username\Documents instead of C:\Windows\System32

Do a search on your system for the MSFLXGRD.OCX file - are there multiple copies? If so, register each file you find using the command regsvr32.exe C:\Folder\MSFLXGRD.OCX in an elevated Command Prompt window (right click on Command PromptRun as administrator)

Now try and launch the program. Hopefully this will resolve the error messages.
0
 
LVL 50

Expert Comment

by:jcimarron
ID: 40543253
NormaPosy --

Not all programs that worked in XP will run in Win 7.
Try running in Compatibility Mode.  Right click on app's executable| Properties|click Compatibility tab|follow directions to run in XP mode.

Can you reinstall the legacy program?
0
 

Author Comment

by:NormaPosy
ID: 40548110
VBITS is probably right.
So, a search came up with 8 (!) copies of this OCX.
I need to know the paths for each one to do the command window dir, and possibly the regsvr32.exe

Right click > properties > security gets me the path. But then the entire search vanishes and I have to start all over for the next one in the list.

Very awkward and annoying. Have to start all over with the search to get to look at the next one.

With XP, there an an option to narrow the search. I can't see any way to do this with Win7.

Next problem: I have a best guess at which of those 8 is the one the program is looking for. It's the one in the same folder as the program. In the command window, I type as carefully as I can. Note the spaces: Program<sp>Files<sp>(x86)
dir C:\Program Files (x86)\PoolSandS\MSFLXGRD.OCX

Says it can't find the path. Why not?
0
Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

 
LVL 24

Accepted Solution

by:
VB ITS earned 500 total points
ID: 40548173
What you can do instead is right click on each file listed in the search result, hold down your Ctrl key, then click on Open file location. A new Explorer window should then open with the file automatically highlighted.

Alternatively you can right click in the search resutlts window > View > change to Details > expand the Path column and note down the folder paths to each file in the search result.

As for your other issue, you simply just have to use quotation marks when there's a space in the path:
cd "C:\Program Files (x86)\PoolSandS"
regsvr32 MSFLXGRD.OCX

Open in new window

0
 

Author Closing Comment

by:NormaPosy
ID: 40548231
Thank you from the bottom of my heart.
This is a legacy program that a lot of people depend on.
Being re-written in C++, but that is going to take a while.
Meantime, I had to get this thing up and running on Win7.

My guess was correct. The program looks for the OCX in the same folder.

Thank you again - - Norma
0
 
LVL 24

Expert Comment

by:VB ITS
ID: 40548259
Not a problem Norma. Happy I could help.
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

Article by: Lee
Windows 7 Ultimate and Enterprise (and 2008 R2) introduced a new feature you may not be aware of - Boot from VHD.   Boot from VHD (or what Microsoft refers to asNative Boot allows you to install Windows to a VHD (Virtual Hard Disk) file that is t…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…

718 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