found the answer on this forum:

http://www.xtremedotnettalk.com/showthread.php?t=71907

This is easy to figure out but you can also combine the 2 lines:

String * fname = “Whatever String”;

char* ufname = ( char * ) ( void * ) Marshal::StringToHGlobalAnsi(fname);
// do your stuff with ufname here
Marshal::FreeHGlobal((int)ufname);

1 Comment

Go to Comment Form »
  1.   RALPH said:

    July 20, 2010 @ 9:52 pm


    MedicamentSpot.com. Canadian Health&Care.Special Internet Prices.Best quality drugs.No prescription online pharmacy. No prescription pills. Order pills online

    Buy:Cialis Soft Tabs.Propecia.Maxaman.Viagra Super Active+.Levitra.Viagra.VPXL.Zithromax.Viagra Soft Tabs.Viagra Professional.Tramadol.Cialis.Soma.Cialis Super Active+.Cialis Professional.Viagra Super Force.Super Active ED Pack….


Post a Comment