This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: static array of strings?
Thanks, you were right.
(Actually, both _T and LPCTSTR were defined in a header that wasn't being
#included by the file containing the array.)
Cheers,
Sean
-----Original Message-----
From: gcc-help-owner@gcc.gnu.org [mailto:gcc-help-owner@gcc.gnu.org] On
Behalf Of John (Eljay) Love-Jensen
Sent: Friday, May 22, 2009 4:20 AM
To: Sean Draine; GCC-help
Subject: Re: static array of strings?
Hi Sean,
Did not work on my machine, because LPCTSTR was not specified.
At the beginning, I added a:
typedef wchar_t const* LPCTSTR;
Then it worked.
Note: beware the bad Hungarian, since on Windows (Win32, Win64, and on Mac32
and Mac64) the pointer is not a "LP".
> Is there a specific issue with the syntax, the macro, or are static arrays
> of strings simply not supported by gcc?
I think there may be a specific issue with the definition of LPCTSTR
missing.
HTH,
--Eljay