Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Stub Application setup
Message
De
19/04/2002 11:48:52
 
 
À
18/04/2002 18:04:45
Chuck Berry
Copper State Bolt & Nut Co.
Phoenix, Arizona, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00646658
Message ID:
00646945
Vues:
17
>I've created my first stub program that works standalone and I also have a working application exe. Using MM7 for the application EXE. I am using the constant MMEXEC_NAME as stated in the DEVGUIDE.
>
>The main.prg of the stub calls the exe when it is finished by way of DO appname.exe.
>
>I am getting 'Cannot located classlib' errors when running my stub program from explorer.
>For example, if my current directory is c:\program files\appname, the main app is looking for libs (which are in the exe) in c:\program files\mmortals\common30 libs. It looks like the setup.prg is appending over my app's name with the mmortals path. Which is strange anyway, I'm not in DEBUG mode in explorer (it's all built into the executable).
>
>If I run the stub from the command prompt in VFP, the app runs but is missing some of my classlib entries (which are all compiled into the exe) and works find standalone.
>
>In my main program of the stub, I run the stub and then run the main apps EXE. Is this the correct way to set it up? I am hoping it's something very basic!
>

By design, you can be in debug mode within Fox or as standalone, as long as the Debug.txt file exists in the directory.

Since the libs never go out of scope in Fox, and do in the executable, I'd suggest doublechecking that the EXE has its own set of path statements executing.

If the classes are not in the project, they won't be compiled into the app, and need to be included separately.

Hope this helps.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform