Zdravim,
potreboval by som pomoct s jednou vecou ktorej nechapem. Mam Win32 aplikaciu a v resource.h mam definovane konstanty pre ikonu a menu
Resource.h:
#define IDI_ICON1 129
#define IDI_ICON2 131
#define IDR_MENU1 132
#define ID_EDIT_U 32771
#define ID_EDIT_REDO 32772
#define ID_EDIT_SETTINGS 32773
#define ID_SETTINGS_SOUND 32774
#define ID_FILE_OPEN 32775
#define ID_FILE_SAVE 32776
#define ID_FILE_EXIT 32777
#define ID_HELP_ABOUT 32778
Ale ked ich potom chcem pouzit
Main.cpp:
wc.hIcon = LoadIcon(hInstance, MAKEINTRESOURCE(IDI_ICON1));
wc.lpszMenuName = MAKEINTRESOURCE(IDR_MENU1);
Tak to vyhodi chybu
Error 2 error C2065: 'MAINMENU' : undeclared identifier c:\documents and settings\user\win32\win32\win32.cpp 25 WIN32
Ale ak pridam
#include "Resource.h"
do main.cpp tak mi vypise upozornenie
Warning 1 warning C4627: '#include "Resource.h"': skipped when looking for precompiled header use c:\documents and settings\user\win32\win32\win32.cpp 2 WIN32
Ale ak zadam ciselnu hodnotu konstanty (129,132) tak to funguje. Jak je to mozne?