Solved

Graphics in MS Visual C++

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

746 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now