The functions are added to the GUI code directly. In Linux, I use Glade to develop the GUI and associated code. The functions are provided by compiling the C++ core to a managed assembly DLL. In Windows, I still use the Visual Basic IDE to provide the GUI. It is used only to call the functions in the core C++ program. The GUI interface needs only some buttons, an image box, and mouse position. I abstracted the program to a series of functions which can be interfaced to the native GUI toolkits. My approach received much criticism as the “same code” could not be compiled directly into a platform application. I documented this in a previous article: cross_platform.aspx. To allow the code to execute successfully on Windows and Linux, I decided to use the portability of the C++ language. I wrote the original code for my Sudoku program using Visual Basic on Microsoft's Visual Studio IDE.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |