So, I need to make a program that draws a finite automata from the input data.
I had some experience with the graphics.h header but as far as I know it's a Borland only header and VC++ doesn't support it. So I was wondering, is there a way to draw some simple shapes and lines on VC++, besides using OpenGL?
Basteon
0
Newbie Poster
Recommended Answers
Jump to PostTry the "allegro" library. Do a search on YouTube for how to set it up with VC++. There is a good set of tutorials and some example (the examples are all games-based) at:
http://www.cppgameprogramming.com/cgi/nav.cgi?page=allegbasicsJust double click anywhere on the site to bring up the menu :)
Jump to PostHere's a sample that moves a circle around the window when you press the button.
private: System::Void Form1_Paint(System::Object^ sender, System::Windows::Forms::PaintEventArgs^ e) { //get this event from the right hand side of the screen in the form design // window, click on the the lightening bolt and double …
All 7 Replies
SgtMe
46
Veteran Poster
Featured Poster
Basteon
0
Newbie Poster
jonsca
1,059
Quantitative Phrenologist
Team Colleague
Featured Poster
Basteon
0
Newbie Poster
jonsca
1,059
Quantitative Phrenologist
Team Colleague
Featured Poster
jonsca
1,059
Quantitative Phrenologist
Team Colleague
Featured Poster
sathishraji
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.