Solved

DLL and graphics

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Grammars for C C++ and java 1 139
Embarcadero C++ Builder XE2 TDateTime 8 80
Least Squares Curve Fitting 4 117
Outlook 13 84
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
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 viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
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.

726 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