Mono: Using WXWindows Development Interface Programs
WxWindows is a set of cross-platform components. Borland will be launched Bluiderx will be WXWindows as its interface component library.
We have not mentioned the concept of global program cache because of the Mono's program cache that we have basically used in the previous program. Even when the mysql database is operated, we need a third party's assembly, we just come over.
You have at least two ways to use third-party assemblies:
1. Copy the third-party assembly, such as wx.net.dll, Qt.dll to your executable, and Mono will automatically process your assembly.
2. Add a commonly used assembly to the global assembly cache.
Perform gacutil -f -i wx.net.dll in the terminal, wx.net.dll is signed.
If you use the GNU's portable.net framework (similar MONO),
Then enter ILGAC WX.NET.DLL / F / I in the terminal.
Portable.net will be introduced in later chapters.
To use wxwidgets, you need to download its class library. You can get down to www.wxwindows.org, but I have always visited this website, you can download it at http://wxwindows.sourceforge.net.
Download to the local, unope: You can see there is BIN, DEMOS, DOCS, SAMPLES directory, and a SH file, license, etc.
In the bin directory is a demos, class libraries, so files, etc., copy these SO files to / usr / lib directory, and add wx.net.dll to the global assembly.
Demos is a source code similar to Windows in a playing card game.
Figure 3.1.0
DOCS is a document for wx.net.
Samples has a rich example of WX.NET.
These examples can be performed running the SH file.
Start our Hello example.
Create a console solution.
Figure 3.1.1
Write the code where a frame is displayed, and a button is placed on the Frame.
Add WX.NET.DLL, System.DRAW to the reference.
Figure 3.1.2
Code:
Figure 3.1.3
Compile, execute the program in the terminal:
The program can be executed using the GNU's portable.net, here for everyone, a simple impression, the following chapters will introduce Portable.net.
Execute Ilrun Hellowx.exe in the terminal: