-1

I have a native c++ dll which contains some templates classes. And I need this dll in my c# code. So I am using managed c++ for the c++ dll in order to use it in the c# code, but I have a big problem on how using the template classes in .Net. Please if you guys have some solutions to this, it will very helpful. Thanks!

LiGO
  • 11
  • 1

1 Answers1

1
  1. read C++ instantiate template class from DLL to make sure you're not falling down a common rabbit hole.

  2. Read about IntPtr and Interoperability

  3. Try putting it all together, and then post a new question which has a specific problem.

Community
  • 1
  • 1
UKMonkey
  • 6,941
  • 3
  • 21
  • 30