Pointer To String Chars : Pointer « Data Type « Visual C++ .NET






Pointer To String Chars

 
#include "stdafx.h"
#include <msclr\all.h>

using namespace System;

void main()
{
    String ^hstr = "Hello World!";

    pin_ptr<const wchar_t> pstr = PtrToStringChars(hstr);

    wprintf(pstr);
}

   
  








Related examples in the same category

1.Address Indirect
2.Int pointer
3.Int Pointer with gcnew
4.Int Pointer Arithematic
5.Using pointer arithmetic on the interior pointer