|
|
Posted on 1/10/2015 2:04:51 PM
|
|
|
|

The only reasonEasy languageThe officially written textbooks are simple to understand, easier to understand and more systematic
E-book download:Tourists, if you want to see the hidden content of this post, please Reply
Download the source code with the book:Tourists, if you want to see the hidden content of this post, please Reply
Reader download address:Tourists, if you want to see the hidden content of this post, please Reply
Introduction
This book is a monograph that comprehensively introduces the Chinese and fully visual cross-platform programming tool - "Yi Language". "Easy Language" realizes real Chinese programming, completely gets rid of the language barriers and thinking barriers existing in the use of traditional English programming tools, and writes real "Made in China" programs in a way that is more in line with Chinese habits. Developing programming no longer needs to memorize complicated English commands and words, as long as you can input Chinese characters or pinyin, you can develop specialized programs. "Easy Language" has a built-in desktop database, supports a variety of large databases, and can realize network and hardware communication programming. The object-oriented programming concept, rich interface elements, thousands of system commands, APIs, and COM support of "Easy Language" are enough to meet the development requirements of different application levels in various industries. "Easy Language" will be an ideal programming tool for the majority of computer users. The book consists of 30 chapters and 3 appendices. The main contents include: Easy language overview, data types, variables, constants, resources, commands, process control commands, subprograms, window components, multimedia, network and communication, system control, easy database, easy database, API call, easy module, DLL writing and calling, OCX component and type library, COM object, object-oriented programming, Linux program writing, data structure support library, data operation support library, text-to-speech conversion support library, telephone voice support library, digital device support library , scripting language support library, office support library, as well as program debugging, compilation and publishing, easy wizard use, etc. The content of this book is easy to understand, rich and informative, with pictures and texts, and simple and practical programming skills. It is suitable for beginner and intermediate programming users, and can also be used as a reference book for teaching, self-study and social training courses in colleges and universities. The accompanying CD includes the source code of examples of various chapters in the book, the source code of hundreds of open source programs, comprehensive teaching animation demonstrations, online download URLs and other related resources, and provides the latest version of the "Easy Language" software. Readers should raise technical questions in the process of using this book on the Yiyu website or the technical exchange forum on it.
Table of contents
Preface............................................................... 1
Chapter 1 Overview of Yi Language.................................................. 1
1.1 Overview of Yi Language.............................................. 1
1.1.1 Introduction to Easy Language................................................ 1
1.1.2 Characteristics of Yi Language.............................................. 2
1.2 Installation ................................................ of Easy Language 4
1.3 Basic Operation Interface of Easy Language........................................ 6
1.3.1 Interface of Easy Language.............................................. 6
1.3.2 How to Add Components to the Design Window.................................. 8
1.3.3 How to use the Yiyu help system.................................... 8
1.3.4 How to Configure Easy Language............................................ 9
1.4 Easy language code input skills........................................... 10
1.4.1 Built-in Input Method ................................................ 10
1.4.2 System Input Method ................................................ 11
1.4.3 Step-by-step parameter input.............................................. 12
1.4.4 Input Notes and Code Blocking ........................................ 12
1.4.5 Classification of Four Input Statements.......................................... 13
1.4.6 Keyword .......................................... in Easy Language 13
1.5 The first easy program................................................ 14
1.5.1 Structure of Easy Programs.............................................. 14
1.5.2 Start writing your first easy program........................................ 14
1.5.3 Analyzing the First Easy Program.......................................... 16
1.6 Advanced .................................................. of Easy Programs 16
1.7 Summary of this chapter.................................................... 18
Chapter 2 Data Types, Operators and Expressions..................................... 19
2.1 Data types in Yi language............................................. 19
2.2 Basic Data Types................................................ 19
2.2.1 Understanding Basic Data Types.......................................... 19
2.2.2 Define Data Types for Variables and Return Values................................ 20
2.2.3 Assign Values to Data Correctly............................................ 21
2.2.4 Data Comparison ................................................ 22
2.2.5 Stored bytes and overflow .................................. of data types 23
2.3 Special Data Types................................................ 25
2.3.1 Understanding Special Data Types........................................... 25
2.3.2 Dynamically Adding Components.............................................. 25
2.4 Customizing Data Types.............................................. 25
2.5 Easy language operator ................................................ 27
2.6 Operators and Expressions............................................... 28
2.6.1 Arithmetic Operators and Arithmetic Expressions..................................... 28
2.6.2 Assignment Operators and Assignment Expressions..................................... 29
2.7 Summary of this chapter..................................................... 29
Chapter 3 Variables, Constants and Resource ............................................. 31
3.1 Variable ........................................................ 31
3.1.1 Understanding Variable .................................................. 31
3.1.2 Variable Types.................................................. 32
3.1.3 Assignment of variables................................................ 34
3.1.4 Initial Values of Variables.............................................. 34
3.2 Static Local Variables................................................ 35
3.3 Array Variables.................................................... 36
3.3.1 Definition and Assignment of Array Variables...................................... 37
3.3.2 Dynamically Managing Array Variables.......................................... 39
3.4 Easy language constant .................................................. 43
3.4.1 Understanding Constant .................................................. 43
3.4.2 ASCII Code ................................................... 43
3.4.3 Use of constants................................................ 44
3.4.4 Enumeration Constants and How to Use ........................................ 45
3.4.5 Custom Constants and How to Use ...................................... 47
3.5 Easy Language Resource Table................................................ 48
3.5.1 Adding Resources to a Resource Table........................................ 48
3.5.2 Using Resources in a Resource Table........................................ 50
3.5.3 Exporting Resources from a Resource Table...................................... 51
3.5.4 Importing Executable Files into Resource Tables.................................. 51
3.6 Summary of this chapter.................................................... 52
Chapter 4 Common Commands..................................................... 53
4.1 Understanding the command ............................................... of the easy language 53
4.1.1 Command Format................................................ 53
4.1.2 Instant Help and Help Documentation........................................ 53
4.1.3 Return Value of Commands.............................................. 55
4.1.4 Applying Commands................................................ 56
4.1.5 Array Type Parameters and Return Values.................................... 57
4.2 Process Control Commands................................................ 58
4.2.1 Understanding Process Control Commands........................................ 58
4.2.2 Branch Process Control Commands........................................ 59
4.2.3 Circular Process Control Commands........................................ 61
4.2.4 Jump Class Process Control Commands........................................ 65
4.3 Other Common Commands................................................ 67
4.3.1 Text Operation Commands............................................ 67
4.3.2 Time Operation Commands............................................ 68
4.3.3 Bit Operation Commands................................................ 69
4.3.4 Other Common Commands.............................................. 72
4.4 Summary of this chapter.................................................... 74
Chapter 5 Writing and Calling Subprograms ........................................... 75
5.1 Preliminary Application of Subroutines............................................ 75
5.1.1 Classification of Subprograms.............................................. 75
5.1.2 Creating a User-Defined Subprogram .................................... 75
5.1.3 Invocation .............................................. of Subroutines 77
5.1.4 Definition of Return Values and Parameters........................................ 77
5.1.5 Writing a Subprogram............................................ 77
5.1.6 Subprogram Pointer ................................................ 79
5.2 Parameter Properties of Subroutines............................................ 80
5.2.1 Reference Properties of Parameters.......................................... 80
5.2.2 Nullable Attribute of Parameters.......................................... 81
5.2.3 Array Properties of Parameters.......................................... 83
5.3 Writing a Find File Subprogram.......................................... 84
5.4 Summary of this chapter.................................................... 87
Chapter 6 Window Components, Menus, and Dialog Boxes....................................... 88
6.1 Window Component .................................................... 88
6.1.1 Basic Properties of Windows............................................ 88
6.1.2 Basic Event ............................................ of Windows 91
6.1.3 Add New Windows and Pop-Ups...................................... 94
6.1.4 Important Methods of Windows............................................ 96
6.2 Editing Menu .................................................... 100
6.2.1 New Menu .................................................. 100
6.2.2 Menu Hotkeys and Attributes.......................................... 101
6.2.3 Pop-up Menu .................................................. 103
6.3 Dialog ...................................................... 105
6.3.1 Infobox ()" Command........................................... 105
6.3.2 Return Values of the Info Box () Command................................... 106
6.3.3 Input Box ()" Command ........................................... 107
6.3.4 Application of the "Input Box ()" Command..................................... 107
6.4 Summary of this chapter.................................................... 108
Chapter 7 Component Introduction..................................................... 110
7.1 Introduction to Easy Language Components.............................................. 110
7.1.1 Easy Language Internal Components............................................ 110
7.2 Component Properties.................................................. 113
7.2.1 Common Properties of Components............................................ 113
7.2.2 Proprietary Properties of Components............................................ 114
7.2.3 Dynamically Modifying Component Properties.......................................... 121
7.3 Proprietary Methods for Components.............................................. 123
7.4 Triggering .................................................. of Events 125
7.4.1 Event Subroutine ................................................ 125
7.4.2 Application of Component Events............................................ 126
7.5 Summary of this chapter.................................................... 131
Chapter 8 Multimedia ....................................................... 132
8.1 Sound (Audio) ................................................ 133
8.1.1 Media Playback Commands.............................................. 133
8.2 Image Processing (Graphic Images) ........................................ 135
8.2.1 Merging Pictures................................................ 135
8.2.2 Picture Frame Component ................................................ 136
8.3 Animation ........................................................ 140
8.3.1 GIF Animation for Picture Frames........................................... 140
8.3.2 Window Animation .................................................. 140
8.4 Image Transitions.................................................... 142
8.5 Film and television ........................................................ 145
8.5.1 Image Frame Component ................................................ 145
8.5.2 Advanced Frame Components ............................................ 145
8.5.3 External Image Component .............................................. 146
8.6 Summary of this Chapter.................................................... 148
Chapter 9 Network and Communication ................................................... 149
9.1 Basic Knowledge..................................................... 149
9.2 Web Application Program ............................................... 150
9.2.1 Network Component .................................................. 150
9.2.2 Internet Support Library .............................................. 159
9.3 Data Communication Program ................................................. 171
9.3.1 Network Communication Commands............................................... 172
9.3.2 Data Communication Component .............................................. 172
9.3.3 Network Communication Support Library............................................. 179
9.4 Hardware communication programs............................................... 183
9.4.1 Hardware Communication Components.............................................. 184
9.4.2 Port Access Support Library ............................................ 187
9.5 Summary of this chapter..................................................... 188
Chapter 10 System Control ..................................................... 189
10.1 Running Commands................................................... 189
10.2 System Information Commands............................................. 190
10.3 Profiles and Registry........................................... 191
10.3.1 Configuration File ................................................. 191
10.3.2 Invoking the System Configuration Tool......................................... 193
10.3.3 Registry ................................................... 194
10.4 Exercises in this chapter................................................... 203
Chapter 11 Easy Database ................................................... 204
11.1 Composition of Easy Database Files......................................... 204
11.2 Using the Tools to Create and Maintain Databases................................... 205
11.3 Creating a Database with Commands........................................... 207
11.3.1 Preparation ............................................. Before Programming 208
11.3.2 Creating a Database ............................................... 209
11.3.3 Opening a Database ............................................... 209
11.3.4 Placing the Current Database ............................................. 210
11.3.5 Shutting Down the Database............................................... 211
11.4 Maintaining a Database with a Program........................................... 211
11.4.1 Recording Operations................................................. 211
11.4.2 Current Record Pointer............................................. 212
11.4.3 Read/Write Fields................................................. 213
11.4.4 Adding a Record ................................................. 213
11.4.5 Deleting a Record................................................. 213
11.4.6 Finding Records................................................. 214
11.5 Database Instance ................................................. 215
11.6 Database-related Components............................................. 218
11.6.1 Universal Providers, Database Providers................................. 219
11.6.2 Data Source ................................................... 220
11.6.3 Table ..................................................... 227
11.6.4 Application of Database-related Components..................................... 230
11.6.5 Making a Table Template............................................. 232
11.7 Summary of this Chapter................................................... 234
Chapter 12 External Database Call ............................................. 235
12.1 Knowledge of External Databases......................................... 235
12.1.1 Introduction to External Database Components..................................... 235
12.1.2 Introduction to ODBC and ADO............................................ 235
12.1.3 Introduction to SQL Language.............................................. 237
12.1.4 Commonly Used SQL Statements............................................ 237
12.2 ODBC Connecting to Database Components......................................... 243
12.2.1 External Database Component Properties...................................... 243
12.2.2 Important Methods for External Database Components.................................. 243
12.2.3 External Database Provider Component ................................... 245
12.3 ADO Operation Database Components.......................................... 245
12.3.1 Database Connection Component ......................................... 246
12.3.2 Record Set Component ............................................. 248
12.4 External Database Application ............................................. 252
12.4.1 External Database Operation Routines....................................... 252
12.4.2 Displaying Databases with Table Components..................................... 258
12.5 Access Database ............................................... 259
12.5.1 Introduction to Access Databases......................................... 259
12.5.2 Access Database Synthesis Routines..................................... 259
12.6 SQL Server Database ........................................... 266
12.6.1 Introduction to SQL Server........................................... 266
12.6.2 SQL Server 2000 Installation ..................................... 268
12.6.3 Creating a SQL Server 2000 Database and Table ........................... 270
12.6.4 Operating SQL SERVER Databases in Easy Language........................... 273
12.7 ................................................ MYSQL Database 278
12.7.1 Common MYSQL Commands............................................ 279
12.7.2 Easy Language Operation of MYSQL Database .................................... 282
12.8 Summary of this Chapter................................................... 291
Chapter 13 API Call .................................................. 292
13.1 Introduction to APIs.................................................... 292
13.2 Definition of APIs.................................................. 292
13.3 Application .................................................. of APIs 294
13.3.1 Internal API .................................................. 295
13.3.2 External API .................................................. 301
13.4 Summary of this Chapter................................................... 304
Chapter 14 Easy Module ..................................................... 305
14.1 Functions of Easy Modules............................................... 305
14.2 Calling Method of Easy Module........................................... 305
14.3 Development and Compilation of Easy Modules......................................... 309
14.3.1 Development ............................................. of Easy Module 309
14.3.2 Compilation ............................................. of Easy Modules 311
14.3.3 Example of Rewriting Easy Modules......................................... 313
14.4 Summary of this Chapter................................................... 315
Chapter 15 DLL Writing and Calling ............................................ 317
15.1 Relationship between DLL and API Functions......................................... 317
15.2 DLL Development and Compilation ............................................ 317
15.3 How to Call DLLs.............................................. 320
15.4 DLL Application Examples................................................ 321
15.5 Summary of this chapter................................................... 324
Chapter 16 OCX Components and Type Libraries............................................ 325
16.1 OCX Component .................................................... 325
16.1.1 Installation ................................................ of OCX 325
16.1.2 Sinicization ................................................ of OCX 328
16.1.3 How to Use OCX............................................ 330
16.2 Encapsulation and Use of Type Libraries......................................... 342
16.2.1 Encapsulation ............................................. of Type Libraries 343
16.2.2 Using Type Libraries............................................. 350
16.3 Summary of this Chapter................................................... 353
Chapter 17 COM Object .................................................... 354
17.1 Basic Concepts................................................... 354
17.1.1 What is COM................................................ 354
17.1.2 COM Object .................................................. 354
17.1.3 COM Interface .................................................. 354
17.2 Using COM Objects.............................................. 355
17.2.1 New Data Type "Object"........................................ 355
17.2.2 General Steps for Using COM Objects.................................... 357
17.2.3 A complete example........................................... 358
17.3 Summary of this Chapter................................................... 360
Chapter 18 Object-Oriented Programming ......................................... in Easy Language 361
18.1 Basic Knowledge................................................... 361
18.1.1 Concept ................................................. of Classes 361
18.1.2 Relationship between Classes and Objects........................................... 362
18.1.3 Characteristics of Private Members in Classes....................................... 364
18.1.4 Derived Classes and Inherited ........................................... 365
18.1.5 Calling Parent Methods Directly in Subclasses................................... 366
18.1.6 Polymorphism of Classes and Virtual Methods..................................... 367
18.2 Practical Application Routines of Classes........................................... 371
18.3 Summary of this Chapter................................................... 378
Chapter 19 Linux Programming ............................................. 379
19.1 Introduction to Linux.................................................. 379
19.2 Creating a Linux Program.............................................. 379
19.3 Linux Program Development and Operation ........................................ 380
19.3.1 Understanding the Routine....................................... 381
19.3.2 Explanation of Routine Server Code....................................... 381
19.3.3 Routine Client Code Explanation....................................... 385
19.3.4 Compiling and Running ............................................... 387
19.4 Summary of this Chapter................................................... 388
Chapter 20 Data Structure Support Libraries ............................................. 389
20.1 Basic ............................................... of Data Structures 389
20.1.1 Node ..................................................... 389
20.1.2 Linked List ..................................................... 389
20.1.3 Stack ....................................................... 391
20.1.4 Queue ..................................................... 392
20.1.5 Tree ....................................................... 393
20.1.6 Binary Tree ................................................... 394
20.2 Application Routines for Stacks............................................... 395
Chapter 21 Data Operation Support Library........................................... 400
21.1 Encryption ................................................... 400
21.1.1 Data Encryption ................................................. 400
21.1.2 Data Authentication ................................................. 401
21.2 Data Validation ................................................... 402
21.2.1 The Digital Signature ()" Command ......................................... 403
21.2.2 Signature Verification()" Command ......................................... 404
21.2.3 Get Data Summary ()" Command....................................... 405
Chapter 22 Numerical Calculation Support Libraries........................................... 407
22.1 Introduction to the Numerical Calculation Support Library......................................... 407
22.2 Numerical Calculation Supports Data Types in Libraries................................. 407
22.2.1 Complex Number Operations................................................. 407
22.2.2 Matrix Operations................................................. 408
22.2.3 Fourier Transform ............................................... 409
22.2.4 Calculus ................................................... 410
22.2.5 Summary Statistics ................................................. 410
22.2.6 Simultaneous Equations................................................. 411
22.2.7 Curve Sum ................................................. 412
22.2.8 Large Number ..................................................... 412
22.2.9 Other Calculation ................................................. 413
22.2.10 Formula Analysis ................................................ 413
22.3 Large Number Calculator................................................. 413
Chapter 23 Text-to-speech support libraries....................................... 417
23.1 Introduction to Text-to-Speech........................................... 417
23.2 Machine Readable Text ................................................... 417
23.3 Speech Recognition ................................................... 421
23.4 Summary of this Chapter................................................... 425
Chapter 24 Telephone Voice Support Library........................................... 426
24.1 Introduction to Support Libraries................................................. 426
24.2 Important Methods for Supporting Libraries............................................. 426
24.3 Support Library-Related Routines............................................. 429
Chapter 25 Digital Device Support Library ........................................... 436
25.1 Introduction to Support Libraries................................................. 436
25.2 Support Library Properties and Methods........................................... 436
25.2.1 Important Attributes of Digital Devices....................................... 436
25.2.2 Methods for Digital Devices........................................... 437
25.3 Support Library-Related Routines............................................. 438
25.4 Video Equipment ................................................... 442
Chapter 26 Scripting Language Support Components......................................... 445
26.1 Component Introduction.................................................... 445
26.2 Attributes and Methods................................................. 445
26.3 Component Application Examples................................................ 446
26.3.1 Four-Expression Calculator......................................... 446
26.3.2 External Program Calls ............................................. 447
Chapter 27 Word 2000 Support Library .......................................... 449
27.1 Introduction to Word 2000 Support Libraries........................................ 449
27.2 Word 2000 Supported Library Components........................................ 449
27.2.1 Word Program Component ........................................... 449
27.2.2 Word Document Set Component ......................................... 451
27.2.3 Word Graphics Component ........................................... 455
27.3 Word 2000 Support Library Routines........................................ 456
Chapter 28 Excel 2000 Support Library ......................................... 462
28.1 Introduction to Excel 2000 Support Libraries....................................... 462
28.2 Excel 2000 Supported Libraries ..................................... 462
28.2.1 Excel Program Component .......................................... 462
28.2.2 Excel Workbook Component ........................................ 463
28.2.3 Excel Chart Component .......................................... 463
28.3 Excel 2000 Support Library Routines....................................... 464
Chapter 29 PowerPoint 2000 Support Library .................................... 471
29.1 Introduction to PowerPoint 2000 Support Libraries.................................. 471
29.2 PowerPoint 2000 Supported Libraries ................................ 471
29.2.1 PPT Program Component ............................................ 471
29.2.2 PPT Document Component ............................................ 472
29.2.3 PPT Playback Component............................................ 475
29.3 PowerPoint 2000 Support Library Routines.................................. 476
29.3.1 Manual Switching ................................................. 476
29.3.2 Autoplay ................................................. 477
Chapter 30 Office Component Support Library............................................. 480
30.1 Introduction to Office Components............................................... 480
30.2 Office Component Attributes............................................... 480
30.3 Method ............................................. of Office Components 481
30.3.1 Important Methods for Office Components....................................... 481
30.3.2 Important Methods for Interface Objects in Office Components............................. 484
30.4 Office Component Event ............................................... 488
30.5 Office Component Routines............................................... 488
30.6 Summary of this Chapter................................................... 497
Appendix 1 Program Debugging ..................................................... 498
Debugging tools............................................................ 498
Debug the output command........................................................ 503
Debugging Application Summary........................................................ 506
Appendix 2 Compilation and Publishing ............................................. of Easy Languages 507
Non-standalone compilation .......................................................... 507
Independently compiled ............................................................ 508
Program Release............................................................ 509
Change icon styles........................................................ 512
Appendix 3 Easy Language Wizard................................................... 514
The role and significance of the easy guide.................................................. 514
How to use the Easy Wizard.................................................... 514
Easy Wizard Writing ........................................................ 517
1. The "Write Out Program()" command........................................... 518
2. Delete Program ()" and "Delete Program Segment ()" commands......................... 519
3. Modify Program ()" command........................................... 520
4. Set Component Attributes ()" command......................................... 520
5. Clear Modification Record ()" command....................................... 520
6. Define Template Variable ()" Command ....................................... 520
|
Score
-
See all ratings
Previous:LOL Friend and Foe Skill CD Timer, Automatic Damage CalculationNext:What do you think of Jack Ma saying that "JD.com will become a tragedy in the future"?
|