-
April 9th, 2010, 03:03 PM
#1
convert System::String ^ to const BYTE
I'm performing a simple operation and my brain is not helping me out (overly fried).
I have:
String ^ myString = Console::ReadLine();
I need to convert myString to a const BYTE *lpdata.
-
April 11th, 2010, 02:43 AM
#2
Re: convert System::String ^ to const BYTE
Use Marshal StringToHGlobalAnsi or StringToHGlobalUni methods.
-
April 11th, 2010, 05:05 AM
#3
Re: convert System::String ^ to const BYTE
-
May 2nd, 2010, 02:17 PM
#4
Re: convert System::String ^ to const BYTE
Originally Posted by lilrangerabn
I'm performing a simple operation and my brain is not helping me out (overly fried).
I have:
String ^ myString = Console::ReadLine();
I need to convert myString to a const BYTE *lpdata.
Use System::Convert::Tostring( );
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|