Solved

DLL and graphics

Posted on 1997-08-05
2
437 Views
Last Modified: 2008-03-03
I'm a beginner in C++. I want to know how can I call the functions in the DLL files? Do I need to convert it into lib files? If it is true, then how to use it?
I used to write my C++ programs in turbo C++ 2.0 which is a dos version. But since I need to call the functions in a DLL file, I need to change to a window based version. But I found that all the functions in GRAPHICS.H are not supported in the windows version. So, how can I draw a putpixel? (e.g. putpixel) and how to change the color palette to 256 or 16 gray scales?
0
Comment
Question by:rw8
2 Comments
 
LVL 1

Accepted Solution

by:
mosfet earned 100 total points
ID: 1166842
When you switch over to a windows compiler, you'll see that they have their own ways of calling dll functions. You'll have to remember though that graphics in windows is totally different than graphics in dos. In dos you can write directly to the screen either by memory access or by functions that do it for you. In windows, you can't do this. Windows won't let you access the video memory, and instead has its own functions that will write graphics pixels into a window. The only way to write directly to the screen is to use the DirectDraw in windows95, but then again, you still aren't really directly accessing the screen. It probably won't be too hard to convert the graphics routines you have to windows, the only thing you have to remember is that it will be in its own little window, and also remember that windows likes to control everything on the computer itself, and that's why I still prefer DOS.
0
 

Author Comment

by:rw8
ID: 1166843
If I want to call a function "startgrab" from the dll "vfpcv.dll"
using the Borland c++ 4.X complier, how can I do that?
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
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…
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 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.

757 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

18 Experts available now in Live!

Get 1:1 Help Now