M
Mike
Hi !
I have some strange problem and I would like to know if it is a bug or not :
In my projects, in 2 different .cpp files, I use the same name to define a
local structure:
file1.cpp :
typedef struct TOTO
{
CString s;
GUID g;
GUID g;
};
file2.cpp :
typedef struct TOTO
{
GUID g;
CString s;
};
When I instanciate a variable toto of type TOTO in the file1.cpp, it works
but the content of variable members are strange. And when I try to define
the s variable I have a violent error.
TOTO toto; // ok ! but toto.s contains "U$...." instead of ""
toto.s = "yo"; // violent error !
I am programming in C++ and using Visual .NET 2003. The 2 files have the the
include on the precompiled header file (stdafx.h).
thanks for your help...
Mike
I have some strange problem and I would like to know if it is a bug or not :
In my projects, in 2 different .cpp files, I use the same name to define a
local structure:
file1.cpp :
typedef struct TOTO
{
CString s;
GUID g;
GUID g;
};
file2.cpp :
typedef struct TOTO
{
GUID g;
CString s;
};
When I instanciate a variable toto of type TOTO in the file1.cpp, it works
but the content of variable members are strange. And when I try to define
the s variable I have a violent error.
TOTO toto; // ok ! but toto.s contains "U$...." instead of ""
toto.s = "yo"; // violent error !
I am programming in C++ and using Visual .NET 2003. The 2 files have the the
include on the precompiled header file (stdafx.h).
thanks for your help...
Mike