?
Solved

DLL EXAMPLE

Posted on 1998-04-24
2
Medium Priority
?
241 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
[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 7

Accepted Solution

by:
galkin earned 150 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

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 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 learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

765 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