This Delphi 4.0 example uses the MapX Ver 4.0 OCX Control. The main goal of this example is to show the use of the new object editing capabilities in MapX Ver 3.51. The program show how to perform functions such as adding a new layer adding lines and points, and editing a layers data.
標簽: example 4.0 Control Delphi
上傳時間: 2015-04-10
上傳用戶:lhc9102
關于tts語音引擎的使用方法!很多軟件具有英文發音和朗讀功能,它們都使用了MSTTS(Microsoft Text To Speech)技術。微軟遵照COM的標準,提供了一套Speech API來對MSTTS進行編程。要在程序中使用這套API,必須確保系統已經安裝了MSTTS和Spchapi軟件包。 Speech API可以作為類型庫引用到Delphi中,方法是:打開Project選單下的Import Type Litrary,點擊“Add”加入Windows\Speech目錄下的Vtxauto.tlb文件,在Delphi的Import目錄中就會生成VTxtAuto—TLB.pas文件,其中定義了VTxtAuto—TLB單元,把它加到Uses成員中來。設計如圖2所示的窗口,定義全局變量: var VoTxt:IVTxtAuto 然后在Form的OnCreate事件中加入: VoTxt:=CoVTxtAuto_.Create VoTxt.Register(′′,′Speech Test′) {注冊} “Read”按鈕代碼為: VoTxt.Speak(Memo1.lines.Text,10) {朗讀} “Stop”按鈕代碼為: VoTxt.StopSpeaking {停止朗讀} 至此,應用程序已具有朗讀功能,10表示使用普通語氣。借住VoTxt的屬性和方法,我們還可以控制閱讀速度和語氣,實現暫停、跳句等功能,Speech API編程就這么簡單。
上傳時間: 2014-01-21
上傳用戶:13681659100
A graphics toolkit, Graf_Tool() is developed which can be used to process and edit graphics. Labels, lines and arrows can be added and the program is very flexible and easy to use.
標簽: graphics Graf_Tool developed toolkit
上傳時間: 2014-01-22
上傳用戶:huql11633
Features • Compatible with MCS-51® Products • 8K Bytes of In-System Programmable (ISP) Flash Memory – Endurance: 1000 Write/Erase Cycles • 4.0V to 5.5V Operating Range • Fully Static Operation: 0 Hz to 33 MHz • Three-level Program Memory Lock • 256 x 8-bit Internal RAM • 32 Programmable I/O lines • Three 16-bit Timer/Counters • Eight Interrupt Sources • Full Duplex UART Serial Channel • Low-power Idle and Power-down Modes • Interrupt Recovery from Power-down Mode • Watchdog Timer • Dual Data Pointer • Power-off Flag
標簽: 8226 Programmable Compatible In-System
上傳時間: 2015-06-27
上傳用戶:dianxin61
A program to demonstrate the optimization process of particle swarm optimization. A two-dimensional objective function is visualized by level of grey: the lighter the color, the higher the function value. The particles are shown as red circles, their trajectory as red lines.
標簽: optimization two-dimensional demonstrate particle
上傳時間: 2013-12-22
上傳用戶:Andy123456
A program to demonstrate the optimization process of ant colony optimization for the traveling saleman problem (TSP). The cities are shown as red circles, the pheromone on the connections between them (fully connected graph) by gray lines. The darker the grey, the more pheromone is currently on the edge. During the optimization, the currently best found tour is drawn in red. To run the optimization, first create a random TSP, then create an ant colony, and finally run the optimization.
標簽: optimization demonstrate the traveling
上傳時間: 2015-07-12
上傳用戶:偷心的海盜
LINEINTRGAL Line Integral in a 2D Vector Field. LINEINTRGAL(X,Y,U,V,C) computes the line integral along the lines given in cell array C. X and Y define the coordinates of a rectangular grid over which U and V are defined. X and Y must be monotonic and 2D plaid as % produced by MESHGRID. X, Y, U, and V must all be the same size.
標簽: LINEINTRGAL Integral computes integral
上傳時間: 2014-01-13
上傳用戶:hwl453472107
Implemented BFS, DFS and A* To compile this project, use the following command: g++ -o search main.cpp Then you can run it: ./search The input is loaded from a input file in.txt Here is the format of the input file: The first line of the input file shoud contain two chars indicate the source and destination city for breadth first and depth first algorithm. The second line of input file shoud be an integer m indicate the number of connections for the map. Following m lines describe the map, each line represents to one connection in this form: dist city1 city2, which means there is a connection between city1 and city2 with the distance dist. The following input are for A* The following line contains two chars indicate the source and destination city for A* algorithm. Then there is an integer h indicate the number of heuristic. The following h lines is in the form: city dist which means the straight-line distance from the city to B is dist.
標簽: Implemented following compile command
上傳時間: 2014-01-01
上傳用戶:lhc9102
OReilly.Ajax.on.Rails.Dec.2006. ISBN-10: 0-596-52744-6. Learn to build dynamic, interactive web applications using the two most important approaches to web development today: Ajax and the phenomenally efficient Ruby on Rails platform. This book teaches intermediate to advanced web developers how to use both Ajax and Rails to quickly build high-performance, scalable applications without being overwhelmed with thousands of lines of JavaScript code. More than just recipes, you also get a thorough, low-level understanding of what s happening under the hood.
標簽: interactive OReilly dynamic 52744
上傳時間: 2015-10-07
上傳用戶:獨孤求源
We often get questions about how the deflate() and inflate() functions should be used. Users wonder when they should provide more input, when they should use more output, what to do with a Z_BUF_ERROR, how to make sure the process terminates properly, and so on. So for those who have read zlib.h (a few times), and would like further edification, below is an annotated example in C of simple routines to compress and decompress from an input file to an output file using deflate() and inflate() respectively. The annotations are interspersed between lines of the code. So please read between the lines. We hope this helps explain some of the intricacies of zlib.
標簽: functions questions deflate inflate
上傳時間: 2014-01-02
上傳用戶:zhuyibin