If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: Can't intialize C++ Struct with CString in it??

Originally Posted by ADSOFT

Igor and Victor,

It's starting to look like the compiler V6.0 , lol.

First and foremost, VC 6.0 is not an ANSI C++ compiler. The answers that were given to you earlier assumed you were using an ANSI C++ compiler, such as later versions of Visual C++. In VC 6.0, perfectly valid ANSI C++ code will fail to compile, and also, invalid ANSI C++ code will compile on that old compiler.

Re: Can't intialize C++ Struct with CString in it??

?? maybe you updated your V6.0 sdk, on this computer it's not updated?

strange?

The bottom line is that VC 6.0 is not an ANSI C++ compiler. It has nothing to do with the SDK.

The C++ language was standardized in 1998. This is after VC 6.0 came out. So you have a computer language, C++, that was finally standardized after the compiler you're using was created. Do you see a problem with that? The obvious problem is that the C++ language contains rules that never made it into the VC 6.0, and one of those rules is construction inside an initialization.