New to managed C++ Please help

  • Thread starter Thread starter Gerald Klein
  • Start date Start date
G

Gerald Klein

Hi, For some reason I am unable to see certain namespaces in my VS generated
class files, such as System::Data; I can see System; I can see
System::Collections; But again I cannot see
System::Collections::Specialized. Does anyone have an idea??

PS I also have a C# project attached to the same solution that sees
everything.

Thanks Gerald Klein
(e-mail address removed)
 
Gerald said:
Hi, For some reason I am unable to see certain namespaces in my VS
generated class files, such as System::Data; I can see System; I can see
System::Collections; But again I cannot see
System::Collections::Specialized. Does anyone have an idea??

Hi Gerald,
You need to put the following line in your code:

#using <System.dll>

The System::Collections::Specialized types are all in System.dll. This is
mentioned at the bottom of the documentation for those types. For C++, types
need to be referenced in source code. You can also use the /FU switch (which
is similar to the C# /r switch.

Cheerio!
 
Back
Top