I’m working on a project that needs to handle a large number of messages quickly. I want to use C++ for the backend processing and C# for the frontend. But I’m not sure how to connect them using DLLs.
Can someone explain this in simple terms? I’m also wondering if using two different languages will slow things down compared to using just C# or C++.
I’ve heard C++ isn’t great for making nice-looking GUIs. Since I need a modern and professional interface, I’m thinking about using C# with XAML or WPF.
Is this a good approach? Any advice on how to set this up or if there’s a better way to do it? Thanks!
ooh, that sounds like an interesting project! have u considered using something like zeromq for messaging between c++ and c#? it’s super fast and easy to set up. also, what kind of data are u processing? maybe theres a way to optimize it even more? i’m curious to hear more about ur project goals!
hey, using c++ for backend and c# for frontend is a solid plan. i’ve done it before and it works great. just make sure ur c++ dll exposes simple functions that c# can call easily. the speed difference is minimal, so don’t worry bout that. and yeah, c# with xaml or wpf will give u a way nicer GUI than c++. go for it!
Integrating C++ and C# is indeed a robust solution for handling high-speed data processing. In my experience, using P/Invoke in C# to access functions in a C++ DLL creates an efficient bridge between the two technologies without introducing significant overhead. Using C# for the frontend allows you to benefit from sophisticated UI frameworks like XAML or WPF, which are far more suitable for modern interfaces compared to traditional C++ GUI development. Focus on maintaining a simple and effective interop layer to ensure data is passed efficiently and the integration remains stable.