CodeWalrus

Development => PC, Mac & Vintage Computers => Topic started by: rowan_futurerave on September 18, 2018, 02:32:19 pm

Title: C++/CLI Wrapper
Post by: rowan_futurerave on September 18, 2018, 02:32:19 pm
Hi
I want to convert an old C++Builder project to using Visual Studio 2017, and have come across the following problem - because I want the project to be in C# - C# does not support certain library-specific routines - for example for DirectX, and others. So I want to do this.....

Make C++/CLI wrappers for that stuff, which can be accessed from within C#. Does anyone here have any experience of that? @Juju I recall you have some experience with C# - anything like this??

Ok thanks  :thumbsup:
Title: Re: C++/CLI Wrapper
Post by: Juju on September 18, 2018, 08:17:43 pm
Been a while, but I remember you can just link a project with the DLL of your choice and you can use it straight in your code.
Title: Re: C++/CLI Wrapper
Post by: rowan_futurerave on September 18, 2018, 09:14:51 pm
If I remember, doing that in C++ was hideous. Are you sure Juju lol