>>526さんへ
String^hex_convert(UInt64 hoge)
{
  wchar_t foo[16];
  memset(foo,0,16*sizeof(wchar_t));
  _i64tow_s(hoge,foo,16,16);
  String^tmp=gcnew String(foo);
  return String::Format("{0:X}",hoge);
}
hoge
: error C2664: 'void System::Windows::Forms::Control::Text::set(System::String ^)' : 1 番目の引数を 'unsigned __int64' から 'System::String ^' に変換できません。(新しい機能 ; ヘルプを参照)

n
: error C2065: 'n' : 定義されていない識別子です。
となってしまいます。
orz