Project manager doesn't recognize preprocessor constants

Project manager doesn't recognize preprocessor constants

Post by TGV3 » Wed, 28 Nov 2007 01:13:03


I notice that, in some cases when I defined a file name/location in a header
file, the pm does not pull that file into the project when I do a build. For
example, if I define a common procedure file as #DEFINE _COMMONPROCEDURES
c:\vfp\...etc, even though I have a
set procedure to _COMMONPROCEDURES
statement at the beginning of my main.prg, the pm does not pull the file
into the project and I still get a not found message when one of the included
functions is called. This is a nusiance when not all of the required
functions are named explicitly in code.
Recommendations?
 
 
 

Project manager doesn't recognize preprocessor constants

Post by Jan Buce » Wed, 28 Nov 2007 01:27:05

Lew napsal(a):

#DEFINE _COMMONPROCEDURES "c:\vfp\... "

Maybe it helps?

 
 
 

Project manager doesn't recognize preprocessor constants

Post by TGV3 » Wed, 28 Nov 2007 09:13:02

no... it's not a case of not finding the proc file when running from my
desktop, it's that the pm can't figure out to pull the file into the .exe to
build the rt. So while the test version runs fine, the deployed version bombs.
 
 
 

Project manager doesn't recognize preprocessor constants

Post by Dan Freema » Wed, 28 Nov 2007 09:28:25

The project manager has *never* been able to solve indirect file references.

At the bottom of your main.prg, add something like this:

RETURN .T.
MODI COMM yourprocs.prg

The command will never execute because of the RETURN, but it will trick the
PM into including your file.

Dan
 
 
 

Project manager doesn't recognize preprocessor constants

Post by Lew » Wed, 28 Nov 2007 10:36:08

Yeh, I know the tricks, but if I have to add stuff like that I don't see the
point of using the header file for this purpose. The de *** now displays
#defines correctly, why can't the pm? Maybe I'll suggest this for the next
version.
 
 
 

Project manager doesn't recognize preprocessor constants

Post by Villi Bern » Wed, 28 Nov 2007 16:25:12


Err... "next" version? :)
--
News Microsoft
 
 
 

Project manager doesn't recognize preprocessor constants

Post by Rush Stron » Wed, 28 Nov 2007 16:42:57


Shhhh . . . he doesn't know yet.

- Rush