Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Explicit Linking of DLL files

Status
Not open for further replies.

twaanders

Technical User
Oct 20, 2003
2
BE
Hi All,

I've got a problem with the implementation of other DLL files to my Microsoft Visual C project. I've read about the possibility of implementing/linking a dll file in order to access the function within. Is there somebody who can help me out on this subject??
Thnx in advance!!

Tim
 
I could not understand your problem. What I could make out was that you have a VC workspace which creates multiple DLLs. You want to use functions of one of the dll in your code.
If this is the case :
you can use VC++ APIs
LoadLibrary() to load a DLL at run time.
GetProcAddress() to get the address of the function from the DLL.

once you get the address, you can call it directly.

Refer to MSDN for more details.

If what you wanted to know was something different, please be more specific and clear in your question.


Hope this helps.

 
Dear Gasingh,

Well your right about describing my problem. The cause of my, well incomplete description of the problem is caused i think by my one week experience with C. The problem is that I'm doing an internship at a company for which I need to program parts of a Matlab ansed program in C. An interface has to be developed between an already existing program. So I read about linking Dll files in order to extract functions. But I think your explanation will do! Thnak you very much!!!

Kind regards,

Tim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top