Solved

DLL EXAMPLE

Posted on 1998-04-24
2
226 Views
Last Modified: 2010-04-10
I AM A BEGINNER IN C++ BUILDER.  I WANT AN EXAMPLE OF USING DLL´s HOW TO USE THE FUNCTIONS
OF THE DLL
0
Comment
Question by:FMJMEE
2 Comments
 
LVL 7

Accepted Solution

by:
galkin earned 50 total points
ID: 1164011
There are two ways of using DLL
1.Create lib file from a DLL using either utility. Usually DLL is shipped with this file. Add thislib file to your project.Include header file containing functions exported from a DLL.This file is also usually shipped with a DLL
2.Use LoadLibrary to dinamically load DLL into memory and GetProcAddress to resolve function address. Then you can use function via the pointer obtained. You must cast function pointer returned by GetProcAddress to your function pointer type.
0
 

Author Comment

by:FMJMEE
ID: 1164012
GOOD ! , STILL NEED AN EXAMPLE , THE DLL IS IN MICROSOFT LANGUAGE,  I HAVE A .LIB FILE AND I AM NOT SURE IF IT IS DYNAMIC OR STATIC BUT THERE IS AN ERROR WHILE LINKING  " CONTAIN INVALID OMF RECORD"
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

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…
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 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.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

813 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

14 Experts available now in Live!

Get 1:1 Help Now