Dan Hall
Dan Hall

Reputation: 1534

Adding ActiveX DLL to C# project

I'm using Visual Studio 2013 and have a number of DLL's that i need to add as refernces in my project. The references need to be of File Type ActiveX but whenever i add the reference to the project they just show as a .net class library.

I'Ve tried adding them as COM Components but it says the files cannot be loaded, i know the files are correct as i can see in another project on the same machine that they've been loaded.

Does anyone know how i can reference these DLL's as ActiveX file type?

Thanks.

Upvotes: 0

Views: 2602

Answers (1)

Codesmell
Codesmell

Reputation: 379

You need to register each dll with regsvr32 "path_to_the_dll".
After that, you can add it as COM.

Upvotes: 1

Related Questions