Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Graphics in MS Visual C++

Posted on 1998-07-10
3
Medium Priority
?
254 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 400 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

926 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