Started by G_G, February 25, 2011, 07:06:07 pm
char *msg = "Hi there";LPCWSTR rmsg = TEXT(msg);// Results in an error// error C2065: 'Lmsg' : undeclared identifier
LPCWSTR rmsg = (LPCWSTR)msg;// Converts msg to weird japanese letters
__declspec(dllexport) int MsgBox(char *msg, char *title, int b) { // Okay Button int buttons = 0x00000000L; switch (b) { case 0: // Okay Button buttons = 0x00000000L; case 1: // Yes No buttons = 0x00000004L; case 2: // Yes No Cancel buttons = 0x00000003L; } LPCWSTR rmsg = (LPCWSTR)msg; LPCWSTR rtitle = (LPWSTR)title; int r = MessageBox(0, rmsg, rtitle, buttons); return r; }
Quote from: winkioI do not speak to bricks, either as individuals or in wall form.
Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.
cout<<"Your long string was: "<< string <<endl;