What is the syntax for API function declarations in C#?
Can't find anything in MSDN (online or offline) that even mentions it.
:eek:
Printable View
What is the syntax for API function declarations in C#?
Can't find anything in MSDN (online or offline) that even mentions it.
:eek:
mendthanks in advancehak
You can use the DllImportAttribute class in VB.NET as well, of course. It is more flexible than the Declare statement, and I believe the VB.NET compiler actually replaces Declare statements with DllImports in the IL code. "Declare" seems to be a holdover from VB6. Hmmm... ;)