the Item id box is grayed out, and I can't view it.
Printable View
the Item id box is grayed out, and I can't view it.
Can you zip up all the .h, .rc, .cpp files and anything that looks like source code, please?
I'll see what I can do.
Here it is :)
In mymenu.h, add the line
#define MYMENU 1000
Still no menu.... :(
Hmm...I can't see what Borland's doing there. In VC++ when you create a menu it automatically makes an ID for it.
When I tried to compile and run the program under BC4.5, it said that it was unable to run the program.
The I tried to run the progam from the Explorer, it told me that, the file CW3215.DLL was missing.
Then I compiled it in Dev C++. It compiled, but no menu....
Was BC4.5 installed properly? The CW DLL should have been installed into your system folder.
It should, but errors do happen...
Would it help to reinstall BC45???
Was does the DLL file do???
I think it's some kind of runtime DLL. It's similar to msvcrt.dll in that case.
Could it have something to do with the menus not showing up????
No. It'll just prevent the program from running at all. I think it's a problem with the resource file -- something's definitely not right there, as the ID should have been allocated by the editor :confused:
This is why I stopped using Borland :rolleyes:
Yes, I would like to kick it to the moon, but, it's all I got...
Yeah :(
Well...I'll make some tweaks to yours and see if it works...
Thank you! I really appreciate it! :)
Okay...I've had a go but can't guarantee anything since I don't have BC...
Hi again! Thanks for looking at my project.
I get 2 errors:
Line 56: Undefined symbol S_HREDRAW in funtion WinMain
Line 74: Statement missing ; in function WinMain
Okay...replace the S_HREDRAW with CS_HREDRAW.
And add a semicolon to the end of this line:
I think I missed a few things when I rearranged the code so that I could understand it ;)Code:main_window_handle = CreateWindow(WINDOW_CLASS_NAME, "Hello Carsten! The C++ Programmer!", WS_OVERLAPPEDWINDOW | WS_VISIBLE, 500, 500, 320 ,200, NULL, NULL, hinstance, NULL)
:D OK
I'm sorry to say this, but....still no menu.....is it the compiler or Windows thats screwed up....again....
Bollocks.
I think it's the compiler...using it that way worked fine with VC. :(
That's strange...
I tried it with the new Borland C++ 5.5.1 compiler, and compiled the .cpp file as a Windows program. Nothing happend...
Then I tried compiling your code in Dev-C++ 4...nothing happend either......:confused:
Last-ditch effort -- I'll put my code into a VC++ project and see if it works, then send you the code files.
Ok, thanks...
Okay, this works in VC++...
Hi! :)
The buttons work fine, but still no menu... compiled with Dev C++ 4.
In BC I get an error at line 8.
Replace __stdcall with CALLBACK should make it work in Borland.
I don't know what the other problem is, since it works perfectly for me.
Now it totally errors out and can't run the program, not even from the explorer. I think my borland files are fuc***!
I Have an Bc45 menu example, that worked yesterday, but when I use my/your code, it doesn't....
So hoiw do you know if one is a pointer, and another is a reference??
Because a reference has the same type as the value it references. A pointer has the type of a pointer to that type.
parksie!! I did it!!
I forgot to include the mymenu.rc in the compiler options!! DOOOH!!!
Thanks for all your help! :)
Hehe always the simple things :rolleyes:
I've got many bruises from kicking myself senseless over things like this :)
Same here!!!! :D