[purple]i've started doing c/c++/windows programming using visual studio 2005 and stuck in some problems. can u pliz help me:
1) MessageBox(hwnd, "Text", "Caption", MB_OK);
compiler gives error for the above statement and tells it cannot convert those char's to LPCWSTR type. but when i cust like this:
MessageBox(hWnd, (LPCWSTR) "Text", (LPCWSTR) "Caption", MB_OK);
i get garbled text both in the text area and in the caption. why?
2a) i'm unable to edit any resource file manually. how can i do that?
2b) how can i add a control to a dialog box without manually edit the resource file?
thanks in advance. :-)