| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | Newsletters | VB Forums | Developer.com |
|
|||||||
| C++ and WinAPI Discuss Windows API related issues using C++ (and Visual C++). This is a non-MFC forum. |
![]() |
|
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
error problem
i made one project in Dev C++
error say like that 4 C:\Dev-Cpp\Examples\ZZZZZZZZZZZZZZZZZ\resource.rc [Resource error] syntax error C:\Dev-Cpp\Examples\ZZZZZZZZZZZZZZZZZ\Makefile.win [Build Error] [Project1_private.res] Error 1 this is resource.rc file [quote] #include "resource.h" [quote]IDD_CONTROLSDLG DIALOG 260, 200, 180, 120[\QUOTE] //ERROR MESSAGE STYLE WS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU CAPTION "Windows Controls" FONT 8, "MS Shell Dlg" BEGIN DEFPUSHBUTTON "Close", IDCANCEL, 120, 100, 50, 14 END [\QUOTE] and this is Untitle3.cpp file [quote] #include <windows.h> #ifdef __BORLANDC__ #pragma argsused #endif #include "resource.h" //--------------------------------------------------------------------------- HWND hWnd; LRESULT CALLBACK DlgProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam); //--------------------------------------------------------------------------- int APIENTRY WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ) { DialogBox(hInstance, MAKEINTRESOURCE(IDD_CONTROLSDLG), hWnd, reinterpret_cast<DLGPROC>(DlgProc)); return 0; } //--------------------------------------------------------------------------- LRESULT CALLBACK DlgProc(HWND hWndDlg, UINT Msg, WPARAM wParam, LPARAM lParam) { switch(Msg) { case WM_INITDIALOG: return TRUE; case WM_COMMAND: switch(wParam) { case IDCANCEL: EndDialog(hWndDlg, 0); return TRUE; } break; } return FALSE; } //--------------------------------------------------------------------------- [\QUOTE] and this is resource.h file [quote]#define IDD_CONTROLSDLG 101[\QUOTE] |
|
#2
|
|||
|
|||
|
Re: error problem
Please use code tags if you want people to help you. "[code] ["/"code] "
Last edited by MasterDucky; November 5th, 2009 at 10:20 AM. |
|
#3
|
|||
|
|||
|
Re: error problem
What is WS_MODALFRAME?
Did you mean DS_MODALFRAME?
__________________
Vlad - MS MVP [2007, 2008, 2009] - www.FeinSoftware.com Convenience and productivity tools for Microsoft Visual Studio: FeinViewer - an integrated GDI objects viewer for Visual C++ Debugger, and more... |
![]() |
| Bookmarks |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|