PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Problem with #define...

PointOfLight · 06 Oct 2004, 22:18 UTC
or, "why I'm really lame". This is what I'm trying to do:

#define gDBFileSpec "\\My Documents\\deVBuzz.cdb"

Unfortunately, the \'s keep going away, and so does the M and d, so I end up with a file named "y_DocumentseVBuzz.cdb" (_ is a space) in the root directory of my PocketPC. What am I doing wrong?
Use the { } delimiters instead of " ". String processing won't be done then.

#define gDBFileSpec {\\My Documents\\deVBuzz.cdb}
PointOfLight · 07 Oct 2004, 03:29 UTC
That didn't work. Attached is a screen shot of the errors I got.
Attachments:
ppl_error.JPG
What about this?

#define test {"\\My Documents\\test"}
ShowMessage(test);

result:
\My Documents\test

Let me know.
PointOfLight · 07 Oct 2004, 21:03 UTC
The {" combo was the ticket. Thanks.