Help: Dialog not working

l want to make a program using MSVC++ 2010. The code compiles and the code before the dialog procedure works but the dialog doesn't pop up. However if l take the same code to Dev-C++ it runs fine but the not all the dropdown list shows. Thanks
snippet below:
/////.cpp
.....
switch (message)
{
case WM_CREATE:
MessageBox(hWnd, L"Run",L"Message",0);
DialogBox(((LPCREATESTRUCT)lParam)->hInstance,L"CHOICEBOX",hWnd,ComboDlg);
return 0;



///dialog proc
INT_PTR CALLBACK ComboDlg(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam){
int i=0; static int firsttime=1;
switch(message)
{
case WM_INITDIALOG:

......etc

////Resource Script
CHOICEBOX DIALOGEX 0, 0, 385, 279
STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | WS_THICKFRAME | WS_VISIBLE
CAPTION "Select Category"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
.....
END
l just got an answer which is to add L to the strings in the resource script.
In case another fall to the same problem.

Correct version:

CAPTION L "Select Category"
FONT 8, L "MS Shell Dlg", 400, 0, 0x1

Topic archived. No new replies allowed.