Click to See Complete Forum and Search --> : Can't find marshal.h


Ralfonso
January 7th, 2009, 05:01 PM
hello,

i want convert a
System::String^
in a
const char*

so here is my little example:

#include <msclr/marshal.h>
#include <msclr\marshal_cppstd.h>

String ^laden;
//...

msclr::interop::marshal_context mc;
const char *first = ms.marshal_as<const char*>(laden);


My compiler doesn't find the two includes. And i have seared my hdd und i haven't such files. Does anybody know why i Don't have these files and where i can get them? I'm using Microsoft visual C++ 2008 Express Edition.

I would be glad for any help.

Greetings.

darwen
January 10th, 2009, 09:31 PM
To convert strings to char * see my previous post :

http://www.codeguru.com/forum/showthread.php?t=467464

I'm not aware of marshal.h or marshal_cppstd.h - they're not present on my copy of VS2005 or VS2008 express.

Darwen.