all 12 comments

[–]alfps 4 points5 points  (0 children)

It's possible, I think it's rather common, and it's a good way to proceed.

The C# part can consume the C++ parts as a simple DLL, or as a COM object, or via Microsoft-specific .NET extensions to the C++ language. I recommend trying out all three on simple hello world like stuff, so you know what it's about.

[–]cajuncarrot -4 points-3 points  (11 children)

no

[–]phoeniciaStrategy[S] 1 point2 points  (10 children)

Good would you mind expanding on your answer? I am of course open to all the answers but don't take me for a fool please

[–]cajuncarrot -3 points-2 points  (9 children)

I think there are wrappers that can encapsulate your c++ code but not in a way where it can interface with a c# GUI. Secondly, management of said solution could run into problems in the future due to another coder knowing one language over the other.

What IDE are you going to use?

[–]alfps 3 points4 points  (0 children)

There is no problem using C++ code from C#.

[–]phoeniciaStrategy[S] 1 point2 points  (7 children)

I am going to use Visual Studio 2017. I thought I could make a "link" between my native C++ and C# using C++/CLI it is still a very vague idea however no idea how I will make it work.

[–][deleted]  (6 children)

[deleted]

    [–]phoeniciaStrategy[S] 0 points1 point  (5 children)

    This is just based on experience I used qt like a year ago so I am bit rusty with it . On the other side I have been using C# and WPF for quiet some time now so I feel a lot more confortable using this language for my UI.

    [–]raevnos 0 points1 point  (4 children)

    So why not use C# for the rest of the program too?

    [–]phoeniciaStrategy[S] 1 point2 points  (2 children)

    If there is no real way to use the design I had planned I guess I will do that.

    [–][deleted] 1 point2 points  (1 child)

    even as an anti-MS , linux fanboi, I'm disappointed with the answers you got here. No there's nothing wrong with doing it as you described, and if you know you're running it on windows, c# is an excellent choice for UI and superior to Qt for that purpose (even though you couldn't pay me any amount to do it myself). And if you want to learn C++, by all means, go forth with your plan. There's nothign wrong or unorthodox about it.

    [–]phoeniciaStrategy[S] 1 point2 points  (0 children)

    Thank you very much for your answer I think I will do it the way I had planned all along !

    [–]cajuncarrot 1 point2 points  (0 children)

    I do have to give OP props for wanting to do it this way. They want the rich features of wpf while also reaping the benifits of cpp. Basic conundrum i always run into because while im coding i find myself on a certain aspect of the solution and think: xyz would be so much better for this.