Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Julio Méndez
  Where is Julio Méndez?
 Tampico
 Mexico
 Julio Méndez
 To: Eric den Doop
  Where is Eric den Doop?
 Houten
 Netherlands
 Eric den Doop
 Tags
Subject: RE: One more question to Simon..
Thread ID: 21833 Message ID: 21890 # Views: 1 # Ratings: 0
Version: Visual FoxPro 6 Category: Active X Controls & OLE Automation
Date: Thursday, April 03, 2003 6:26:46 PM         
   


> > > >
> > > > 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

Hi Eric, in fact, I deleted FOXUSER files and placed Officeclass.dll in a diferent folder, but i found that it only works when you change your default directory to that folder.. If I write in the command window "SET DEFA TO C:\" and I register Officeclass in that path, i can create the Excel object, but If i set the defa directory to my app folder, i can't do it.

I'm trying to change the defa dir within the code, and i can generate the Excel object when i run my app from VFP project, but when i build an exe file and run it, it doesn't seem to change the default path, so the same error appears..

however, it's an improvement, the only thing I need to know is how to change this defa path running an exe file

Any extra help will be very appreciated

Best regards..

Jczar

COMPLETE THREAD

One more question to Simon.. Posted by Julio Méndez @ 4/2/2003 6:23:11 PM
RE: One more question to Simon.. Posted by Simon Arnold @ 4/2/2003 10:36:59 PM
RE: One more question to Simon.. Posted by Julio Méndez @ 4/2/2003 11:40:38 PM
RE: One more question to Simon.. Posted by Eric den Doop @ 4/3/2003 12:19:40 AM
RE: One more question to Simon.. Posted by Simon Arnold @ 4/3/2003 10:51:35 AM
RE: One more question to Simon.. Posted by Julio Méndez @ 4/3/2003 6:42:03 PM
RE: One more question to Simon.. Posted by Julio Méndez @ 4/3/2003 6:26:46 PM
RE: One more question to Simon.. Posted by Simon Arnold @ 4/3/2003 8:29:21 PM
RE: One more question to Simon.. Posted by Eric den Doop @ 4/4/2003 2:20:51 PM