|
From: <or...@vp...> - 2004-05-20 02:17:31
|
A.Buschh=FCter wrote:
> Hi,
> I have a problem, that shouldn't be a problem... ;)
> I've got a #define statement for the strings length, at the start of th=
e=20
> file.
> It works like it should, but in this case:
>=20
> #define MAXSTRING 256
>=20
> void loadData(){
> char iniFile[MAXSTRING]; // replaced
> cIniEd tmp;
>=20
> strcpy(iniFile, projekt_Data.projekt_Path);
> strcat(iniFile, "MAXSTRING.ini"); // not replaced
> tmp.setPfad(iniFile);
>=20
> }
> [/code]
>=20
> I get always "MAXSTRING.ini", but it should be "256.ini", doesn't it ??=
?
NO. The preprocessor doesn't parse inside strings literals - that would=20
cause very serious problems.
--
Greets,
Bal=E1zs
|