Solved

DLL EXAMPLE

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Suggested Solutions

IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
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 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 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.

747 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