?
Solved

DLL and graphics

Posted on 1997-08-05
2
Medium Priority
?
473 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
[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
2 Comments
 
LVL 1

Accepted Solution

by:
mosfet earned 200 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
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.
Suggested Courses

765 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