Solved

DLL EXAMPLE

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

Technology Partners: 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

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…

735 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