BHS
BHS

Reputation: 1021

dll files created in Visual C++ be used in C#?

I am creating a dll file in visual C++ through Dynamic Link Library project. I know i can import this dll thorugh object browser in C#. I want to know whether i can use those functions without any issues, since i am programming in 2 different languages.

Upvotes: 1

Views: 352

Answers (1)

Brian Ensink
Brian Ensink

Reputation: 11218

Is your C++ DLL written in managed C++? If so then you should be able to use it by just adding a reference to it from your C# project. Otherwise you want to look into .NET Interop topics to learn how to use both.

Upvotes: 2

Related Questions