KỸ THUẬT LẬP TRÌNH HỆ CƠ ĐIỆN TỬ
Programming Engineering in Mechatronics
1
TRƯỜNG ĐẠI HỌC BÁCH KHOANỘI
Giảng viên: TS. Nguyễn Thành Hùng
Đơn vị: Bộ môn điện tử, Viện khí
Nội, 2018
2
Chapter IV. Graphical User Interface in C++/CLI
1. Specialties of CLI, standard C++ and C++/CLI
2. The window model and the basic controls
3. Text and binary files, data streams
4. The GDI+
3
Specialties of CLI, standard C++ and C++/CLI
There are several ways to develop applications for a computer running the
Windows operating system:
We implement the application with the help of a development kit and it will operate
within this run-time environment. The file cannot be run directly by the operating
system (e.g. MatLab, LabView) because it contains commands for the run-time
environment and not for the CPU of the computer. Sometimes there is a pure run-time
environment also available beside the development kit for the use of the application
developed, or an executable (exe) file is created from our program, which includes the
run-time needed for running the program.
The development kit prepares a stand-alone executable application file (exe), which
contains the commands written in machine code runnable on the given operating
system and processor (native code). This file is run while developing and testing the
program. Such tools are e.g. Borland Delphi and Microsoft Visual Studio, frequently
used in industry.
4
Specialties of CLI, standard C++ and C++/CLI
1.1. Compiling and running native code under Windows
1.2. Problems during developing and using programs in native code
1.3. Platform independence
1.4. Running MSIL code
1.5. Integrated development environment
1.6. Controllers, visual programming
1.7. The .NET framework
1.8. C#
1.9. Extension of C++ to CLI
1.10. Extended data types of C++/CLI
5
Specialties of CLI, standard C++ and C++/CLI
1.11. The predefined reference class: String
1.12. The System::Convert static class
1.13. The reference class of the array implemented with the CLI
array template
1.14. C++/CLI: Practical realization in e.g. in the Visual Studio 2008
1.15. The Intellisense embedded help
1.16. Setting the type of a CLR program.