hi,
i want to link to dll files in my project. I have the header and implementation files and object library file to that dll file. I don't know how to call the functions out of the dll file. I am using Visual studio.NET C++ IDE. Any help will be appreciated. Thnx...
ulasu

#include <my_dll.h>
#pragma comment( lib, "my_dll.lib" )

int main() {
  my_dll_function();
  return 0;
}

Should work with your IDE.

#include <my_dll.h>
#pragma comment( lib, "my_dll.lib" )

int main() {
  my_dll_function();
  return 0;
}

Should work with your IDE.

hey thanks alot man!!:) it worked!
just out of curiosity: isnt there any oher way to link from menus od IDE or something?

Probably. That's the way I do it. You can also, if you wish, look into LoadLibrary (capitalisation?).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.