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)
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sam HobbsPosted Oct 25, 2011, 1:42 PM
Hemant KumarPosted Oct 25, 2011, 2:55 AM
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.