Phil,
Well, the DllImport attribute tells the CLR what the name of the DLL is
to load to find the function in (as well as other information, like the .
The CLR will then use function information to figure out the signature of
the function and load it from the dll, and subsequently call it.
The "extern" keyword here, combined with the attribute indicates that
the function is found in an unmanaged DLL (there should be a static keyword
here as well).
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"Phil Hunt" <aa*@aaa.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
Hi
Can you help me with converting a VB6 Declare Function construct to C#
systax. I think it is in the form of
[DLLImport ("A.DLL")]
public extrn void someFunction(.....);
But I don't see the association between the 2 statements. Can someone
explain ?
THanks