• C

adding a menu to borland C++ project

I have made a simple windowsprogram, I am using borland C++ 5.0. I now want to add a simple menu, I have generated a menu using resource workshop, it generates a .rc file, compiling it generates a .res file. I have specified the name of the menu when defining the window class. But I guess I'm missing something, I get no menu! Pleas help!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

If you use OWL:
in you InitMainWindow() function.
ID_MAINMENU must be in you RC file:

In plain Window may be something as:
#pragma argsused
int PASCAL WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
          LPSTR lpszCmd, int nCmdShow)
   static char szAppName[] = "CHelp" ;
   HWND        hwnd ;
   MSG         msg ;
   WNDCLASS    wndclass ;
   HANDLE    hAccel;

   if (!hPrevInstance)
      wndclass.lpszMenuName  = MAKEINTRESOURCE(ID_MAINMENU  );

      RegisterClass (&wndclass) ;
In Console/EasyWin Apps : without menu.
Test you Borlandc Examples (or i can send you some full project: write you
I hope, it helps. Alex


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sa9813Author Commented:
Is it okey if I send you my project and you can look? It's very straightforward...
You can send me you project to
alexvirochovsky@yahoo.com and
ask you question and i9 allway reply. But i want ask you: you evaluate my reply in "D" grade. Why and what wrong in my reply?

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.