Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Installed .EXE looking for .PJX?
Message
 
To
16/12/2002 13:42:17
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Miscellaneous
Thread ID:
00733306
Message ID:
00733370
Views:
22
Hi Chris,

as a fast solution you could make the following change to setup.prg:
FUNCTION SetProcsAndLibs(tcProject, tlAdditive, tcEXE)

  LOCAL lcMetaTableName
  
  *-----------------------------------------------
  *-- Check to see if the application is being run 
  *-- in debug mode ... if it is build/rebuild the 
  *-- application's metadata.
  *-----------------------------------------------  
  lcMetaTableName = IIF(EMPTY(tcEXE), METADATA, FORCEEXT(JUSTFNAME(tcEXE),"DBF"))
  
  *--IF FILE(DEBUGMODEFILE)
  *-- !!!
  IF SYS(2000, DEBUGMODEFILE) <> ""
  	IF NOT EMPTY(tcProject)
  		tcProject = FORCEEXT(tcProject, "pjx")
  	ENDIF
    =BuildMetaData(tcProject, lcMetaTableName)
  ENDIF
Delete setup.fxp before compiling so the prg is definately recompiled.

HTH,
Armin

>>Hi Chris,
>>some things that come to my mind:
>>
>>- Is debug.txt compiled into the exe?
>>- Do you have a hard coded path for the #DEFINE DEBUGMODEFILE "DEBUG.TXT" in appincl.h?
>>- Are you sure they're starting the EXE in the correct directory?
>
>No, I should have said I checked all that. For some reason, it's finding the project path and using it. I need to know how and why, and make it stop.
>Where in the .EXE does it reference it? I don't plan on installing MM and full source code everywhere just to make the EXE run.
>
>Chris.

Armin Neudert
Regional Director (Stuttgart) of German FoxPro User Group dFPUG

MCP for Visual FoxPro

Expert/Editor of the VFP section in the German Codezone community portal
Previous
Reply
Map
View

Click here to load this message in the networking platform