Solved

Graphics in MS Visual C++

Posted on 1998-07-10
3
245 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

734 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