Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

resource files

Status
Not open for further replies.

JudyBarer

Programmer
Jan 13, 2004
23
US
I am using vfp 8.0. I have created an application that I use installsheild express to install. It works fine on all of my users machines except my own. When I install the app on my machine I get the following error Resource file version mismatch and then the error VFP can not start could not load resources. There are no resource files in the directory that the program is supposed to start in. I am not sure where the resource files are that the program is trying to access. I am also trying to run an exe as a scheduled task . When I run this scheduled task on the server where the exe resides I do not get the error. When I try to run the exe from my own computer I get the resource file error. So the resource files must be on my machine and not on the server. But I can not find them. The only resource files I found were in C:\documents and settings...... and I deleted them and still get the error. In this exe I also have a config file that sets resouce off.

If someone has any ideas I would appreciate it. These programs are really critical and have not been run for a week.

I used to run these programs on the sever but we upgraged to windows server 2008 and now the email program I was using on the server - IDSMail no longer works because it is 32 bit not 64 bit. ( On my own machine I use outlook instead of IDSMail but I encountered problems using outlook on the server)

Thanks
Judith
 
That particular error message generally has nothing to do with Foxuser.* resource files. It has to do with the exe not being able to find the Foxpro runtime, or the C++ runtime, or the XML components, or whatever "resource" files are required.

You mentioned the exe being "on the server". Are the necessary runtime and dependencies installed on your hard disk?
 
Judith,

I think Dan's right. The file that is causing the problem is VFP8rXXX.DLL, where XXX is a three-letter code that indicates your language and locale (for the USA, it would be enu, for Germany deu, and so on).

The message is telling you that the resource file cannot be found in the runtime environment, or that the file that it is finding belongs to a different version of VFP.

You say that the message only comes up on your own machine. Assuming the resource file is present on your machine, it's possible that VFP is using a registry entry to locate the file, and that entry is pointing to a file from an earlier version. If that's the case, you can easily fix it. Take a look at the VFP 8.0 Help topic "Managing Files in an International Application" for more information. (Note that, despite the name of the help topic, this issue is not necessarily connected with "international" applications.)

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro tips, advice, training, consultancy
Custom software for your business
 
If your own machine is the mchine you develop that app, then parhaps you have an issue with the runtimes already being installed due to vfp being installed. Especially if you have several foxpro versions and especially also if you have vfp8 sp0 or sp1 apps and one of these sp versions of the runtime is registered.

I'd recommend only registering FOXHHELP8.exe and FOXHHELPPS8.dll besides other components needing registration, like ActiveX. Install the other VFP runtime files with their exact sp version side to side to the EXE.

Using Inno Setup you'll have more control than useing Installshield Express with it's VFP8Runtime.msm, but in fact you don't need to use this msm merge module and can use the seperate files for an ISE setup.

Bye, Olaf.
 
Thank you so much for your answers. I checked in the registry and VisualFoxpro.Runtime.8 (Shell,Open,Command) is set to VFP8r.dll. I changed it to VFP8renu.dll but this did not work. - then my application did nothing at all but beep and not even give the message that the resource file is incorrect. I checked one of my users machines and the registry had the same value. I do not have two versions of VFP installed on my machine. Only VFP 8.0 with SP1. Do you have any ideas? VFP 8.0 itself runs fine with either setting.

Thanks
Judy
 
No, this won't help, vfp8r.dll is the main runtime, don't change that to pointing to vfp8renu.dll. You need both, but surely the registry entry pointing to vfp8r.dll was all right.

Check, if vfp8r.dll and vfp8renu.dll have the same version.

Bye, Olaf.
 
What registry entry should be pointing to vfp8renu.dll ?
Both files have the same version and creation date. These files are located in
C:\program files\common files\microsoft shared\vfp

There is also a file vfp8enu.dll in
c:\program files\microsoft visual foxpro 8

What is the difference between vfp8enu and vfp8renu?
Also is the first directory where executables get the dlls from and the second directory must be where vfp runs from?

Thanks
Judy
 
No registry entry should point to a resource dll. You don't need to register vfp8renu.dll, as it's a pure resource dll (containing texts mainly) it just must be in the same dir as vfp8r.dll and will then be used by this runtime in english OS and other OSes if there are no other language specific vfp8rXXX.dlls present.

vfp8enu.dll is the resource dll for the VFP IDE and not within the redistributables. It's not needed. It's a version of the resource dll containing even some more texts for the VFP IDE, but will not be used and usable by the runtime, only by vfp8.exe.

Do you know the wiki page about the runtimes?

Bye, Olaf.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top