Ask the Expert

How do I call a dll file from Visual Studio that is not a COM controller or ActiveX?

How do I call a dll file from Visual Studio that is not a COM controller or ActiveX?
If you are talking about .NET, use the DllImportAttribute to import a native function on a DLL. The docs in MSDN have good examples and there are plenty on the web if you Google for DllImport.

This was first published in June 2004