> > > > >
> > > > > Hi Simon, it's me again (i guess you'll hate me..)
> > > > >
> > > > > I made a test about your suggestion of installing VFP runtime and SP5 in a pc in order to register and use Officeclass.dll, and fnally i could do it.
> > > > >
> > > > > But when I run my app, vfp sends the next message: "Resource file version mismatch", y verified and realized it's exactly when i execute the next instruction:
> > > > >
> > > > > "oExce=CREATEOBJECT('Officeclass.clsExcel')"
> > > > >
> > > > > What am i missing to do here?
> > > > >
> > > > > Thank you in advance
> > > > >
> > > > > Jczar
> > > >
> > > > Not 100% sure what this message is, but it could be something to do with the FoxUser.dbf file, I would suggest you have a Config.fpw file with the following setting in:
> > > > RESOURCE=OFF
> > > > then include this into the project under the Other/Text files section of the project.
> > > >
> > > > But just to make sure this is the problem, you could just try the config.fpw file with the above setting in the same directory as your app, then run it and see if this happens.
> > > >
> > > > If you would like anything adding to the DLL please feel free to ask.
> > > >
> > > > I would like to finish the Word,Powerpoint and Outlook parts to this, just finding the time is not easy at the moment.
> > > >
> > > > Simon Arnold.
> > >
> > > Thank you Simon, I tried what you said, added a "RESOURCE=OFF" line to my Config.fpw file and included it in my project under Other/Text section, but it didn't work..
> > >
> > > A strange thing I found is that if I place officeclass.dll in root directory (C:\ ) i can register without any problem, but if I place it inside the app folder (C:\MyApp\), RegSvr32 sends the next message: "Visual FoxPro cannot start. Could not load resources.. Press F1 for Help"
> > >
> > > Has it somtehing to do with the place I put the dll?
> > >
> > > Thanks
> > >
> > > Jczar
> > >
> > >
> > >
> >
> > This is just a wild guess: I think your app uses a resource file and Simon's DLL wants to access that resource file too. This is a bit strange because the RESOURCE=OFF setting should prevent that from happening. See what happens if you remove the foxuser.* files from your app's folder. If that doesn't fix the problem, then install the officeclass dll in a different folder, like for example the winsysdir or a subfolder in your app's folder.
> > --
> > Eric den Doop
> >
www.foxite.com - The Home Of The Visual FoxPro Experts
>
> I would have to agree with Eric, have found that I have not included an internal Config.fpw, so It looks like it will be trying to use a Resource file, I can fix this issue if you need it.
>
> Simon Arnold.
Thank you Simon, i guess it could be useful, if you have the chance to fix it, it would be great..
Best regards..
Jczar