Click here to Skip to main content
15,920,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How can i close messagebox without clicking a button? Pin
_AnsHUMAN_ 28-May-09 1:05
_AnsHUMAN_ 28-May-09 1:05 
AnswerRe: How can i close messagebox without clicking a button? Pin
KarstenK28-May-09 1:41
mveKarstenK28-May-09 1:41 
AnswerRe: How can i close messagebox without clicking a button? Pin
David Crow28-May-09 4:17
David Crow28-May-09 4:17 
AnswerRe: How can i close messagebox without clicking a button? [modified] Pin
walker_network_ranger8-Jan-13 21:04
walker_network_ranger8-Jan-13 21:04 
QuestionConvert from "String ^" to std::String Pin
tecnico.antonio28-May-09 0:44
tecnico.antonio28-May-09 0:44 
AnswerRe: Convert from "String ^" to std::String Pin
Rajesh R Subramanian28-May-09 1:05
professionalRajesh R Subramanian28-May-09 1:05 
GeneralRe: Convert from "String ^" to std::String Pin
AntoniP28-May-09 1:16
AntoniP28-May-09 1:16 
AnswerRe: Convert from "String ^" to std::String Pin
Stuart Dootson28-May-09 1:33
professionalStuart Dootson28-May-09 1:33 
If only it were that simple...

Here's my attempt at code that gets the raw wide characters from a CLR String into a std::wstring - I'll leave the conversion to ASCII to you - there are plenty of examples of how to do that part of it...

String^ ss = "hello";

std::wstring s;

array<wchar_t>^ chars = ss->ToCharArray();
pin_ptr<wchar_t> charPtr = &chars[0];
s = std::wstring(charPtr, charPtr+ss->Length);


Microsoft's suggested solution is here[^].

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

GeneralRe: Convert from "String ^" to std::String Pin
AntoniP28-May-09 1:43
AntoniP28-May-09 1:43 
QuestionFiltering Techniques in Kernel level Pin
Jacobb Michael28-May-09 0:37
Jacobb Michael28-May-09 0:37 
Questionerror LNK2001: unresolved external symbol "public: static bool Pin
ptr_Electron27-May-09 23:50
ptr_Electron27-May-09 23:50 
AnswerRe: error LNK2001: unresolved external symbol "public: static bool Pin
Rajesh R Subramanian27-May-09 23:52
professionalRajesh R Subramanian27-May-09 23:52 
GeneralRe: error LNK2001: unresolved external symbol "public: static bool Pin
ptr_Electron28-May-09 0:06
ptr_Electron28-May-09 0:06 
GeneralRe: error LNK2001: unresolved external symbol "public: static bool Pin
Rajesh R Subramanian28-May-09 0:11
professionalRajesh R Subramanian28-May-09 0:11 
GeneralRe: error LNK2001: unresolved external symbol "public: static bool Pin
ptr_Electron28-May-09 1:04
ptr_Electron28-May-09 1:04 
GeneralRe: error LNK2001: unresolved external symbol "public: static bool Pin
Rajesh R Subramanian28-May-09 1:12
professionalRajesh R Subramanian28-May-09 1:12 
GeneralRe: error LNK2001: unresolved external symbol "public: static bool Pin
ptr_Electron28-May-09 3:05
ptr_Electron28-May-09 3:05 
GeneralRe: error LNK2001: unresolved external symbol "public: static bool Pin
KarstenK28-May-09 0:14
mveKarstenK28-May-09 0:14 
GeneralRe: error LNK2001: unresolved external symbol "public: static bool Pin
ptr_Electron28-May-09 1:07
ptr_Electron28-May-09 1:07 
GeneralRe: error LNK2001: unresolved external symbol "public: static bool Pin
KarstenK28-May-09 1:36
mveKarstenK28-May-09 1:36 
Questiondialog that asks user where to save in. Pin
002comp27-May-09 23:27
002comp27-May-09 23:27 
AnswerRe: dialog that asks user where to save in. Pin
_AnsHUMAN_ 27-May-09 23:37
_AnsHUMAN_ 27-May-09 23:37 
GeneralRe: dialog that asks user where to save in. Pin
002comp27-May-09 23:53
002comp27-May-09 23:53 
GeneralRe: dialog that asks user where to save in. Pin
Hamid_RT28-May-09 0:14
Hamid_RT28-May-09 0:14 
AnswerRe: dialog that asks user where to save in. Pin
KarstenK28-May-09 0:15
mveKarstenK28-May-09 0:15 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.