C# - Can i use the functions from a .dll file?

Associate
Joined
19 Jun 2003
Posts
1,680
Location
West Yorks, UK
Hi all,
C# isn't my forté, but i'm looking at experimenting with it. I want to know if it's possible to access the functions that are stored in a DLL file. For example, the functions contained in the Cygwin DLL's.

Is this possible, and where should I start?

Cheers,
Matt
 
Yes. If it's a COM dll then you can just add it using the references dialog. If it's an oldie fashioned windows dll you'll probably need to use it like an API call with DLLImport.
 
Yes you can. You have 2 options when doing this. You can either create a DLL project and add .NET class files to it, or you can add a COM Class which will expose the DLL to COM so it can be used with VB6 etc...

TrUz
 
Back
Top Bottom