ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Intro to Managed C++, Part 2: Mixing Managed and Unmanaged Code
Subject:   No error
Date:   2003-03-07 13:07:11
From:   samgentile
Response to: Error with example

This is no error with the sample. I just re-compilled to make sure:
----- Rebuild All started: Project: Mixed2, Configuration: Debug Win32 ------

Deleting intermediate files and output files for project 'Mixed2', configuration 'Debug|Win32'.
Generating Code...
Compiling resources...

Build log was saved at "file://c:\Documents and Settings\Sam Gentile\My Documents\ORielly\Mixed2\Debug\BuildLog.htm"
Mixed2 - 0 error(s), 0 warning(s)

---------------------- Done ----------------------

Rebuild All: 1 succeeded, 0 failed, 0 skipped

String is the C++ Standard version of the String class as opposed to <string.h> which is the "old version. You either have something wrong with the way your VS.NET C++ directories are set up or its something with V1 of VS.NET. I am using VS.NET 2003 (Everett). I can see if I can did up an old copy of V1 but it should work the same way.

It's there for me:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include

I just checked and it's there in VS.NET 1.0 too. You need to set up your directories correctly:
C:\Program Files\Microsoft Visual Studio .NET\Vc7\include