Question Dllimport<>

Archit

Member
Joined
Jan 12, 2010
Messages
10
Programming Experience
1-3
hi i m trying to vb.net by myself. few days i was just checking some forums where i saw something different thing and i m not familiar with that

<DllImport("avifil32.dll")> _
Public Shared Sub AVIFileInit()
End Sub
some one please tell me what is the meaning of this syntax.
 
First up, please post in the most appropriate forum for the topic. This question is not relevant to Windows Forms so it doesn't belong in the Windows Forms forum.

As for the question, the DllImport attribute is used to declare a proxy method that you can call to invoke a function that has been declared in and exported from an unmanaged DLL. Such a DLL would most often be written in C++ or perhaps C, but may be in done in any unmanaged language that supports it. Functions called this way are most commonly part of the Windows API, i.e. the DLLs that make up the Win32 programming interface, but many other libraries can be used in the same way.
 
Back
Top