Hi,
I'm using MS VC++ 6.0.
I've been following a tutorial to create a pop up window with 3 buttons: Open, Cancel and Connect. In the resource file I'm trying to define these controls but I keep getting an error:
Code:
SelectBafFile DIALOG 0, 0, 300, 200
CAPTION "BAF File Selection"
STYLE DS_MODALFRAME | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
{
// Controls for the dialog will go here
DEFPUSHBUTTON "Cancel", IDCANCEL,174,35,50,14,WS_VISIBLE | WS_CHILD | WS_TABSTOP
PUSHBUTTON "Open" ,IDB_OPEN,174,18,50,14,WS_VISIBLE | WS_CHILD | WS_TABSTOP
PUSHBUTTON "Connect" ,IDB_CONNECT, 174, 52, 50, 14, WS_VISIBLE | WS_CHILD | WS_TABSTOP
}
AND THE ERROR:
Code:
error RC2104 : undefined keyword or key name: IDB_OPEN
Error executing rc.exe.
If I use IDOK or IDCANCEL it is fine, otherwise it gives an error. what did I forget to add?
Thanks.