Solved

Graphics in MS Visual C++

Posted on 1998-07-10
3
242 Views
Last Modified: 2010-04-01
I have MS Visual C++ 5.0 and I'm trying draw pixels, lines, etc... on the screen.  Of course I want this to be as fast as possible so I would need to access the memory directly.  Right?  Are there any libraries I can use to achieve this that are compatable with my program?    
0
Comment
Question by:oberg
3 Comments
 

Accepted Solution

by:
mpewjg earned 100 total points
ID: 1167576
Please check the help of CDC. It is used for draw all the staff
on the screen. There are many member functions of CDC can be
used to draw line, polygon, pixel, arc, etc. such as LineTo(),
ArcTo(), etc.
0
 
LVL 22

Expert Comment

by:nietod
ID: 1167577
Forget direct memory access.  Vissual C++ 5 only produces 32 bit programs.  32 bit programs run in protected mode and cannot direcly access memory (video, or otherwise).

However, if you need really fast graphics, you can use the direct draw library.  Also documented in the Visual C++ help.  It is much much faster adn more powerful that the windows GDI graphics
0
 

Author Comment

by:oberg
ID: 1167578
Thanks a lot!  

It looks like I'll actually be able to make some programs now!  CDC has way more than I ever expected.  It would have taken me a long time to find it.

Thank you again, and nice responce time too!

-Oberg-
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question