hi,
i star to learn win32, know im in the menu creation topic with resource files, i come from a c++ background, so i think my problem is that im not using the #defines rigth,
Code:
//winmain file
#include <windows.h>
//my definitions file
#include "ids.h"
int WINAPI WinMain (......
{
......
}
the definitions file:
ids.h
Code:
#define CM_PRUEBA 100
#define CM_SALIR 101
the resource file
myres.rc
Code:
#include "ids.h"
//a simple menu with 2 items
Menu MENU
BEGIN
POPUP "&Principal"
BEGIN
MENUITEM "&Prueba", CM_PRUEBA
MENUITEM SEPARATOR
MENUITEM "&Salir", CM_SALIR
END
END
ok heres the error,
I'm using vc++ 6.0
C:\programas win32\menus4_con_archivo_RECURSO_PERSONAL\ids.h(2) : fatal error RC1004: unexpected end of file found
if i remove in the rc file the #include"ids.h" and use
Code:
#define CM_PRUEBA 100
#define CM_SALIR 101
Menu MENU
BEGIN
POPUP "&Principal"
BEGIN
MENUITEM "&Prueba", CM_PRUEBA
MENUITEM SEPARATOR
MENUITEM "&Salir", CM_SALIR
END
END
everything works fine, any idead what am i doing wrong?
thanks for any help and please excuse my poor english