Solved

Graphics in MS Visual C++

Posted on 1998-07-10
3
246 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: 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…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
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.

630 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