VC++.NET How to convert System::String to char pointer

lookie here

This article also covers a bit about passing these char pointers to unmanaged functions. Very useful.

General Managed C++ comments and links

#using is for MSIL output files only, e.g. . You have to compile projects with /clr to make them MSIL.

System.IO.FileNotFound Exception. Additional information: File or assembly name BLAH, or one of its dependencies, was not found.

This error is weird. It seems related to mixing unmanaged code with managed.

OK, i seem to have the beginnings of a solution.. You MUST use pointers when declaring unmanaged types. I am thinking i will need to do a proper managed C++ wrapper class. See: Part I: Introduction to Wrapping C++ Classes.

Clean/Rebuild is your friend.

MSVC Linker error LNK1136

F R U S T R A T i O N

can't tell if this is because you can't link to a dll or because the dll is stuffed! more to come (hopefully)

-- Fixed this by putting the Test harness program (the one that was trying to use the dll) into its own solution and referencing the dll as a dll reference, not a project reference.

MSVC Compiler error C2129

This can be fixed by declaring the function as extern in your header file.

LNK2005 errors

These can happen while using VC++

One way to fix them is make all the offending "multiply declared" variables/functions static, so they are only declared once.

Another way is to check that you have no functions defined in your header files.