Is it even possible to create GUI layer in C# and rest of application in C++? If I am not wrong one of antyvirus software had GUI made in Delphi. How it could be done ?
Let us comprehend a couple of things from our first GTK code in C. To start with, we incorporate the header file. This incorporates all the file one needs to make a GUI, including the Glib library. Presently, we declare a pointer to GtkWidget, which is only a window for our situation.
You can use GTK+ on Linux, and the Windows API on Windows. Both are C-based APIs, which allow you to create GUI programs. There's also a library called libui, which abstracts away the APIs of each platform, allowing you to create cross-platform GUI apps in C that run on Windows, Mac OS X, and Linux.
Java seems to have the best built in support for GUI programming, however, C++ using the MFC libraries has more than adequate tools for GUI development and may be a better choice when speed and efficiency are important.
You have several options for doing it, including:
If you're starting from scratch, option 4 is probably your best option. (Aside from just writing the whole thing in C#, that is.) The first three options all involve some additional wrangling and overhead, and probably aren't worth the hassle if you don't have a compelling reason such as needing to interact with an existing native library or having some need for a service-oriented architecture.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With