Solved

DLL and graphics

Posted on 1997-08-05
2
452 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
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 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 clear a vector as well as how to detect empty vectors in C++.

776 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