Click here to Skip to main content
15,891,704 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
Hi,

I have a dll (eg. abc.dll) and this .dll contains some function and is built on C language.

I have two questions to ask -

Q1. How I load that dll in my visual studio project

Q2. How can I call the function from that dll, in my code?

Thanks,
Devesh
Posted

1 solution

Q0. What is your language to implement the usage ?

if (A0 == C++ || A0 == C) {
  A1. You could use the DLLs *.h and *.lib when they are provided too
  if (A1 == YES) {
    A2. Directly
  } else {
    A2. <code>LoadLibrary/GetProcAddress/Calling/FreeLibrary</code>
  }
}

:)
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900