WIN Delphi IDE: Difference between revisions

From SecuTech Wiki
Jump to navigationJump to search
Joseph (talk | contribs)
mNo edit summary
Bao (talk | contribs)
mNo edit summary
 
Line 1: Line 1:
[[category:UniKey Library Integration Guides]]
[[category:UniKey Library Integration Guides]]
__TOC__


UniKey can support Delphi5, 6, 7, 2009, 2010, XE and XE2. The following instruction is based on Delphi 2009, and for other version, refer to \UniKey SDK\Samples\Win32.Delphi
 
<br>
UniKey supports Delphi 5, 6, 7, 2009, 2010, XE and XE2. The following instruction is based on Delphi 2009, for other versions, refer to <code>UniKey SDK\Samples\Win32.Delphi</code>
{|border="1" pad="10" cellpadding="4"
 
{|class="wikitable"
|-
|-
|Applied Products:
|Applied Products:
|UniKey Lite, UniKey STD, UniKey Pro, UniKey Time
|UniKey STD, UniKey Pro, UniKey Time
|-
|-
|Programming Language:
|Programming Language:
Line 16: Line 18:
|colspan="2"|Please copy Unikey.dcu into project folder
|colspan="2"|Please copy Unikey.dcu into project folder
|}
|}
<br>
 
==Step1, create a new project==
==Create a New Project==
[[File:WIN Delphi2009 IDE Pic 1.jpg|750px|center]]
[[File:WIN Delphi2009 IDE Pic 1.jpg|750px|center|alt=CodeGear Delphi new project]]
<br>
 
[[File:WIN Delphi2009 IDE Pic 2.jpg|750px|center]]
 
<br>
[[File:WIN Delphi2009 IDE Pic 2.jpg|750px|center|alt=CodeGear Delphi empty project window]]
==Step2, Create a listbox for output==
 
[[File:WIN Delphi2009 IDE Pic 3.jpg|750px|center]]
==Create a Listbox for Output==
<br>
[[File:WIN Delphi2009 IDE Pic 3.jpg|750px|center|alt=CodeGear Delphi creating listbox]]
==Step3, add a button for testing usage==
 
[[File:WIN Delphi2009 IDE Pic 4.jpg|750px|center]]
==Add a Button for Testing Purposes==
<br>
[[File:WIN Delphi2009 IDE Pic 4.jpg|750px|center|alt=CodeGear Delphi add a button for use with tests]]
==Step4, double click to edit code==
 
[[File:WIN Delphi2009 IDE Pic 5.jpg|750px|center]]
==Double Click to Edit Code==
<br>
[[File:WIN Delphi2009 IDE Pic 5.jpg|750px|center|alt=CodeGear Delphi editing code]]
==Step5, Declare the UniKey functions and errors==
 
[[File:WIN Delphi2009 IDE Pic 6.jpg|750px|center]]
==Declare the UniKey Functions and Error Values==
<br>
[[File:WIN Delphi2009 IDE Pic 6.jpg|750px|center|alt=CodeGear Delphi source code]]
==Step6, Paste code in function==
 
[[File:WIN Delphi2009 IDE Pic 7.jpg|750px|center]]
==Paste Code into Project==
<br>
[[File:WIN Delphi2009 IDE Pic 7.jpg|750px|center|alt=CodeGear Delphi place to paste code to]]
[[File:WIN Delphi2009 IDE Pic 8.jpg|750px|center]]
 
<br>
 
[[File:WIN Delphi2009 IDE Pic 9.jpg|750px|center]]
[[File:WIN Delphi2009 IDE Pic 8.jpg|750px|center|alt=CodeGear Delphi paste button]]
<br>
 
==Step7, Save module==
 
[[File:WIN Delphi2009 IDE Pic 10.jpg|750px|center]]
[[File:WIN Delphi2009 IDE Pic 9.jpg|750px|center|alt=CodeGear Delphi pasted code]]
<br>
 
[[File:WIN Delphi2009 IDE Pic 11.jpg|750px|center]]
==Save Module==
<br>
[[File:WIN Delphi2009 IDE Pic 10.jpg|750px|center|alt=CodeGear Delphi Save All button]]
==Step8, Put UniKey.dcu into project folder==
 
[[File:WIN Delphi2009 IDE Pic 12.jpg|750px|center]]
 
<br>
[[File:WIN Delphi2009 IDE Pic 11.jpg|750px|center|alt=CodeGear Delphi save dialog window]]
==Step9, use unikey module==
 
[[File:WIN Delphi2009 IDE Pic 13.jpg|750px|center]]
==Put UniKey.dcu into Project Folder==
<br>
[[File:WIN Delphi2009 IDE Pic 12.jpg|750px|center|alt=CodeGear Delphi UniKey.dcu in project folder]]
==Step10, build and run project==
 
[[File:WIN Delphi2009 IDE Pic 14.jpg|750px|center]]
==Use UniKey Module==
<br>
[[File:WIN Delphi2009 IDE Pic 13.jpg|750px|center|alt=CodeGear Delphi uses UniKeyDCU]]
[[File:WIN Delphi2009 IDE Pic 15.jpg|750px|center]]
 
<br>
==Build and Run Project==
[[File:WIN Delphi2009 IDE Pic 14.jpg|750px|center|alt=CodeGear Delphi Build All Projects]]
 
 
[[File:WIN Delphi2009 IDE Pic 15.jpg|750px|center|alt=CodeGear Delphi running project]]

Latest revision as of 15:12, 9 August 2016


UniKey supports Delphi 5, 6, 7, 2009, 2010, XE and XE2. The following instruction is based on Delphi 2009, for other versions, refer to UniKey SDK\Samples\Win32.Delphi

Applied Products: UniKey STD, UniKey Pro, UniKey Time
Programming Language: Delphi 2009
Platform: Windows 98SE, ME, 2000, XP, Server2003, Vista, 7
Please copy Unikey.dcu into project folder

Create a New Project

CodeGear Delphi new project


CodeGear Delphi empty project window

Create a Listbox for Output

CodeGear Delphi creating listbox

Add a Button for Testing Purposes

CodeGear Delphi add a button for use with tests

Double Click to Edit Code

CodeGear Delphi editing code

Declare the UniKey Functions and Error Values

CodeGear Delphi source code

Paste Code into Project

CodeGear Delphi place to paste code to


CodeGear Delphi paste button


CodeGear Delphi pasted code

Save Module

CodeGear Delphi Save All button


CodeGear Delphi save dialog window

Put UniKey.dcu into Project Folder

CodeGear Delphi UniKey.dcu in project folder

Use UniKey Module

CodeGear Delphi uses UniKeyDCU

Build and Run Project

CodeGear Delphi Build All Projects


CodeGear Delphi running project