Solved

DLL and graphics

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

724 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