Hello there,
I have a problem with my DirectX11/C++-Engine. I started writing it as an independent project, with a main.cpp and all that. When it had grown bigger and I started to need it for multiple projects, I came up with the idea of putting it into a library. I had to choose between .lib and .dll, and since I am not experienced with either of these, I went for the .lib, since from what I read, exporting it as .dll would require me to rewrite ALL classes that are supposed to be accessed from outwards.
Now I want to create a worldbuilder from it, and for the interface I used .NET. C++ at frist, but I noticed that it was dropped from Visual Studio since 2012 (it worked out fine though). I was told to use C# instead, but now I can't figure how to include my C++ lib into a C# project, and how to call functions from it - they require e.g a HWND handle, which can't be used in C#, since it is declared "unsafe".
What would you suggest me to do? Just carry on with the old C++.Net, or find a way of using it in C#? And should I stick with the .lib or rewrite my code so it can be used in a .dll file?
Thanks for your concern and best whishes!
-gnomgrol