Skip to main content
gamedev.net
🔒 Locked

LoadMenu()

Started by saisoft Oct 28, 2000 at 8:17 AM 0 replies 250+ views
Original Post
saisoft
saisoft
I have a problem. I created a resource file in notepad with just a MENU called menu. In my window class, I do this: winClass.lpszMenuName = LoadMenu(hInstance,"menu"); I am not using a numeric constants either. when i try to compile this, i get this error C:\window1\window1.cpp(27) : error C2440: ''='' : cannot convert from ''struct HMENU__ *'' to ''const char *'' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast any help would be appreciated, thanks alot SaiSoft
baskuenen
baskuenen
Windows will load the resource for you

Try:
    
winClass.lpszMenuName = "menu";


Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.