Win32 Application calling C code [closed] - c++

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
For my engineering project we are programming robots and our team decided to program a gui in Win32 to direct the robot how to move, rotate, etc. So far I haven't found anything on the web about how to encapsulate the code and call functions using buttons and other inputs. Anyone know of a good guide or any tips on how to do this?

If you really want to program in the raw C/Win32 API, I'd get a copy of Petzold. Buy a used copy ;)
If you want to program something more contemporary, I'd consider using C# and .Net.
IMHO...
PS:
You might also wish to consider Linux. Linux can make it really easy to get close to the hardware, and you've got lots of choices in both languages (C, C++, Python, Java, etc etc) and UIs (SDL, Qt, GTK+, etc, etc)

Check out Qt.
This will allow you to easily create guis, connect click/mouse/any event to the underlying api call easily. Also allows you to trivially multi thread the application so that your calls to the underlying robot api will not lock up your front-end... all within one very easy to use and adaptable framework.
Imho, starting off with win32 is just asking for more pain than it's worth

Related

Suggestions for quick GUI development tool with C++? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I am looking for an RAD C++ development tool that can let me put together a not-too-complex GUI project (for video processing & display) very quickly. I would use a Active Control in the GUI, and calling some C++ libraries. I am looking at these options:
Visual C++. It's actually not an RAD tool, and from my past experience, MFC is really outdated and painful to use. I really don't want to touch it any more.
QT Creator. It's modern, elegant to use, but still not an RAD environment. I would like to work out my App in two weeks. I don't think I can do that with the QT ecosystem.
C++ Builder. This looks like the ideal choice. Dead easy to develop. Tons of VCL controls to easily extend the GUI functionality. But it looks like it's falling into obscurity these days (for reasons I yet to understand).
What do you think is the best choice for quick GUI development tool with C++?
(Please answer quickly since this question probably will be killed for "Off Topic" very shortly)
You can use Windows Forms, pretty easy with lots of help and example code.
Glade is a RAD tool to enable quick & easy development of user interfaces for the GTK+ toolkit and the GNOME desktop environment.

How to break out from beginner stage in learning C++ [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Before I enter the stage of my university's life, I grab a book and start learn about C++ (reading and writing and of course , experimenting with it), I manage to cope myself with the computer programming subject I took during the first semester of my uni's life (I'm taking IT).
I even wrote a program called Cellular Automata Conway's Game of Life, which is a title given by my lecturer to me.
The Question:
The Question I always have in mind is that how can I really start doing some real world project ? I feel I can grasp the syntax , rules and logics of the language but I can't really make good use of it . I feel there are many things that cannot be accomplished using C++ standard library .
If I really wanted to break out from this, do I need to start downloading SDK, framework or API and start making use of it to create software? Or a programmer can just create a full-fledge software out of the standard library of C++?
I have an idea of creating browser using C++ , the thing is that I can't even find a way on how to do it (how to make it request a webpage and fetch the content back , how to connect flash player to my browser etc), can we achieve all these using standard library or we need some external agent to do so?
Thank you for spending time reading my situation.

Win32 still best for Windows game development? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm looking to start a new project to work on in my free time that covers a lot of areas of Computer Science and I've decided on a game (most likely flight simulator or simple 2D side-scroller). Anyway, I do a lot of C#/Java development at work writing business applications so I'm looking to do a game in C++ (I have used C#/XNA for games previously).
However, I'm trying to find a good framework for C++ game development. I have used Qt before but don't believe this is suitable for what I am trying to achieve. Is Win32 and OpenGL still the best for C++ game development?
Also, I want to keep this pretty OO, any recommendations for wrapping the Win32 for game development? Or does OpenGL provide abstractions to help?
From what I've experienced, the Win API is a complete mess. I'd recommend using something like SDL and save yourself the trouble. As a bonus, this will also make it cross platform. You can also use OpenGL with SDL.
SDL is still a bit low level and has a C style API, so you'll need to write your own OO wrappers. I've heard that SFML and Allegro are popular alternatives but I have less experience with them.
SFML is probably the closest you can get. Most people using 2D rendering roll their own, and most using 3D go with either something like Irrlicht, or roll their own.
As for OGL, the OGL API is horrific- it's even worse than the Windows API. At least that is OO, C-style, instead of just plain old global-variables-up-wazoo.
Check out GLFW. It looks to be minimalistic (in a good way).

How Can Develop My Own GUI in C++ Not The Win32 API? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I want to develop my own GUIs in C++. I mean from the scratch. I am not interested in using the Win32 API, MFC, .NET or anything like that. I want to create and develop everything from scratch. I want to do everything by myself. I just want some links, references or books. Anything that give me guidelines about this.
Can anyone Help?
The Win32 API is the base-API for user-land (i.e, non-kernel-level) programming on the Windows operating system ... you can't do ANYTHING on Windows without going through Win32. So any software that does any operation on Windows will at some point have to make calls to the Win32 API, which in-turn make syscalls to the Windows kernel ... Thus, if you're really interested in programming your own GUI's via raw Win32 calls, I'd suggest getting very familiar with Win32. A good book would be something like "Windows via C/C++" ... it won't give you specific GUI information, but it will give you an in-depth understanding of Win32 that you can use along with the MSDN information to build GUI's from. For actually creating the GUI itself, you can reference the MSDN GDI documentation.
You can't. The only way to draw to the screen in Windows is via the Win32 API. You can write your own GUI framework on top of Win32, but ultimately you will have to get the native system to do the actual work.
OK, without " Win32 API, MFC, .NET".... ? well.. try on Linux, then :-)
Or write an OS.
I had done GUIs on top of DOS with turbo-C in pre-historic times...
Maybe you could try that....

choosing gui for c++ for cross-platform game [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I have just started learning c++ a few days ago and the book I have got does not cover any of the gui aspects in it. Ultimately I am wanting to make simple multilayer games(2-8 players).
I've been doing some reading on gui libraries but have no idea what would be best or what to look for. Is there a gui library you would suggest for cross platform game and why?
For most applications a typical toolkit like Nokia's Qt or WxWidgets is just fine.
If you're planning on having an OpenGL-based game anyhow, you might take a look at GLUI to see if it adds enough tools to make your GUI development easier.
The best free one is CEGUI.
http://www.cegui.org.uk
Why? Because there is no other that can really compete with it.
Ogre3D has some other GUIs too as Plugin, but as standalone CEGUI is leading to my knowledge.