Hi
i want use a dll file at my program. please guide me by a example code.
I Do not want build a library and dll!(import a external dll file to my program)
Import A Dll File
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Hemant KumarRank #1,202 · 1.5K reputationPosted Oct 24, 2011, 10:55 PM EDT
The most complete and up-to-date information on this topic can be found in dllexport, dllimport.
The dllimport and dllexport storage-class modifiers are Microsoft-specific extensions to the C language. These modifiers explicitly define the DLL's interface to its client (the executable file or another DLL). Declaring functions as dllexport eliminates the need for a module-definition (.DEF) file. You can also use the dllimport anddllexport modifiers with data and objects.
The dllimport and dllexport storage-class modifiers must be used with the extended attribute syntax keyword, __declspec, as shown in this example:
For specific information about the syntax for extended storage-class modifiers, see Extended Storage-Class Attributes.
Sam HobbsRank #107 · 20.5K reputationPosted Oct 25, 2011, 9:42 AM EDT