|
any idea in making a menu bar in win32 console application?
any libraries or method???
thanks
|
|
|
|
|
You can make an app that is win32 that emulates a console in a rich edit view.
My neighbours think I am crazy - but they don't know that I have a trampoline. All they see my head bobbing up and down over the fence every five seconds
|
|
|
|
|
can u explain more about this... cause i cannot get what u mean?
|
|
|
|
|
I am trying to make it easy for you. Menuing is already implemented in Win32, you might as well use the existing system. Otherwise you must go waaaaaaaaay back in time and dig up some library like turboC to implement this.
My neighbours think I am crazy - but they don't know that I have a trampoline. All they see my head bobbing up and down over the fence every five seconds
|
|
|
|
|
the problem is i need to complete my coursework in Win32 "CONSOLE" application... i need to make a "menu bar" below the title bar... anything can do for it? i try to use glui opengl but menu bar not inside this library...
|
|
|
|
|
silvergoat wrote:
i try to use glui opengl but menu bar not inside this library...
Damn, I think I'm all confused now ... why on earth would you need to use openGL to create a menu for a console application ?!
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
Yes I am having trouble understanding the question - let alone answering it.
My neighbours think I am crazy - but they don't know that I have a trampoline. All they see my head bobbing up and down over the fence every five seconds
|
|
|
|
|
Do not use OpenGL - that is a graphics library, and has very limited event (read mouse click) support. Are you being asked to write your own custom menuing system for a console application? If so - it simply a matter of doing some hard work over the next few days.
My neighbours think I am crazy - but they don't know that I have a trampoline. All they see my head bobbing up and down over the fence every five seconds
|
|
|
|
|
yes... i need to write own custom menuing system for a application....
|
|
|
|
|
The data structure would something like
vector < map < string, void* > >
where the void* points to each of your functions, and the string is what is displayed in the menu.
My neighbours think I am crazy - but they don't know that I have a trampoline. All they see my head bobbing up and down over the fence every five seconds
|
|
|
|
|
silvergoat wrote:
any idea in making a menu bar in win32 console application?
console ? like text only application ?
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
if u dunno how useful opengl in vc ++ pls... keep quiet.. thanks
|
|
|
|
|
Are you saying that asking questions to get a better understanding of the problem is prohibited?
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
well, if it's for an openGL application ( not the same thing as a console application ) , have a look at GLUT, the OpenGL Utilities Toolkit (http://www.opengl.org/documentation/spec.html[^] )
If you want to do everything manually, it's a lot of work, you need to draw everything, handle the different messages ( mouse movements, callbacks, ... ).
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
I'm trying to use the Boost Regex[^] library in my MFC SDI app but am having some problems including the files as they instruct.
I've built the library per their instructions[^]
I added the C:\boost path to my include directories for my project
I added #include <boost/regex.hpp> to the top of the file I intend to use it in ... yet I still get a compile-time error saying the following:
MyAppName fatal error LNK1104: cannot open file 'boost_regex_vc7_mdid.lib'
Any ideas what I'm doing wrong, or how to fix it?
Thanks very much,
Dave
|
|
|
|
|
You also need to add the boost library path in the options of your vc++ installation
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I tried adding the C:\boost path to the VS.NET library includes path, and it diesn't work.
I also tried adding C:\Visual Studio .NET\Vc7\lib (where that library file actually resides) to both the VS.NET library path definition, and the project library definitions path and no luck.
One more thing ... I'm not using pre-compiled headers ... if that would make any difference.
Thanks for the suggestion. Any others?
|
|
|
|
|
I ended up including the path to the .lib files in the linker section of the properties.
I'd forgotten to do that, and the setup instructions were somewhat vague.
|
|
|
|
|
Hi all,
I'm using a list"double" variable in my code. Even though I added the #include "list" to the beginning of the file, I keep getting a 'undeclared identifier' message. What's missing? Best,
Ralf.
ps " = angled brackets. Can't display those.
ralf.riedel@usm.edu
|
|
|
|
|
RalfPeter wrote:
ps " = angled brackets. Can't display those.
Sure you can. Just click on the < and > in the Formatting bar above the smileys.
"The pointy end goes in the other man." - Antonio Banderas (Zorro, 1998)
|
|
|
|
|
Be sure to use:
using namespace std;
or use:
std::list<double>
Perl combines all the worst aspects of C and Lisp: a billion different sublanguages in one monolithic executable. It combines the power of C with the readability of PostScript. -- Jamie Zawinski
|
|
|
|
|
Good deal, it worked. Thx.
|
|
|
|
|
In order to type angle brackets in a message, use < for < and > for >. These are the 'character entities' in HTML for those respective characters.
Software Zen: delete this;
|
|
|
|
|
Hi all,
I'm using a list<double> variable in my code. Even though I added the #include <list> to the beginning of the file, I keep getting a 'undeclared identifier' message. What's missing? Best,
Ralf.
ralf.riedel@usm.edu
|
|
|
|
|
after the include put this line.
using namespace std;
MSN Messenger.
prakashnadar@msn.com
|
|
|
|