Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#INCLUDE and pathing - not allowed?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01499592
Message ID:
01499693
Views:
97
>>Hi Gang.
>>
>>Just for me to get a heads up here.....
>>
>>When I BUILD my EXE from the source code of one of our programs here, I get this error....
>>
>>
>>Compiling c:\pharmacy\class libraries\forms\forms_rx.vcx
>>#INCLUDE gcPath + "\L_FOX.H"
>>Error in line 13 of frmrx.pgfScreen.FillPage.cmdPrefill.Click (record 1756): File does not exist.
>>
>>
>>and here is part of the code of where this occurs.....
>>
>>
>>*TMN 03/21/08  -  take prescription picture
>>IF pharmacy_config.digitize_scripts = .T.
>>	*-- check to see if an existing image file already exists for script
>>	lcEditImageFile = gcPath + "\RxImages\" + ALLTRIM(STR(rx.rx_no)) + ".jpg"
>>	IF FILE(lcEditImageFile) 
>>	   *-- do nothing
>>	ELSE
>>		IF Thisform.P_Formtype = 0  && only do for new Rx			
>>			# DEFINE UNLOCK_APP_ONCE 2
>>			SZ_DEFAULTAPPID = "LEADTOOLS Multimedia Application"
>>			#INCLUDE gcPath + "\L_FOX.H"
>>
>>			pszAppID = SZ_DEFAULTAPPID
>>			Kernel2 = CREATEOBJECT("DSKernel.LMDSKernel.2")
>>			Kernel2.UnlockModule("721501-4410099-000", UNLOCK_APP_ONCE, pszAppID)
>>
>>			count = Thisform.LTMMCapture.VideoDevices.count
>>			
>>			If (count > 0) Then
>>		 	  Thisform.m_load(23,.T.)
>>			  NODEFAULT	
>>			ENDIF
>>		ENDIF
>>	ENDIF
>>ENDIF
>>*TMN 03/21/08
>>
>>
>>The troublemaker is the following line
>>
>>#INCLUDE gcPath + "\L_FOX.H"
>>
>>So.... the gcPath is a global variable set up in the startup code of the program (this is an OLD program from DOS days converted to Windows and VFP a long time ago too).
>>
>>One of my fellow programmers started the #INCLUDE gcPath + "\L_FOX.H" in the application in various locations of the code with the same result when building the application.
>>
>>When I change it to
>>
>>#INCLUDE "L_FOX.H" the error goes away and builds.
>>
>>So, adding a path to the "L_FOX.H" part is not allowed, eh?
>>
>>Thanks!
>
>The path must be a real path that can be resolved in dev. time, not a variable.

I figured as much..... thanks!!!
Tommy Tillman A+ NetWork+ MCP
Previous
Reply
Map
View

Click here to load this message in the networking platform