Solved

DLL EXAMPLE

Posted on 1998-04-24
2
223 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

861 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

24 Experts available now in Live!

Get 1:1 Help Now