(8) Gettingstarted

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View (8) Gettingstarted as PDF for free.

More details

  • Words: 2,515
  • Pages: 38
!

ԣిˢ‫͘ܝ‬Ί

Delphi 8 for .NET

!

COPYRIGHT © 1984, 2004 Borland Software Corporation. ඾үᝋᛳ Borland ̳ΦٙѣĎᖙᄦυտĄ ٙѣ Inprise ‫ ׶‬Borland ۞ய‫ݡ‬ЩჍ࠰ߏ Borland Software Corporation.̝થᇾٕොΊથᇾĄ ώ३͔ٙ̚ϡ‫׎‬ι̳Φய‫ݡ‬ЩჍĎ‫׎‬થᇾᛳ‫̳ྍٺ‬Φٙѣ。 ώ͘Ίܼдέ៉Оᄦ !

ϫᐂ! ϫ ᐂ ‫ܧ‬ෛᛇ̼̮І‫̮׶‬Іሹ ..........................4-4 ̍‫׍‬ሹĞTool Paletteğ................................4-5 ҋᄦ۞̮І ..............................................4-5 ̮Іᇹ‫ ۍ‬..................................................4-5 ‫ۏ‬ІᑭෛጡĞObject Inspectorğ ................4-5 ‫ۏ‬ІᚗऱĞObject Repositoryğ .................4-6 ‫ۏ‬Іᚗऱ̰ొ ..........................................4-6 ‫ۏ‬Іᚗऱᇹ‫ ۍ‬..........................................4-7 ૞९გநࣶĞProject Managerğ ................4-7 ΐˢણ໰ (Reference) ............................4-7 ૟ણ໰ኑᄦ‫ז‬ώгྮश ..........................4-7 ΐˢ Web ણ໰ ........................................4-8 Data Explorer ................................................4-8 ඀ёቅበᏭጡĞCode Editorğ ...................4-8

ௐ1ౢ

ԣిˢ‫ܝ‬

1-1

ௐ2ౢ

̦ᆃߏ Delphi for .NETĉ

2-1

‫ؠ‬ཌྷᅮՐ.........................................................2-1 ሀ๬ᑕϡ඀ё.................................................2-2 నࢍֹϡ۰̬ࢬ.............................................2-2 யϠᄃበᏭ඀ёቅ.........................................2-2 በᛌĂੵ᏾Ăᄃొཌᑕϡ඀ё.....................2-2 ଠ‫ט‬х‫̈́פ‬੠ᖸ඀ёቅ۞តՀ.....................2-3 .NET Framework ..........................................2-3

ௐ3ౢ Delphi 8 for .NET ۞າপّ

ௐ5ౢ ฟؕາ۞૞९

3-1

IDE ..................................................................3-1 ሀ๬.................................................................3-2 ASP .NET Web ฟ൴ .....................................3-3 ྤफ़ऱฟ൴.....................................................3-4 Visual Component Library (VCL) for .NET 3-4 Delphi ᄬ֏੫၆.NET ۞ΐૻ......................3-5 ඀ёቅଠ‫۞ט‬ፋЪ.........................................3-5 ࢦາనࢍ۞۞ᅃӄᄲ‫ځ‬ր௚.........................3-6

ௐ4ౢ IDE ̝ॠ

5-1

૞९۞‫ݭ‬ၗ.....................................................5-2 ෛ඄ᑕϡ඀ё ..........................................5-2 ASP .NET Web ᑕϡ඀ё ......................5-2 ASP .NET Web Services ᑕϡ඀ё.......5-2 VCL .NET ᑕϡ඀ё...............................5-3 ྤफ़ऱᑕϡ඀ё ......................................5-3 ͽሀ‫ݭ‬ᜭજ۞ᑕϡ඀ё ..........................5-4 Assemblies ..............................................5-5 ᗝγ۞૞९.....................................................5-5 Ϗৼˢგந۞඀ёቅᄃ COM/Interop.......5-5

4-1

ᝌ‫ࢬࢱܓ‬ĞWelcome Pageğ.......................4-2 ܑॾĞFormsğ..............................................4-2 ෛ඄ܑॾ ..................................................4-3 ASP .NET Web ܑॾ ..............................4-3 VCL ܑॾ .................................................4-3 HTML Designer .....................................4-4 Designer Surface...........................................4-4 ෛᛇ̼̮І ..............................................4-4

ௐ6ౢ

඀ёቅበᏭጡ

6-1

எˢ඀ёቅĞCode Insightğ ......................6-2 ᙷҾԆјĞClass Completionğ..................6-2 ඀ёቅᕱᜓ.....................................................6-2 ඀ёቅͯ߱ĞCode Snippetsğ ...................6-3 ඀ёቅԶᝑĞCode Foldingğ.....................6-3 ‫ޞ‬఍ந୻ಏĞTo-Do Listsğ ........................6-4

i

ᔣᑝ۞λะĞKeystroke Macrosğ .............6-4

ણ҂͹ᗟ ..................................................7-2 Context Sensitive ۞ F1 ᅃӄᄲ‫ ځ‬........7-3 Microsoft .NET Framework SDK ᅃӄᄲ‫ځ‬.7-3 Borland ฟ൴۰͚೯‫ڇ‬ચ̈́შ৭..................7-3 Delphi 8 for .NET ԣిˢ‫͔޽ܝ‬.................7-4 ᅃӄᄲ‫۞ځ‬ଵ‫ۍ‬ၚּ.....................................7-4

ௐ7ౢ

ᅃӄᄲ‫ੈྤ۞ځ‬

7-1

ࢦາనࢍ۞ Delphi 8 for .NET ᅃӄᄲ‫ځ‬....7-1 ໄ‫۞ه‬ტ៍ ..............................................7-2 ඀Ԕ۞޽͔ ..............................................7-2

ii

ԣిˢ‫ܝ‬ Delphi 8 for .NET ፋЪّ൴णᒖဩ (IDE) ೩ֻధк̍‫׶׍‬পّĂ‫ם‬ӄଋԣ ిг‫ޙ‬ϲૻѣ˧۞.NET ᑕϡ඀ёĄ֭‫ܧ‬ٙѣ۞পّ‫ౌ׍̍׶‬Βӣд Delphi 8 for .NET ۞ٙѣ‫ۍ‬ώ̚Ąࠎᒢྋଋֹϡ۞‫ۍ‬ώΒӣֱࣹপّ‫׍̍׶‬Ăኛણ ҂ http://www.borland.com/delphi_net ۞পّܑĄ ώˢ‫̰۞ܝ‬टΒ߁Ĉ y

̦ᆃߏ Delphi for .NETĉ ೩ֻய‫ݡ‬ໄ៍Ă֭ೡࢗ Delphi 8 for .NET ϡֽგந඀ёฟ൴Ϡ‫׻‬ฉഇ۞ ̍‫׍‬Ą

y

ѣ̦ᆃາ۞পّĉ ̬௜ώய‫ֱ˘ݡ‬າ۞পّ‫׶‬ΑਕĄ

y

IDE ̝ॠ ೡࢗ IDE ۞ЧีࢋІĄ

y

ฟؕາ۞૞९

ԣిˢ‫ܝ‬

1-1

ೡࢗ૞९۞Чొ̶Ă֭Еᓝ Delphi 8 for .NET ͚ٙ೯۞૞९ᙷ‫ݭ‬Ą y

ᅃӄᄲ‫࠹۞ځ‬ᙯྤੈ ྋᛖቢ˯ᅃӄᄲ‫̰ੈྤ۞̚ځ‬टĂ֭Еᓝ‫۞΁׎‬ણ҂ྤ໚೩ֻග඀ёฟ ൴۰Ą

1-2

Delphi ԣిˢ‫͘ܝ‬Ί

̦ᆃߏ Delphi for .NETĉ Delphi 8 for .NET ߏ ˘ ࣎ ፋ Ъ ّ ൴ ण ᒖ ဩ (IDE) Ă ϡ ֽ ‫ ޙ‬ϲ ે Җ ‫ٺ‬ Microsoft .NET ᒖဩ۞ Delphi ᑕϡ඀ёĄDelphi 8 for .NET IDE ೩ֻ˘௡ ൑̙ٙΒ۞̍‫׍‬Ăϡͽᖎ̼֭ΐిฟ൴ᑕϡ඀ё۞Ϡ‫׻‬ฉഇĄIDE ̚Ξϡ۞ ̍‫׍‬૟ෛଋֹϡ۞ Delphi 8 for .NET ‫ۍ‬ώ҃‫ؠ‬Ąତ˭ֽЧ༼૟ᖎൺ̬௜఺ֱ ̍‫׍‬Ĉ

‫ؠ‬ཌྷᅮՐ Delphi 8 for .NET೩ֻ˘࣎CaliberRM۞̬ࢬĂ఺ߏ˘࣎Web-based۞ᅮՐ ‫ؠ‬ཌྷ̈́გநր௚Ăϡֽ‫ם‬ӄଋଠ‫ט‬ய‫۞ݡ‬൴ण࿅඀ĄдIDE྆ĂଋΞͽх‫פ‬ CaliberRMͽТॡ఍ந૞९ᅮՐĂ֭ቁܲଋ۞ᑕϡ඀ё௑Ъֹϡ۰(end-user) ۞ᅮࢋĄ

̦ᆃߏ Delphi for .NETĉ

2-1

ሀ๬ᑕϡ඀ё ሀ๬ (modeling) ߏдฟؕᇤᆷ඀ёቅ̝݈А‫ޙ‬ϲྎႽ۞ෛᛇ̼నࢍĂͽ‫ם‬ ӄଋᆧซᑕϡ඀ё۞ड़ਕăड़தăͽ̈́Ξჯ᜕ّĄDelphi for .NET ೩ֻͽ UML ࠎૄᖂ۞ᙷҾᄦဦ(class diagramming)̍‫׍‬Ăͽ̈́˘࣎ Enterprise Core Objects (ECO) ۞॰ߛĂ‫ם‬ӄଋ‫ޙ‬ϲणனሀ‫ݭ‬જ˧۞.NET ᑕϡ඀ёĄ

నࢍֹϡ۰̬ࢬ Delphi 8 for .NET ෛᛇ̼۞ designer surfaceĂឰଋ૟̍‫׍‬ሹ (Tool Palette) ˯۞̮І‫ٳ‬Ѣ‫˯ॾܑז‬Ăͽ‫ޙ‬ϲဦԛ̼۞ֹϡ۰̬ࢬĄֹϡ఺ֱ designersĂ ଋΞͽ‫ޙ‬ϲෛ඄ܑॾ (Windows Form)ăWeb ܑॾăVCL ܑॾă‫ ׶‬HTML შࢱĄ

யϠᄃበᏭ඀ёቅ Delphi 8 for .NETдଋฟؕฟ൴૞९ॡĂಶࠎଋҋજயϠధк඀ёቅĄࠎ˞ ‫ם‬ӄଋԣిгԆј‫۞΁׎‬ᑕϡ඀ёទᏭĂͽ͛фࠎૄᖂ۞඀ёቅበᏭጡ (Code Editor) ೩ֻ۞পّѣ඀ёቅ۞ԆјăΞࢦኑֹϡ۞඀ёቅͯ߱ăᐂ ᄦ۞ᔣᑝλะ (keystroke macros)ăͽ̈́ҋࢎ۞ᔣሹ၆ᑕĄᄬ‫ڱ‬Ύព (syntax highlighting) ̈́඀ёቅԶᝑ (code folding) ឰଋ۞඀ёቅՀ‫ٺٽ‬ዦ᝝‫׶‬ፆ үĄ

በᛌĂੵ᏾Ăᄃొཌᑕϡ඀ё д IDE ྆ĂଋΞͽన‫ؠ‬በᛌጡᏴีăበᛌ֭ેҖଋ۞ᑕϡ඀ёăͽ̈́ᑭෛበ ᛌጡ۞ੈिĄ̏ፋЪซֽ۞ੵ᏾ጡĂឰଋԱ‫࣒֭ז‬ϒેҖഇม‫׶‬ទᏭ˯۞᏾ ᄱăଠ‫ט‬඀ё۞ેҖăͽ̈́ుՎซˢ඀ёቅมᑭෛតᇴ࣒֭Լྤफ़ࣃĄ.NET Framework Β ӣ ధ к ̳ ϡ ඀ ё ‫ ם‬ӄ ଋ ࿰ ౯ ᑕ ϡ ඀ ё ۞ ొ ཌ Ą Delphi 8 for .NET ۞ InstallShield Express ‫݋‬ϡֽ‫ޙ‬ϲ Windows Installer ۞న‫ؠ‬Ą

2-2

Delphi ԣిˢ‫͘ܝ‬Ί

ଠ‫ט‬х‫̈́פ‬੠ᖸ඀ёቅ۞តՀ ඀ёቅଠ‫ט‬ր௚(source control system)ĂᖣϤଠ‫ט‬х‫̈́פ‬੠ᖸ඀ёቅ‫΁׎׶‬ ᑫ९۞តՀĂֽܳјဥฤฟ൴ĄDelphi 8 for .NET Ӏϡ Microsoft Common Source Code Control API (SCC API) ೩ֻ˘࣎В఼۞̬ࢬග StarTeamă CVSăClearCase ‫ ׶‬Visual SourceSafeĄд Delphi 8 for .NET ۞ IDE ྆Ăଋ Ξͽઇ˘ਠ۞ࣧؕቅଠ‫̍ט‬үĂּтᑫ९൳ˢă൳΍ă̈́ТՎ̼Ą

.NET Framework Microsoft .NET Framework ೩ֻ˞‫ޙ‬ၹ‫ે׶‬Җ.NET ᑕϡ඀ё۞ૄᖂĄѩ॰ ߛΒ߁ common language runtime ‫ᙷ׶‬Ҿऱ (class library)ĄCommon language runtime გந඀ёቅ۞ેҖ֭೩ֻ‫ڇ‬ચĂּт੃ጸវგந‫ྭ׶‬඀ё ᄬ֏۞ፋЪĂͽᖎ̼ฟ൴۞࿅඀ĄᙷҾऱΒ߁Ξࢦኑֹϡ۞‫ۏ‬ІጱШ̮ІĂ ϡֽ൴णӀϡ common language runtime ‫ڇ‬ચр఍۞.NET ᑕϡ඀ёĄ Delphi 8 for .NET ۞ IDE ֹϡፋ࣎॰ߛ۞ᙷҾऱĂͽ‫ם‬ӄଋ൴ण.NET ᑕϡ ඀ёĄDelphi 8 for .NET дͽ˭ೀ࣎͞ࢬΐૻ˞॰ߛĈ y

Delphi 8 for .NET ۞ Borland Data Providers for .NET ೩ֻ InterBaseă OracleăDB2 Universalăͽ̈́ Microsoft SQL Server ඈྤफ़ऱ۞х‫פ‬Ą

y

ధкྤफ़ऱ̳ϡ඀ё೩ֻд೩̿ड़ਕ˯۞‫ם‬ӄĂтాඕྤफ़ऱăᕱᜓ‫׶‬ በᏭྤफ़ऱăͽ̈́ેҖ SQL ߤྙĄ

y

.NET Menu Designers ᖎ̼˞ෛ඄ܑॾ˯͹Ᏼಏ‫̰׶‬टᏴಏ۞‫ޙ‬ϲĄ

̦ᆃߏ Delphi for .NETĉ

2-3

2-4

Delphi ԣిˢ‫͘ܝ‬Ί

Delphi 8 for .NET ۞າপّ Delphi 8 for .NET ೩ֻ̂ณ۞າপّϡֽ൴ण.NET ᑕϡ඀ёĄତ˭ֽೀ༼ ૟পҾᄲ‫ځ‬ᄃ Delphi ̝݈‫ۍ‬ώ̙Т۞পّĄ

IDE y

IDE ѣ˘࣎າ۞γ៍ĂΒӣ˘࣎࿰న۞ઃዸෛ඄‫(ࢬۍ‬docked window layout)‫࣎˘׶‬࿰న۞ੵ᏾‫(ࢬۍ‬debug layout)ĄΩγĂଋΞͽֹϡ็௚۞ Ϗઃዸ‫(ࢬۍ‬undocked layout)Ăٕᐼхଋҋࢎ۞‫ࢬۍ‬న‫ؠ‬Ą

y

д IDE ϒ̚δ۞ᝌ‫( ࢬࢱܓ‬Welcome page)Ăѣ˘ЊܑಏЕ΍ଋ౵‫ܕ‬х ‫۞פ‬૞९Ă֭೩ֻధкฟ൴۰შ৭۞ాඕĄ

y

૞९გநࣶ (Project Manager)ăາ۞ Model Viewăͽ̈́ΐૻ࿅۞ Data ExplorerĂౌည඄ॾਠಷд‫ځ‬ព۞г͞ͽֻԣిх‫פ‬Ą

Delphi 8 for .NET ۞າপّ

3-1

y

̮Іሹ (Component Palette) ̏གྷజ IDE Π˭֎˘࣎Ξຩವ҃ͷΞҋࢎ ۞̍‫׍‬ሹ (Tool Palette) ٙ‫΃פ‬Ą̍‫׍‬ሹౘЕ۞̮Іߏॲፂ IDE ྆ϫ݈ ฟୁ۞ᑕϡ඀ёᙷ‫ݭ‬Ă޷໰ᙷҾܑ҃ЕĄΠᑝ̍‫׍‬ሹ૟ពϯధкΞҋࢎ ۞ᏴีĄ

y

˘ֱ̮ІΒӣ component designersĂ೩ֻᗝγ۞నࢍॡഇΑਕĄ̂ొ̶ ۞ component designers Ξͽଂ‫ۏ‬Іᑭෛጡ (Object Inspector) ‫۞ొغ‬ designer verb ડાх‫פ‬Ą

y

‫ۏ‬ІᑭෛጡົពϯٙᏴ‫פ‬.NET ॰ߛ̮Іᛳّ۞ᖎൺᄲ‫ځ‬Ą

y

၆ Web ܑॾ‫׶‬ෛ඄ܑॾ҃֏Ă‫ܧ‬ෛᛇ̼۞̮Іт̫ពϯд designer ‫غ‬ ొ۞̮І஼ (component tray)Ă̙҃ߏܑॾ˯Ą

y

඀ёቅበᏭጡ۞඀ёቅͯ߱ (Code Snippets) ឰଋᐼх‫ࢦ׶‬ኑֹϡ૱ϡ ۞඀ёቅ߱རĄ

y

඀ёቅበᏭጡ۞඀ёቅԶᝑ (Code Folding) ឰଋԶᝑ‫׶‬णฟ඀ёቅડ ๴ĂͽᆧซΞ᝝ّ‫׶‬ፆүĄ

y

ҖᇴனдΞͽពϯд඀ёቅበᏭጡ۞νቡĄ

y

Бા۞ IDE న‫̏ؠ‬གྷඕЪ‫ֹٺٽ࣎˘ז‬ϡ۞ treeview ၆ྖ஼Ăϡ Tools -> Options Ᏼಏ‫΄׻‬ΞͽԯιΨ΍ֽĄ

y

ଂ Tools -> Reflection х ‫ ۞ פ‬Borland Reflection ̍ ‫ ׍‬Ă Ξ ឰ ଋ ၅ ࠻.NET assembly metadataĄ

ሀ๬ y

Delphi 8 for .NET ̰ӣ̍‫׍‬Ăϡֽฟ൴णனሀ๬જ˧۞.NET ෛ඄ܑॾᑕ ϡ඀ёĄ

y

Enterprise Core Object (ECO) ॰ߛ၁ү˞ UML 1.4 ‫ ۞ۍ‬MetamodelĂ ֹ֭଀.NET ॰ߛдనࢍഇม‫ે׶‬ҖഇมౌΞͽֹϡሀ‫( ݭ‬model)Ą

3-2

Delphi ԣిˢ‫͘ܝ‬Ί

y

ፋЪ۞ UML ᄦဦ̍‫ם׍‬ӄଋ‫ޙ‬ϲ UML इІ(package)ăᙷҾăᙷҾม ۞ాඕ(link)‫׶‬ᙯܼ(association)ăဦܑᄲ‫(ځ‬note)Ăͽ̈́ՀкĄ

y

Model View ෛ඄ឰଋॲፂᙷҾ‫׶‬඀ёቅ྆‫̮΁׎‬৵̝ม۞ទᏭᙯܼፆ ଠଋ۞૞९Ą

y

UML ሀ‫ݭ‬Ξͽϡ XML Metadata Interchange (XMI) ۞ॾё๗ˢ̈́๗ ΍Ą

ASP .NET Web ฟ൴ y

Delphi 8 for .NET ͚೯ ASP .NET ඀ёሀ‫ݭ‬Ą

y

ధкྤफ़ຏᑕ۞(data-aware)ྤफ़ऱ web ଠ‫̮ט‬ІĂᖎ̼˞ͽྤफ़ᜭજ ۞ ASP .NET web ᑕϡ඀ё۞ฟ൴Ą

y

Web ܑॾ۞ designer ೩ֻԆፋ۞ WYSIWYG HTML በᏭĂ‫ ̚׎‬HTML ჯ ᜕ д ˘ ࣎፾ ϲ ۞ .aspx ᑫ ྆ Ă ҃ ଋ ۞ Delphi ඀ ё ቅ ‫ ߏ ݋‬ჯ ᜕ д ˘ ࣎.pas ᑫ྆Ą

y

༊‫ޙ‬ϲ˘࣎ ASP .NET ᑕϡ඀ёॡĂNew ASP .NET Application ၆ྖ஼ ឰଋ޽‫ ؠ‬web Ҩ‫ڇ‬ጡ‫׶‬࿰న۞х‫טࢨפ‬Ă൒‫ޢ‬ҋજ‫ޙ‬ϲ෍ᑢϫᐂ(virtual directory)Ă֭ࠎଋ۞ᑕϡ඀ёన‫ؠ‬х‫פ‬ᝋࢨĄ

y

ેҖ ASP .NET ᑕϡ඀ёॡĂົҋજពϯд˘࣎ web ᕱᜓጡ྆Ăឰଋд IDE ྆ಶΞͽүീྏĄ

y

Web ܑॾ designer ‫ ۞ొغ‬HTML Tag Editor ឰଋд࠻ HTML ۞ဦԛܑ ன۞ТॡĂ˵ਕበᏭιĄ

y

HTML Tidy Ξϡֽд IDE ྆ԯ HTML ЕО۞႓႓‫۞ܪܪ‬Ą

y

೩ֻ‫ޙ‬ϲ SOAP Server ᑕϡ඀ё۞͞‫( ڱ‬method)Ăᖎ̼˞ Web Services ۞ฟ൴Ą

Delphi 8 for .NET ۞າপّ

3-3

y

ଋΞͽд IDE ྆ീྏ Web ServiceĂ̙҃υᇤᆷ˘࣎‫͗މ‬ბᑕϡ඀ёү ീྏĄ

y

UDDI Brower ΞͽԱ‫࣎˘ז‬ೡࢗ Web Service ۞ WSDLĂ֭๗ˢ‫ז‬ଋ۞ ‫͗މ‬ბᑕϡ඀ё྆Ą

ྤफ़ऱฟ൴ y

Delphi 8 for .NET ͚೯ ADO .NET ඀ёሀ‫ݭ‬Ą

y

Borland Data Providers (BDP) for ADO.NET ೩ֹֻϡ Web ܑॾăWeb Services ‫׶‬ෛ඄ܑॾᑕϡ඀ёх‫ פ‬InterBaseăOracleăDB2 Universală Microsoft SQL Serverăͽ̈́ Microsoft Access database ඈྤफ़ऱĄ

y

BDP.NET ̮І designers ͞‫ܮ‬ฟ൴۰ᕱᜓ‫׶‬በᏭྤफ़ऱ۞প‫ۏؠ‬ІĂт ాቢ(connection)ăܑॾ(table)ătriggers ‫׶‬৶͔Ą

y

၆ VCL.NET ᑕϡ඀ё҃֏Ăధк Delphi ߊѣ۞ྤफ़ऱԫఙౌ̏གྷᑕϡ ‫ٺ‬.NETĂ Β߁ dbExpress .NETăDataSnap .NET ClientăInterBase for .NETăͽ̈́ BDE .NETĄ

Visual Component Library (VCL) for .NET y

VCL .NET ॰ߛ೩ֻ˘௡૞ࠎ.NET ॰ߛՀາ۞૱֍ VCL ̮ІĄ

y

VCL ܑॾ designer ឰଋֹϡ VCL .NET ॰ߛ྆۞̮ІĂͽ‫ޙ‬ϲ.NET ෛ ඄ᑕϡ඀ёĄ

y

ֹϡ WinForm Control Import WizardĂଋΞͽԯ.NET ෛ඄ܑॾ̮Іΐ ‫ז‬ଋ۞ VCL ᑕϡ඀ёĄѩჟីឰଋ૟.NET ෛ඄ܑॾ̮І๗ˢ‫࣎˘ז‬ Delphi इІĂ൒‫ޢ‬૟ιࣇщ྅‫׍̍ז‬ሹĄ

3-4

Delphi ԣిˢ‫͘ܝ‬Ί

Delphi ᄬ֏੫၆.NET ۞ΐૻ ͽ˭Е΍ Delphi ᄬ֏ࠎ͚೯.NET πέ‫ ׶‬Common Language Specification (CLS) ٙΐˢ۞າপّĈ y

૟඀ёቅ̷̶‫̙ז‬Т‫׻‬Щ۩ม(namespace)

y

ኬ̟ᙷҾјࣶາ۞Ξ֍ّ޽ϯෟ(visibility specifier)

y

ᙷҾ۞ᐖၗ͞‫ڱ‬ăᛳّ‫׶‬᛼Ҝ

y

ᙷҾ۞‫ޙ‬ၹ̄(constructor)

y

ᙷҾ྆૰‫(۞ې‬nested)‫ݭ‬ၗ‫ކ‬Ә

y

‫ދ‬ҝ۞(sealed)ᙷҾ

y

౵௣۞(final)෍ᑢ͞‫ڱ‬

y

ᙷҾ྆ྻზ̄۞ᖬྶ(overload)

y

.NET ᛳّ(attribute)

y

ᙷҾ۞ᅃӄᙷҾᄬ‫ڱ‬

ቢ˯۞ Delphi ඀ёᄬ֏ᖎ̬̏జՀາĂͽͅᑕ၆‫ٺ‬.NET ۞ΐૻ̝఍Ą

඀ёቅଠ‫۞ט‬ፋЪ y

Delphi 8 for .NET ೩ֻధк඀ёቅଠ‫ט‬ր௚۞ፋЪĂឰଋд IDE ྆ઇ౵ ఼ϡ۞඀ёቅଠ‫̍ט‬үĄ

y

ϫ݈͚೯۞඀ёቅଠ‫ט‬ր௚ѣ Borland StarTeamăConcurrent Versions System (CVS)ăRational ClearCaseăͽ̈́ Microsoft Visual SourceSafeĄ

Delphi 8 for .NET ۞າপّ

3-5

ࢦາనࢍ۞۞ᅃӄᄲ‫ځ‬ր௚ y

ቢ˯ᅃӄᄲ‫̏ځ‬གྷࢦາనࢍֹ֭ϡ Microsoft Document Explorer ҃‫ܧ‬ WinHelpĄNavigation panesĞӣ ContentsăSearchă‫ ׶‬Indexğឰଋԣ ిͷट‫ٽ‬гԱ‫֭ז‬࿅ᕭྤੈĄ

y

ᅃӄᄲ‫̰۞ځ‬ट̏གྷડ̶јໄ‫۞ه‬ტ៍ă඀Ԕ۞޽͔ăͽ̈́ણ҂ྤੈĂ ٙѣ఺ֱౌΞͽଂ Contents х‫זפ‬Ą

y

Microsoft .NET Framework SDK Help ‫˧ם׶‬ᇄથ۞ᅃӄᄲ‫̏ځ‬ፋЪ‫ז‬ Delphi 8 for .NET Help ྆Ą

3-6

Delphi ԣిˢ‫͘ܝ‬Ί

IDE ̝ॠ ༊ଋฟୁ Delphi 8 for .NET ॡĂፋЪّฟ൴ᒖဩ (IDE) ಶົୁજ֭ពϯధ к̍‫׶׍‬ᏴಏĄIDE ‫ם‬ӄଋͽෛᛇ̼۞͞ёనࢍֹϡ۰̬ࢬăన‫ۏؠ‬Іᛳّă ᇤᆷ඀ёቅăͽ̈́ϡЧᇹ۞͞ёᑭෛ‫׶‬გநଋ۞ᑕϡ඀ёĄ ࿰న۞ IDE ॸࢬଵЕΒ߁˘ֱ౵૱ϡ۞̍‫׍‬ĄଋΞͽϡ View Ᏼಏԯߙֱ̍ ‫׍‬ពϯٕᔳᖟ੓ֽĄଋ˵Ξͽҋࢎ֭ᐼх౵ዋЪଋ̍ү۞ॸࢬଵЕĄ IDE ྆Ξϡ۞̍‫׍‬૟ෛଋֹϡ۞ Delphi 8 for .NET ‫ۍ‬ώ҃‫ؠ‬ĂΒ߁Ĉ y

ᝌ‫ࢬࢱܓ‬

y

ܑॾ

y

Designer Surface

y

̍‫׍‬ሹ

y

‫ۏ‬Іᑭෛጡ

y

‫ۏ‬Іᚗऱ

y

૞९გநࣶ

IDE ̝ॠ

4-1

y

Data Explorer

y

඀ёቅበᏭጡ

ତ˭ֽࠎଋ࣎Ҿ̬௜఺ֱ̍‫׍‬Ą

ᝌ‫ࢬࢱܓ‬ĞWelcome Pageğ ༊ଋฟୁ Delphi 8 for .NET ॡĂᝌ‫ࢬࢱܓ‬ಶົ΍னĂ֭Е΍ధкᏴี‫ా׶‬ඕ ֻଋᏴፄĄ༊ଋдฟ൴˘ٕ࣎к࣎૞९ॡĂົѣ˘ܑ࣎ॾЕ΍ଋ౵‫̍ܕ‬ү۞ ૞९Ăͽ̈́Տ࣎૞९జ࣒Լ۞ॡมĄ఺ֹଋΞͽ‫ޝ‬ԣгх‫פ‬ଋ౵‫̍ܕ‬ү۞૞ ९Ą т‫ڍ‬ଋᙯౕᝌ‫ࢬࢱܓ‬ĂଋΞͽᏴፄ View -> Welcome Page ૟ιࢦາฟୁĄ ᝌ‫ࢬࢱܓ‬Βӣх‫׶פ‬ฟୁ૞९۞޷ตĄଋ˵Ξͽ޷ Help ޷ตх‫פ‬౵າ۞ቢ ˯ᄲ‫ੈྤځ‬ĄProject ޷ต૟ฟୁ˘࣎̏хд۞૞९ٕ૞९ཏ௡ĄNew ޷ต ฟୁ‫ۏ‬Іᚗऱ֭ឰଋଂЧ჌૞९ᇹ‫ۍ‬Ᏼፄ‫˘׎‬Ăͽ‫ޙ‬ϲଋຐࢋ۞.NET ᑕϡ ඀ёĄଋ˵ΞͽᏴ File -> New -> Other ֭߄Ᏼ౵ዋЪଋֹϡ۰̬ࢬనࢍ۞ ᇹ‫ۍ‬Ą

ܑॾĞFormsğ ܑॾߏ޽ֹϡ۰̬ࢬ˯۞ෛ඄ٕ HTML შࢱĄдనࢍഇมĂܑॾົ΍னд designer surfaceĄଋΞͽଂ̍‫׍‬ሹԯ̮І‫ٳ‬Ѣ‫ޙͽ˯ॾܑז‬ϲଋ۞ֹϡ۰̬ ࢬĄ Delphi 8 for .NET ೩ֻˬ჌ᙷ‫ॾܑ۞ݭ‬Ăൾ‫߱۞ޢ‬ར૟ົΐͽೡࢗĄ̙ኢଋ ۞ᑕϡ඀ёߏᖣϤ Web ೩ֻЋຽទᏭΑਕ۞ Web ᑕϡ඀ёĂϺٕߏ೩ֻ̍ ү఍ந‫੼׶‬ड़ਕ۞̰टពϯΑਕĂౌΞͽᏴፄ౵ዋЪଋ۞నࢍĄ୬д designer ‫׶‬඀ёቅበᏭጡү̷ೱĂኛᕇᏴ IDE ˭͞࠹၆ᑕ۞ᇾចࢱĄ ୬х‫ॾܑפ‬ĂኛᏴፄ File -> New -> OtherĄ

4-2

Delphi ԣిˢ‫͘ܝ‬Ί

ෛ඄ܑॾ ෛ඄ܑॾϡֽ‫ޙ‬ϲેҖ‫ٺ‬జგநᒖဩ(managed environment)۞ෛ඄ᑕϡ඀ ёĄֹϡ.NET ᙷҾ‫ޙ‬ϲෛ඄۞‫͗މ‬ბѣ‫࣎׌‬͹ࢋ۞р఍ ę ឰᑕϡ඀ё۞ ‫͗މ‬ბֹϡᕱᜓጡ‫͗މ‬ბ൑‫ֹڱ‬ϡ۞পّĂͽ̈́૟.NET ॰ߛྻϡдፋ࣎ߛ ၹ˯Ąෛ඄ܑॾ૟఺‫۞ࠧ͵࣎׌‬ᐹᕇඕЪ੓ֽĂणன΍۞඀ёሀ‫۞ݭ‬р఍Β ӣ.NET ॰ߛ̝˘࡭ّĞּтщБ፟‫׶ט‬જၗᑕϡ඀ёՀາğ̈́ GUI ෛ඄‫މ‬ ͗ბ̝ᖳಱّĄଋΞͽֹϡෛ඄ଠ‫̮ט‬Іт޷ตăЕϯ͞๴ă‫͛׶‬ф͞๴ඈĂ ‫ޙ‬ϲଋ۞ෛ඄ᑕϡ඀ёĄ ୬ х ‫ פ‬ෛ ඄ ܑ ॾ Ă ኛ Ᏼ File -> New -> Other ֭ д ૞ ९ ϫ ᐂ ྆ Ᏼ ፄ Application ဦϯĄ

ASP .NET Web ܑॾ ֹϡ ASP .NET Web ܑॾ‫ޙ‬ϲ۞ᑕϡ඀ёĂΞϤЇңπέ۞Ї˘ᕱᜓጡх ‫פ‬Ąֹϡ.NET ᙷҾ‫ޙ‬ϲ۞ ASP .NET Web ܑॾᑕϡ඀ёĂ‫ॾܑ׎‬Βӣ HTML ෛᛇܑ̼னă၁ᅫ۞ HTMLăͽ̈́ࡦ‫۞ޢ‬඀ёቅᑫ९Ą ୬х‫ פ‬ASP .NET Web ܑॾĂኛᏴ File -> New -> Other ֭д ASP ૞९ϫᐂ ྆Ᏼፄ ASP .NET Web Application ဦϯĄ

VCL ܑॾ ֹϡ VCL ܑॾ‫ޙ‬ϲ۞ᑕϡ඀ёĂϡ VCL .NET ̮ІેҖ‫ٺ‬.NET ॰ߛĄଋΞ ͽֹϡ Borland Visual Component Library for .NET ۞ᙷҾ‫ޙ‬ϲ˘࣎ VCL ܑॾᑕϡ඀ёĄ т‫ڍ‬ଋຐࢋ૟னѣΒӣ VCL ଠ‫̮ט‬І۞ Delphi ᑕϡ඀ёொങ‫ז‬.NET ᒖဩĂ ٕ۰ߏଋ̏གྷሢଉ VCL ͷຐࢋֹϡιĂ֤ᆃ VCL ܑॾ૟পҾѣϡĄ ୬х‫ פ‬VCL ܑॾĂኛᏴ File -> New -> Other ֭д Delphi for .NET Project ϫᐂ྆Ᏼፄ VCL .NET Application ဦϯĄ

IDE ̝ॠ

4-3

HTML Designer ֹϡ HTML designer ᑭෛ‫׶‬በᏭ ASP .NET Web ܑॾٕ HTML შࢱĄѩ designer ೩ֻ˘࣎ Tag Editor ϡֽበᏭ HTML ۞ tagĄଋ˵Ξͽֹϡ‫ۏ‬Іᑭ ෛጡበᏭ HTML შࢱ˯Ξ֍ีϫ۞ᛳّĂ֭ពϯϫ݈д Tag Editor ྆Їң HTML tag ۞ᛳّĄҜ‫ ٺ‬Tag Editor ˯͞۞௡Ъ͞๴ឰଋពϯ‫׶‬በᏭ SCRIPT tagĄ ୬யϠ˘࣎າ۞ HTML ᑫ९ĂኛᏴ File -> New -> Other ֭д Markup File ϫᐂ྆Ᏼፄ HTML pageĄ༊ HTML შࢱពϯॡĂ͹Ᏼಏົΐˢ˘࣎ Insert ᏴಏĄϡ఺࣎ᏴಏજၗгາᆧܑಏĂဦညĂֹϡ۰ଠ‫̮ט‬І‫΁׎׶‬Ą

Designer Surface Designer surface ٕ designer ົдଋֹϡܑॾॡҋજ΍னĄDesigner ۞γ៍ ‫׶‬Αਕ૟ෛଋֹϡ۞ܑॾ‫ݭ‬ၗՙ‫ؠ‬ĄּтĂт‫ڍ‬ଋдֹϡ ASP .NET Web ܑ ॾĂdesigner ૟ពϯ˘࣎ HTML tag editorĄ୬х‫פ‬ѩ designerĂኛᕇᑝ IDE ‫ ۞ొغ‬Design ᇾចࢱĄ

ෛᛇ̼̮І ෛᛇ̼̮І(visual component)дనࢍഇม΍னдܑॾ˯Ăֹ҃ϡ۰ົдે Җഇม࠻‫ז‬ιĄιࣇΒӣ޷ตăᇾចă̍‫׍‬ЕăЕϯ͞๴ඈඈĄ

‫ܧ‬ෛᛇ̼̮І‫̮׶‬Іሹ ‫ܧ‬ෛᛇ̼̮І(nonvisual component)‫ܢ‬дܑॾ˯ĂҭιࣇΪົ΍னдనࢍഇ มćֹϡ۰̙ົдેҖഇม࠻‫ז‬ιࣇĄଋֹϡ‫ܧ‬ෛᛇ̼̮І۞͞ёĂΞͽт ྤफ़ऱ‫׶‬ր௚‫ۏ‬І௡ј۞ཏ௡˘ᇹгࢦኑֹϡĂٕߏညଋ૟ᑕϡ඀ё఍நྤ फ़ऱాቢ‫׶‬Ћຽఢ‫̶̶ొ۞݋‬ฟֹֽϡ˘ᇹĄ ༊ଋ૟˘࣎‫ܧ‬ෛᛇ̼̮Іΐ‫ॾܑז‬ॡĂιࣇົ΍னд designer surface ‫ొغ‬ ۞̮І஼Ą̮І஼ឰଋΞͽ૟ෛᛇ̼̮І‫ܧ׶‬ෛᛇ̼̮Іડ̶΍ֽĄ

4-4

Delphi ԣిˢ‫͘ܝ‬Ί

̍‫׍‬ሹĞTool Paletteğ ̍‫׍‬ሹΒӣ۞ีϫ૟‫ם‬ӄଋฟ൴ᑕϡ඀ёĄ఺ֱ΍ன۞ีϫ૟ෛϫ݈۞൪ࢬ ҃‫ؠ‬ĄּтĂт‫ڍ‬ଋϒд designer ߤ࠻˘ܑ࣎ॾĂ֤ᆃ̍‫׍‬ሹ΍ன۞ົߏዋ Ъྍܑॾ۞̮ІĄଋΞͽᗕᑝ˘࣎ଠ‫̮ט‬Іԯιΐ‫ז‬ଋ۞ܑॾ˯Ąт‫ڍ‬ଋϒ д࠻඀ёቅበᏭጡ྆۞඀ёቅĂ֤ᆃ̍‫׍‬ሹົ΍னΞͽΐˢଋ඀ё۞඀ёቅ ͯ߱Ą

ҋᄦ۞̮І ੵ˞ Delphi 8 for .NET щ྅۞̮ІͽγĂଋΞͽ૟ҋᄦ۞̮Іٕ‫˧ם‬ᇄથ΍ ‫̮۞ݡ‬Іΐˢ̍‫׍‬ሹĂ֭ᐼхдιࣇ૞ᛳ۞ᙷҾ̚Ą

̮Іᇹ‫ۍ‬ ଋΞͽϡ˘ٕ࣎к̮࣎І‫ޙ‬ϲᇹ‫(ۍ‬template)Ąдܑॾ˯щଵр̮Іăన‫ؠ‬ ιࣇ۞ᛳّăᆷрιࣇ۞඀ёቅ̝‫ޢ‬ĂଋΞͽ૟ιࣇᐼхј˘̮࣎Іᇹ‫ۍ‬Ą ‫ޢـ‬ĂΪࢋд̍‫׍‬ሹᏴ‫࣎఺פ‬ᇹ‫ۍ‬ĂಶΞͽд˘࣎Վូ྆૟఺ְֱА‫ޙ‬ၹр ۞ ̮ І ‫ ٸ‬д ܑ ॾ ˯ ć Т ॡ ٙ ѣ ࠹ ᙯ ۞ ᛳ ّ (property) ‫ ְ ׶‬І ఍ ந ඀ ё ቅ (event-handling code)ౌົΐ‫ז‬ଋ۞૞९྆ĄଋΞͽ࣎Ҿгࢦາщଵ఺ֱ̮ І۞ҜཉĂన‫ؠ‬ιࣇ۞ᛳّĂ֭‫ޙ‬ϲٕ࣒Լιࣇ۞ְІ఍ந඀ёቅĂಶညι ࣇߏ࣎Ҿ‫ٸ‬ཉ۞˘ᇹĄ

‫ۏ‬ІᑭෛጡĞObject Inspectorğ ‫ۏ‬Іᑭෛጡឰଋన‫ؠ‬నࢍഇม۞ᛳّĂͽ̈́‫ޙ‬ϲ̮І۞ְІ఍ந඀ԔĄ఺೩ ֻ˞ᑕϡ඀ё۞ෛᛇγ៍ᄃឰᑕϡ඀ёેҖ۞඀ёቅ‫׌‬۰̝ม۞ాඕĄ‫ۏ‬І ᑭෛጡΒӣ‫࣎׌‬ᇾចࢱĈProperties ‫ ׶‬EventsĄ ֹϡ Properties ࢱΞͽՀԼ̮І۞ᛳّĄֶፂଋ۞ᏴፄĂѣֱᙷҾឰଋд͛ ф͞๴྆ᏮˢࣃĂѣֱ‫ߏ݋‬ᅮࢋଋд˭ٛё͞๴྆Ᏼፄߙ࣎ࣃĄ၆ Boolean

IDE ̝ॠ

4-5

ྻზ҃֏Ăଋࢋд True ‫ ׶‬False ̝มү̷ೱĄតՀԆ̮І۞ᛳّࣃ̝‫ޢ‬Ăଋ Ξͽ‫ޙ‬ϲְІ఍ந඀Ԕͽଠ‫̮ט‬І۞ྻүĄ ֹϡ Events ࢱΞͽ޽‫ؠ‬ଋᏴፄ۞‫ۏ‬І۞ְІĄт‫̏ڍ‬གྷѣְІ఍ந඀ԔĂ‫݋‬ ֹϡ˭ٛё͞๴Ᏼፄ‫˘׎‬Ąд࿰నଐ‫˭ڶ‬Ăѣֱ‫ۏ‬Іᑭෛጡ྆۞ᏴีົԶᝑ ੓ֽĂଋΞͽдᙷҾय़۞ΐཱི (+) ᕇ˘˭ԯᏴีणฟĄ ѣֱ‫ܧ‬ෛᛇ̼۞̮Іּт Borland Data ProvidersĂΞឰଋԣిх‫פ‬በᏭጡ т Connection Editor ‫ ׶‬Command Text EditorĄଋΞͽд‫ۏ‬Іᑭෛጡ‫ొغ‬ ۞ Designer Verb ડાֹϡ఺ֱበᏭጡĄ୬ฟୁ఺ֱበᏭጡĂ૟ଋ۞ഫᇾொ ‫ז‬በᏭጡЩჍ˯ࢬۡ‫ז‬ഫᇾតј˘੸͘ॡĂበᏭጡಶົតј˘࣎ాඕĄٕ۰Ă ଋΞͽΠᑝ‫ܧ‬ෛᛇ̼̮ІĂ૟໣ဂொ‫࠹ז‬ᙯా۞በᏭጡ֭Ᏼ‫פ‬ιĄኛ‫ڦ‬ຍĂ ֭‫ܧ‬ٙѣ۞‫ܧ‬ෛᛇ̼̮Іౌѣ࠹ᙯా۞በᏭጡĄੵ˞በᏭጡͽγĂ఺ડા˵ Ξͽѣ෹ాඕពϯҋࢎ۞̮ІበᏭጡăୁજ˘࣎ web შࢱăͽ̈́ពϯ၆ྖ͞ ๴Ą

‫ۏ‬ІᚗऱĞObject Repositoryğ ࠎᖎ̼ฟ൴ĂDelphi 8 for .NET ೩ְֻАనࢍр۞ᇹ‫ۍ‬ăܑॾ̈́‫ี΁׎‬ϫĂ ឰଋΞͽ‫ޝ‬ट‫ֹ֭଀פٽ‬ϡ‫ٺ‬ଋ۞ᑕϡ඀ё̚Ą‫ۏ‬ІᚗऱΞϤ File -> New -> Other х‫פ‬Ąѩॡ˘࣎ New Item ၆ྖ஼૟ົ΍னĄଋ˵ΞͽགྷϤΠᑝ‫ۏ‬ Іᚗऱ၅࠻በᏭᏴีĂበᏭ‫ۏ‬Іᚗऱ྆ߊѣ۞‫ۏ‬ІٕொੵιĄ ොĈᔵ൒ѩ၆ྖ஼ΨઇNew ItemsĂ၁ᅫ˯ιಶߏ‫ۏ‬ІᚗऱĄ

‫ۏ‬Іᚗऱ̰ొ ‫ۏ‬ІᚗऱΒӣ۞ีϫஉᄏଋΞͽฟ൴۞.NET ᑕϡ඀ё۞ٙѣᙷ‫ݭ‬ĄιΒӣ ᇹ‫ۍ‬ăܑॾă‫׶‬ధк‫ี΁׎‬ϫĄଋΞͽ‫ޙ‬ϲ૞९тᙷҾऱăଠ‫̮ט‬Іऱăଠ ‫ט‬έᑕϡ඀ёăHTML შࢱăͽ̈́ధк‫ֹ΁׎‬ϡᇹ‫ۍ‬ฟ൴۞૞९Ą

4-6

Delphi ԣిˢ‫͘ܝ‬Ί

‫ۏ‬Іᚗऱᇹ‫ۍ‬ ଋΞͽ૟ଋҋ̎۞‫ۏ‬Іΐˢ‫ۏ‬Іᚗऱઇࠎᇹ‫ۍ‬Ăͽ‫ࢦܮ‬ኑֹϡٕߏᄃ‫΁׎‬ฟ ൴۰̶ֳĄࢦኑֹϡ‫ۏ‬Іឰଋд‫ޙ‬ϲᑕϡ඀ёछ୉ॡֹϡ࠹Т۞ֹϡ۰̬ࢬ ‫׶‬ΑਕĂтѩΞഴ͌ฟ൴ॡม֭Լච‫ݡ‬ኳĄ

૞९გநࣶĞProject Managerğ ˘࣎૞९ߏϤధкᑕϡ඀ёᑫ९௡јĄ૞९გநࣶឰଋ၅࠻֭௡ᖐଋ۞૞९ ᑫ९ĂтܑॾăેҖᑫăassemblyă‫ۏ‬І‫ ׶‬library ᑫ९Ąд૞९გநࣶ྆Ă ଋΞͽΐˢăொੵă‫ࢦ׶‬າ‫׻‬Щᑫ९Ąଋ˵Ξͽ૟࠹ᙯ۞૞९௡Ъј૞९ཏ ௡ĂтѩଋΞͽТॡበᛌιࣇĄ

ΐˢણ໰ (Reference) ଋΞͽ૟ଋߊѣ۞ COM Ҩ‫ڇ‬ጡ‫ ׶‬ActiveX ଠ‫̮ט‬ІፋЪ‫ז‬ᑕϡ඀ё̚Ąᖣ Ϥ૟‫إ‬Ϗৼˢგந۞(unmanaged) DLL ۞ણ໰ΐ‫ז‬ଋ۞૞९̚Ă൒‫ޢ‬ᕱᜓ‫׎‬ ̚۞ᙷ‫ݭ‬Ăಶညଋдజგந۞(managed) assembly ྆ᕱᜓ˘ᇹĄᏴ‫ פ‬Project -> Add Reference ͽፋЪଋߊѣ۞ COM Ҩ‫ڇ‬ጡٕ ActiveX ଠ‫̮ט‬ІĄٕ۰Ă ଋ˵ΞͽΠᑝ૞९გநࣶ྆۞ Reference ӇĂ൒‫ ޷ޢ‬Add ReferenceĄଋΞ ͽֹϡѩপّΐˢ‫۞΁׎‬.NET assembliesăCOM/ActiveX ̮Іăٕ‫ݭ‬ၗऱ (type libraries)Ą

૟ણ໰ኑᄦ‫ז‬ώгྮश дેҖॡഇĂٙѣ۞ assembly υืд૞९۞Ꮾ΍ྮशĂٕߏдొཌ۞ Global Assemble Cache (GAC)྆Ąд૞९გநࣶ྆ĂଋΞͽΠᑝ˘࣎ assembly ֭ ֹϡ Copy Local న‫ؠ‬૟ણ໰ኑᄦ‫ז‬ώг۞Ꮾ΍ྮशĄኛᏲ໰ͽ˭۞ࣧ‫ֽ݋‬ ՙ‫ؠ‬ણ໰ߏӎυืኑᄦĈ y

т‫ڍ‬ણ໰ົјࠎΩ˘࣎૞९྆யϠ۞ assemblyĂᏴፄ Copy Local న‫ؠ‬Ą

y

т‫ ڍ‬assembly д GAC ྆Ăኛ̙ࢋᏴፄ Copy Local న‫ؠ‬Ą

IDE ̝ॠ

4-7

ΐˢ Web ણ໰ ଋΞͽԣిг૟Webણ໰ΐ‫ז‬ଋ۞‫͗މ‬ბᑕϡ඀ё྆Ă֭х‫פ‬ଋຐࢋ۞Web ServiceĄ༊ଋΐˢ˘࣎Webણ໰ॡĂଋົԯೡࢗߙ˘প‫ؠ‬Web Service۞ WDSL͛І๗ˢଋ۞‫͗މ‬ბᑕϡ඀ё྆Ą˘όଋ๗ˢWDSL͛ІĂDelphi 8 for .NET૟யϠٙѣଋ‫ײ‬ΨྍWeb Serviceᅮࢋ۞̬ࢬ‫ᙷ׶‬Ҿ۞‫ؠ‬ཌྷĄ୬ֹϡ ΐˢWebણ໰۞পّĂኛϤ૞९გநࣶΠᑝWeb Services༼ᕇĄ

Data Explorer Data Explorer ឰଋᕱᜓफ़ऱҨ‫ڇ‬ጡ۞ჩࢋ‫ۏ‬ІĂΒ߁ܑॾă᛼Ҝăstored procedure ‫ؠ‬ཌྷătriggers ‫׶‬৶͔Ąֹϡ̰टᏴಏ(context menu)ĂଋΞͽ‫ޙ‬ ϲ‫׶‬გநྤफ़ऱాቢĄଋ˵Ξͽ૟ྤफ़ଂྤफ़ֽ໚ (data source) ‫ٳ‬Ѣ‫ז‬૞ ९྆Ăͽԣి‫ޙ‬ϲଋ۞ྤफ़ऱᑕϡ඀ёĄ

඀ёቅበᏭጡĞCode Editorğ ඀ёቅበᏭጡ೩ֻ˞၅࠻‫࣒׶‬Լ඀ёቅ۞‫ܮ‬Ӏ͞ёĄιߏ˘࣎ጾѣԆБΑ ਕăΞֶᅮࢋࢎү۞ ANSI በᏭጡĂ೩ֻΎពᄬ‫(ڱ‬syntax highlighting)ăк ࢦೇࣧ(multiple undo)ਕ˧ăͽ̈́඀ёᄬ֏̮৵۞ context-sensitive ᅃӄᄲ ‫ځ‬Ą

4-8

Delphi ԣిˢ‫͘ܝ‬Ί

ฟؕາ۞૞९ ˘ ࣎ ૞ ९ ߏ ధ к ᑫ ९ ۞ ะ Ъ Ă Β ߁ ૞ ९ ᑫ Ğ Щ Ⴭ .bdsproj ğă assemblies ĞSystem.dllğă඀ёྤफ़ऱ (program database) ᑫ९Ğ ЩჍ .pdbğă‫ܧ‬υࢋ ۞ྤ໚ᑫĞ.html, .jpeg, .gifğăેҖᑫĞ ЩჍ .exeğăͽ̈́ధк‫˘΁׎‬੓௡ј ᑕϡ඀ё۞ᑫ९Ą૞९Ξͽдనࢍഇม‫ޙ‬ϲĂٕдበᛌ૞९ࣧؕᑫॡயϠĄ ࠎ‫ם‬ӄฟ൴࿅඀Ă‫ۏ‬Іᚗऱ೩ֻ˞ధкְА‫ؠ‬ཌྷ۞ᇹ‫ۍ‬ăܑॾăᑫ९ă̈́‫׎‬ ΁ีϫĂឰଋΞͽд‫ޙ‬ϲ.NET ᑕϡ඀ёॡֹϡĄ ୬‫ޙ‬ϲ˘࣎າ۞૞९Ăኛдᝌ‫ࢬࢱܓ‬ᕇᑝ NewĂ֭Ᏼፄଋຐ‫ޙ‬ϲ۞ᑕϡ඀ё ᙷ‫ݭ‬ĂٕߏᏴፄ File -> New -> OtherĄ୬ฟୁ˘࣎ߊѣ۞૞९Ăኛдᝌ‫ࢱܓ‬ ࢬᕇᑝ ProjectĂٕߏᏴፄ File -> Open ProjectĄ ώ༼Β߁۞ྤੈт˭Ĉ y

૞९۞‫ݭ‬ၗ

y

ᄃϏৼˢგந۞඀ёቅ˘੓ྻү

ฟؕາ۞૞९

5-1

૞९۞‫ݭ‬ၗ ॲፂଋֹٙϡ۞ Delphi 8 for .NET ‫ۍ‬ώĂଋΞͽ‫ޙ‬ϲ็௚۞ෛ඄ᑕϡ඀ёă ASP .NET Web ᑕϡ඀ёăADO .NET ྤफ़ऱᑕϡ඀ёăWeb Service ᑕϡ ඀ёăͽ̈́ధк‫۞΁׎‬ᑕϡ඀ёĄDelphi 8 for .NET ˵͚೯ assembliesăҋ ࢎ۞̮ІăкࢦેҖჰăͽ̈́ COMĄ୬ᒢྋଋֹϡ۞‫ۍ‬ώѣңপّ‫׍̍׶‬Ă ኛણ҂ http://www.borland.com/delphi_net ٙЕ۞পّܑĄ

ෛ඄ᑕϡ඀ё ଋΞͽֹϡෛ඄ܑॾ‫ޙ‬ϲෛ඄ᑕϡ඀ёĂ೩ֻ఍ந‫੼׶‬ड़ਕ۞̰टពϯĄෛ ඄ᑕϡ඀ёΞͽઇࠎ ADO .NET ྤफ़ऱ۞݈ბĄ ੵ˞‫ٳ‬Ѣ̮І‫׶‬ෛᛇ̼ designers ͽγĂBorland ᔘ೩ֻ˘჌ट‫ޙٽ‬ϲᏴಏ ‫̄׶‬Ᏼಏ۞͞ёĄ.NET Menu Designers ۞ MainMenu ‫ ׶‬ContextMenu ̮ ІឰଋΞͽෛᛇ̼నࢍᏴಏĂ֭ԣిᇤᆷ೩ֻΑਕ۞඀ёቅĄ

ASP .NET Web ᑕϡ඀ё ଋΞͽֹϡ ASP .NET Web ܑॾ‫ޙ‬ϲ Web ᑕϡ඀ёĂ೩ֻϤ Web х‫ྤפ‬फ़ ऱ‫ ׶‬Web ServicesĄWeb ܑॾ೩ֻ Web ᑕϡ඀ё۞ֹϡ۰̬ࢬĂΒӣ HTMLăҨ‫ڇ‬ጡଠ‫̮ט‬Іăͽ̈́ӣᑕϡ඀ёទᏭ۞ᑫ९ĄDelphi 8 for .NET ឰଋ‫ٳ‬Ѣ̮І֭೩ֻдг۞ HTML በᏭĄ

ASP .NET Web Services ᑕϡ඀ё ଋΞͽ‫ޙ‬ϲ Web Service ᑕϡ඀ёĂд Web ็ᅍ̰टт HTML შࢱٕ XML ͛ІĄWeb Service ߏ˘჌ͽ Internet ࠎૄᖂ۞ፋЪ͞‫ڱ‬Ăឰᑕϡ඀ё౅࿅ Web ాତĂֹ֭ϡᇾ໤۞ੈि‫ֽؠם‬ϹೱྤੈĄ Delphi 8 for .NET ೩ֻ‫ޙ‬ϲ SOAP Ҩ‫ڇ‬ጡᑕϡ඀ё۞͞‫(ڱ‬methods)Ăͽᖎ ̼ Web Service ۞‫ޙ‬ϲĄ.asmx ‫׶‬.dlls ᑫ९ົҋજ‫ޙ‬ϲĂ҃ଋΞͽд IDE ྆ ീྏ Web ServiceĂ̙ϡᆷЇң۞‫͗މ‬ბᑕϡ඀ёĄ

5-2

Delphi ԣిˢ‫͘ܝ‬Ί

༊ଋᇤᆷֹϡ̏൴Ҷ۞ Web Service ۞‫͗މ‬ბᑕϡ඀ёॡĂΞͽϡ UDDI ᕱ ᜓጡԱ‫ז‬ೡࢗྍ Web Service ۞ WDSL ֭๗ˢ‫ז‬ଋ۞‫͗މ‬ბᑕϡ඀ё྆Ą

VCL .NET ᑕϡ඀ё ଋΞͽֹϡ VCL ܑॾ‫ޙ‬ϲֹϡ VCL .NET ॰ߛ̮І۞.NET ෛ඄ᑕϡ඀ёĄ Delphi 8 for .NET೩ֻ̏ᕖᆧͷΞેҖ‫ٺ‬.NET॰ߛ˯۞VCL̮ІĂͽᖎ̼‫ޙ‬ ၹ .NETᑕϡ඀ё۞̍үĄ఺ֹଋҺ‫ޙٺ‬ϲҋᄦ̮Іֽ೩ֻᇾ໤۞VCL̮І ਕ˧Ą఺˵ֹ଀ொങWin32 ᑕϡ඀ё‫ז‬.NET۞࿅඀ត଀Հट‫ٽ‬ͷՀΞያĄ

ྤफ़ऱᑕϡ඀ё ൑ኢଋ۞ᑕϡ඀ёֹϡෛ඄ܑॾăWeb ܑॾăٕߏ VCL ܑॾĂDelphi 8 for .NET ѣ‫ޝ‬к̍‫׍‬ᑒӄଋट‫ٽ‬гాତྤफ़ऱăᕱᜓ‫׶‬በᏭྤफ़ऱăેҖ SQL ߤྙăͽ̈́дనࢍഇมពϯϫ݈۞ྤफ़Ą ADO .NET ॰ߛ۞ data provider ឰଋх‫ פ‬MS SQLăOracleăͽ̈́ ODBC ‫ ׶‬OLE DB Ξх‫ྤ۞פ‬फ़ऱĄBorland Data Providers (BDP .NET) ឰଋх ‫ פ‬MS SQLăOracleăDB2 ‫ ׶‬InterBase ྤफ़ऱĄଋΞͽాቢ‫ྤֱ఺ז‬फ़ֽ ໚Ă૟ιࣇ۞ྤफ़ពϯдྤफ़ะ྆Ă֭ϡ SQL ‫΄׻‬ፆү఺ֱྤफ़Ąֹϡ DBP .NET ೩ֻͽ˭р఍Ĉ y

Ξொങ۞඀ёቅĂΪࢋᆷ˘ѨಶΞͽాቢ‫ז‬Їңѣ͚೯۞ྤफ़ऱĄ

y

ฟ‫ٸ‬ё۞ߛၹĂឰଋ೩ֻ‫ྤ΁׎‬फ़ऱր௚۞͚೯Ą

y

ទᏭ˯۞ྤफ़‫ݭ‬ၗĂΞट‫ٽ‬г၆ᑕ‫ז‬.NET ۞ࣧѣ‫ݭ‬ၗ(native types)Ą

y

˘࡭ّ۞ྤफ़‫ݭ‬ၗĂΞ၆ᑕ‫ז‬Ч჌ѣ͚೯ዋ༊‫ݭ‬ၗ۞ྤफ़ऱĄ

y

̙ည OLE DBĂ̙ᅮࢋ˘ᆸ COM/InteropĄ

ֹ ϡ VCL ܑ ॾ ‫ ׶‬VCL .NET ॰ ߛ ̮ І ॡ Ă ଋ Ξ ͽ ϡ BDE .NET ă dbExpress .NET ‫ ׶‬Midas Client for .NET ాቢԫఙֽᕖणྤफ़ऱ۞͚೯Ą

ฟؕາ۞૞९

5-3

ͽሀ‫ݭ‬ᜭજ۞ᑕϡ඀ё ሀ๬ (modeling) ߏ˘࣎ϡֽೡࢗహវనࢍ࿅඀۞ЩෟĄฟ൴˘࣎హវր௚ ۞ሀ‫ֽ࡭̂ݭ‬ᄲಶߏనࢍर (architect) ࠎ˘࣎̂‫۞ݭ‬ฟ൴૞९‫ޙ‬ϲ˘௡న ࢍဦĄಶည˘௡నࢍဦਠâ࣎ሀ‫̙ݭ‬Ϊߏೡࢗր௚۞̂ໄĂТॡ˵ឰଋჸ ൏дߙֱপ‫۞ؠ‬г͞Ăтඕၹ‫׶‬Җࠎ˯۞௟༼Ąሀ‫ݭ‬ឰٙѣдฟ൴ೈᒖ྆۞ ણᄃ۰ଂЇңপ‫۞ؠ‬඀ёᄬ֏Ğͽ̈́ࠤҌপ‫ؠ‬ԫఙ۞ߙֱᆸѨğ٩ᗓ΍ֽĂ ౌΞͽϡТᇹ۞ᄬ֏໛఼Ą Borland ۞ Model Driven Architecture (MDA) ೡࢗ˞˘჌ሀ๬̍‫׍‬ԆБፋ Ъ‫ז‬ฟ൴ᒖဩ྆۞హវ̍඀͞ёĄMDA ߏಛᖒ Borland ۞ Enterprise Core Objects (ECO) ॰ߛనࢍ۞ĄECO ॰ߛߏ˘௡̬ࢬăᙷҾ‫׶‬ҋࢎᛳّĂ೩ֻ ଋ۞ᑕϡ඀ё‫ ׶‬IDE ᄃሀ๬ѣᙯ۞পّ̝ม໛఼۞፜ሇĄ ECO পّΒ߁Ĉ y

ሀ‫ᙷ۞ݭ‬Ҿăᛳّ‫׶‬ᙯాĂ‫ז‬ᙯాёჩࢋ۞ҋજ၆ᑕĄ

y

ჩࢋᐌ඾ሀ‫ݭ‬Լត۞ҋજႊซĄ

y

‫ޢ‬ბᐼх፟‫۞ט‬ఢॾĄଋΞͽᏴፄ૟‫ۏ‬Іᐼхдᙯాёྤफ़ऱٕߏ XML ᑫ९Ą

y

ሀ‫ ׎׶ݭ‬Object Constraint Language (OCL) ܑϯё‫ٺ‬నࢍഇม۞ඕၹ ቁᄮĄ

y

OCL ܑϯё‫ેٺ‬Җഇม۞ቁᄮĄ

y

˘჌ְІ፟‫ט‬Ăឰଋд‫ۏ‬ІາΐˢăԼតăٕொੵॡќ‫఼ۢז‬Ą

Delphi 8 for .NET IDE Ъ‫ ˞׀‬ECO ॰ߛĂͽ೩ֻ˘࣎ፋЪ۞γ៍ឰଋฟ൴ ଋ۞ᑕϡ඀ёሀ‫ݭ‬ĄIDE ‫۞΁׶‬ሀ๬γ៍পّΒ߁Ĉ

5-4

y

‫ޙ‬ϲͽሀ‫ݭ‬ᜭજ۞ᑕϡ඀ёĂઇࠎ˘჌າ۞૞९Ą

y

ۡତд surface ˯‫ޙ‬ϲᙷҾဦĂ֭ፆүሀ‫̮۞ݭ‬৵ĞӈइІ‫ᙷ׶‬ҾğĄ

y

дᙷҾဦ˯ΐˢăொੵ‫׶‬ԼតᙷҾ۞ᛳّ‫ڱ͞׶‬Ą

Delphi ԣిˢ‫͘ܝ‬Ί

y

ࣧؕቅ‫׶‬ሀ๬γ៍̝ม۞ᗕШՀາĄࣧؕቅ۞Հજົͅߍдဦԛ̼۞ೡ ࢗ˯Ă̝ͅϺ൒Ą

y

ሀ‫̮ݭ‬৵‫ؕࣧ׶‬ቅ̝ม۞ᗕШ၅࠻ĄଋΞͽଂሀ‫̮ݭ‬৵۞ဦԛ̼ೡࢗۡ ତ၅࠻ι၆ᑕ۞ࣧؕቅĄТᇹгĂଋΞͽଂࣧؕቅ྆̏གྷሀ๬۞ᙷҾۡ ତ၅࠻ιдሀ๬γ៍˯۞ဦԛĄ

y ‫ڦ‬ຍ

ֹϡ XMI 1.1 ๗΍‫׶‬๗ˢሀ‫ݭ‬Ą

֭‫ܧ‬ٙѣ۞ Delphi 8 for .NET ‫ۍ‬ώౌ೩ֻٙѣ۞ሀ๬পّĄࢋۢ྽ଋ۞ய‫ݡ‬ ‫ۍ‬ώѣֱࣹሀ๬পّĂኛણ҂ www.borland.com/delphi_net ٙЕ۞পّܑĄ

Assemblies ˘࣎ assembly ߏ˘࣎‫ޝ‬ည DLL ᑫ९۞ទᏭइІĂΒӣ୻ಏ(manifests)ăሀ ௡ăΞொങ۞ેҖᑫ(PE)ăͽ̈́ྤ໚ᑫ(.html, .jpeg, .gif)ĂΞϡֽొཌ‫׶‬ડ ̶‫ۍ‬ώĄ˘࣎ᑕϡ඀ёΞͽѣ˘ٕк࣎۞ assembliesĂ҃఺ֱ assemblies ˵ Тॡజ˘ٕк࣎ᑕϡ඀ёٙણ໰Ă఺‫פ‬ՙ‫ ٺ‬assemblies ߏӎҜ‫ٺ‬ᑕϡ඀ё۞ ϫᐂٕд˘࣎ global assembly cache (GAC) ྆Ą

ᗝγ۞૞९ ੵ˞˯ࢗ۞૞९ᙷ‫ݭ‬ĂDelphi 8 for .NET ೩ֻᇹ‫ޙͽۍ‬ϲᙷҾऱăଠ‫̮ט‬І ऱăଠ‫ט‬έᑕϡ඀ёăVisual Basic ᑕϡ඀ёăಡܑă͛фᑫ‫΁׎׶‬Ą఺ֱ ᇹ‫ۍ‬ᐼхд‫ۏ‬ІᚗऱĂଋΞͽᏴፄ File -> New -> Other х‫פ‬ιࣇĄ

Ϗৼˢგந۞඀ёቅᄃ COM/Interop Ϗგந۞඀ёቅ‫׶‬՟ѣͽ.NET Framework Common Language Runtime (CLR)ࠎϫᇾ۞ᑕϡ඀ёѣᙯĄCOM/Interop ߏ˘჌.NET ‫ڇ‬ચĂឰజგந ۞‫׶‬Ϗజგந۞඀ёቅ̝มΞͽ൑ม۞̢࠹ྻүĄCOM/Interop ‫ڇ‬ચឰଋ дᑕϡ඀ё྆ྻϡனѣ۞ COM Ҩ‫ڇ‬ጡ‫ ׶‬ActiveX ଠ‫̮ט‬ІĂ֭ឰ็௚۞Ϗ జგந۞ᑕϡ඀ёΞͽ࠻଀‫ז‬.NET ̮ІĄDelphi 8 for .NET IDE Βӣ̍‫׍‬

ฟؕາ۞૞९

5-5

‫ם‬ӄଋ૟ଋߊѣ۞ COM Ҩ‫ڇ‬ጡ‫ ׶‬ActiveX ଠ‫̮ט‬ІፋЪ‫ז‬జგந۞ᑕϡ඀ ё྆ĄΩγĂଋΞͽԯϏგந۞ DLL ۞ણ໰ΐ‫ז‬ଋ۞૞९྆Ă൒‫ޢ‬ᕱᜓ‫̚׎‬ ۞ᙷ‫ݭ‬Ăಶညଋдజგந۞ assemblies ྆ᕱᜓ˘ᇹĄ

5-6

Delphi ԣిˢ‫͘ܝ‬Ί

඀ёቅበᏭጡ ඀ёቅበᏭጡ೩ֻ˞၅࠻‫࣒׶‬Լ඀ёቅ۞‫ܮ‬ӀّĄιߏ˘࣎ጾѣԆБΑਕă Ξֶᅮࢋࢎү۞ ANSI በᏭጡĂ೩ֻΎពᄬ‫ڱ‬ăкࢦೇࣧਕ˧ăͽ̈́඀ёᄬ ֏̮৵۞ context-sensitive ᅃӄᄲ‫ځ‬Ą ༊ଋనࢍᑕϡ඀ё۞ֹϡ۰̬ࢬॡĂDelphi 8 for .NET யϠ‫۞˭غ‬඀ёቅĄ ༊ଋ࣒Լ‫ۏ‬І۞ᛳّॡĂ఺ֱԼតົҋજͅߍ‫ז‬඀ёቅĄ Яࠎଋٙѣ۞඀ёົ̶ֳВТ۞পّĂDelphi 8 for .NET ֻᑕҋજயϠ۞඀ ёቅֽᑒӄଋฟؕүຽĄኛ̙ࢋ࣒Լ Initialize Components ͞‫̚ڱ‬ҋજயϠ ۞඀ёቅĄтѩົдଋᕇᑝ Design ᇾចࢱॡౄјܑॾ۞ঐεĄଋΞͽԯҋ જயϠ۞඀ёቅຐј‫ޙ‬ϲ඀ёॡ۞ਨ९Ą ඀ёቅበᏭጡ೩ֻͽ˭۞Αਕ‫ם‬ӄଋᇤᆷ඀ёĈ y

எˢ඀ёቅ

y

ᙷҾԆј

y

඀ёቅᕱᜓ

y

඀ёቅͯ߱

඀ёቅበᏭጡ

6-1

y

඀ёቅԶᝑ

y

‫ޞ‬఍ந୻ಏ

y

ᔣᑝ۞λะ

எˢ඀ёቅĞCode Insightğ எˢ඀ёቅ޽۞ߏ඀ёቅበᏭጡ྆۞˘௡পّĂдᇤᆷ඀ё۞࿅඀̚೩ֻ‫ם‬ ӄĄ఺ֱপّົពϯ context-sensitive ۞ᇅ΍ёෛ඄֭೩ֻͽ˭‫ڇ‬ચĈ y

‫ם‬ӄԱ‫ז‬ଋԓ୕ΐˢ඀ёቅ྆۞૱ϡୃࢗĄ

y

‫ם‬ӄᏴፄᛳّ‫ڱ͞׶‬Ą

y

ពϯߙপ‫ᙷؠ‬ҾΞϡ۞ְІĄ

y

೩ֻᙊҾф۞‫ކ‬ӘྤੈĄ

୬ֹϡஎˢ඀ёቅ۞পّĂኛᏴ Tools -> Options ֭ᕇᑝ Code InsightĄ

ᙷҾԆјĞClass Completionğ ᙷҾԆј۞পّᑒӄଋࠎ‫ކ‬Ә۞ᙷҾјࣶயϠ੻ߛ(skeleton)඀ёቅĂͽᖎ̼ ‫ؠ‬ཌྷ‫׶‬၁үາᙷҾ۞࿅඀Ą૟ഫᇾ‫ٸ‬дಏ̮(unit)۞̬ࢬડા۞ᙷҾ‫ކ‬Ә˯Ă ֭޷˭ CTRL+SHIFT+CĂЇң‫إ‬ϏԆј۞ᛳّ‫ކ‬ӘಶົజԆјĂ҃ͷ၆Їңᅮ ࢋ၁ү۞͞‫ֽڱ‬ᄲĂ۩۞͞‫ົڱ‬జΐ‫ז‬၁үડા྆Ą

඀ёቅᕱᜓ ༊ଋֹϡ඀ёቅበᏭጡֽበᏭ˘࣎ VCL ܑॾᑕϡ඀ёॡĂΞͽ޷඾ CTRL ᔣᔣ֭૟໣ဂொ‫ז‬Ї˘ᙷҾăតᇴăᛳّă͞‫ڱ‬ăٕ‫΁׎‬ᙊҾф۞˯͞Ąѩ ॡ໣ဂ޽ᇾតј˘੸͘ĂᙊҾфజࡎព΍ֽ֭ͷ‫ొغ‬൪ቢć޷˭໣ဂĂ඀ё ቅበᏭጡಶົྯ‫ྍז‬ᙊҾф۞‫ކ‬ӘĂෛᅮࢋฟୁࣧؕᑫ९Ąଋ˵ΞͽΠᑝߙ ᙊҾф֭Ᏼፄ Find DeclarationĄ

6-2

Delphi ԣిˢ‫͘ܝ‬Ί

඀ёቅᕱᜓΞͽԱ‫֭ז‬ฟୁ่Ҝд૞९۞ Search ྮशٕ Source ྮश྆Ăٕ ߏώய‫ ۞ݡ‬Browsing ٕ Library ྮश྆۞ಏ̮Ąϫᐂ૟޷ͽ˭ึԔຩವĈ 1 ૞९۞ Search ྮशĞProject -> Options -> Directories/ConditionalsğĄ 2 ૞९۞ Source ྮशĞ૞९ᐼх۞ϫᐂğĄ 3 ᇃા۞ Browsing ྮशĞTools -> Options -> LibraryğĄ 4 ᇃા۞ Library ྮशĞTools -> Options -> LibraryğĄ Library ྮश่д IDE ྆՟ѣ૞९ฟୁॡ̖జຩವĄ඀ёቅᕱᜓ൑‫ڱ‬Ա‫ז‬າ ۞ă‫إ‬Ϗᐼх۞ಏ̮ᑫ९྆۞ᙊҾфĂТॡιдइІ(package)૞९྆˵՟ѣ үϡĄ ѩγĂ඀ёቅበᏭጡѣᙷҬ‫ ΁׎‬Web ᕱᜓጡ྆۞΍ன۞ᕱᜓ޷ตĄ୬ពϯ఺ ֱ޷ตĂኛΠᑝ IDE ̍‫׍‬Е۞Їຍ۩Ϩડા֭Ᏼፄ BrowserĄ༊ଋдధкᑫ ९̝ม̷ೱॡĂ඀ёቅበᏭ૟ܲ঻ଋഅགྷ‫ז‬࿅۞඀ёቅҜཉĄଋΞͽ޷˭ᕱ ᜓ޷ตय़۞˭ٛ቏ᐝĂд఺ֱ።Ϋ੃ᐂ྆‫ޢـٕ݈ـ‬ொજĄ

඀ёቅͯ߱ĞCode Snippetsğ ඀ёቅͯ߱ߏ޽૱ϡт ifăwhileăfor ୃࢗඈΞͽΐ‫ז‬඀ё྆۞඀ёቅୃࢗĄ ༊඀ёቅበᏭጡฟୁॡĂଋΞͽᗕᑝ̍‫׍‬ሹ˯۞ߙ˘඀ёቅͯ߱Ă૟ιΐ‫ז‬ ଋ۞඀ё̚Ąଋ˵Ξͽ‫ޙ‬ϲᛳ‫ٺ‬ҋ̎۞඀ёቅͯ߱ĂӈᏴ‫פ‬඀ёቅበᏭጡ྆ ۞඀ёቅĂ֭޷˭ ALT ᔣĂ૟఺ֱ඀ёቅٛ‫׍̍ז‬ሹ˯Ą

඀ёቅԶᝑĞCode Foldingğ ඀ёቅԶᝑឰଋ૟඀ёቅ߱རԶᝑ੓ֽĂͽ‫ޙ‬ϲ඀ёቅ۞ลᆸёᑭෛĂ֭ឰ ଋՀट‫ٽ‬ዦ᝝‫׶‬ፆଠ඀ёቅĄԶᝑ੓ֽ۞඀ёቅ֭՟ѣజӁੵĂΪߏᔳᖟ੓ ֽĄ୬ֹϡ඀ёቅԶᝑĂኛ޷඀ёቅय़۞ΐഴ௑ཱིĄ

඀ёቅበᏭጡ

6-3

‫ޞ‬఍ந୻ಏĞTo-Do Listsğ ˘࣎‫ޞ‬఍ந୻ಏ੃ᐂ˞ߙ૞९υืԆј۞̍үีϫĄ૟ߙ˘̍үΐ‫ޞז‬఍ந ୻ಏ‫ޢ‬ĂଋΞͽበᏭྍ̍үă૟ι‫זٸ‬ଋ۞඀ё྆༊үොྋăᇾϯι̏Ԇјă ͽ̈́૟ιଂ୻ಏ̚ொੵĄଋΞͽ࿅ᕭѩ୻ಏͽಏಏពϯଋຏᎸ኷۞̍үĄ

ᔣᑝ۞λะĞKeystroke Macrosğ ༊በᏭ඀ёॡĂଋΞͽᐂᄦ˘րЕ۞ᔣᑝઇࠎ˘࣎λะĄдᐂᄦ˘࣎λะ̝ ‫ޢ‬ĂଋΞͽдϫ݈۞ IDE session ྆ᇫ‫ٸ‬ιͽࢦኑ఺ֱ࠹Т۞ᔣᑝĄᐂᄦ˘ ࣎λะ૟ᖬᄏ̝݈ᐂᄦ۞λะĄ

6-4

Delphi ԣిˢ‫͘ܝ‬Ί

ᅃӄᄲ‫ੈྤ۞ځ‬ ѩ༼Βӣͽ˭ྤੈĈ y

ࢦາనࢍ۞ Delphi 8 for .NET ᅃӄᄲ‫ځ‬

y

Microsoft .NET Framework SDK ᅃӄᄲ‫ځ‬

y

Borland ฟ൴۰͚೯‫ڇ‬ચ̈́შ৭

y

Delphi 8 for .NET ԣిˢ‫͔޽ܝ‬

y

ᅃӄᄲ‫۞ځ‬ଵ‫ۍ‬ၚּ

ࢦາనࢍ۞ Delphi 8 for .NET ᅃӄᄲ‫ځ‬ Delphi 8 for .NET ᅃӄᄲ‫̏ځ‬གྷజࢦາ‫ޙ‬ၹĂ̰टΒ߁ໄ‫۞ه‬ტ៍ă඀Ԕ۞ ޽͔ăͽ̈́ણ҂۞ྤੈĂֶፂଋ࣎ˠ۞ᅮࢋ೩ֻଋ˘ਠٕপ‫ੈྤ۞ؠ‬Ą ੵѩ̝γĂᅃӄᄲ‫ځ‬ෛ඄྆۞ navigation ͞ॾឰଋՀट‫ٽ‬ຩವ‫׶‬࿅ᕭྤੈĄ д࿰నଐԛ˭՟ѣన‫ؠ‬࿅ᕭ୧ІĂଋΞͽ၅࠻ٙѣ̏щ྅۞ᄲ‫ځ‬Ą൒҃Ăࡶ ࢋдຩವᅃӄᄲ‫ֹٕځ‬ϡ৶͔ॡᒺ̈ቑಛĂΞͽϡ ContentăSearchă‫ ׶‬Index

ᅃӄᄲ‫ੈྤ۞ځ‬

7-1

͞ॾ྆۞˭ٛёᏴಏ࿅ᕭቑಛĄ୬ពϯ navigation ͞ॾĂኛᏴ View -> NavigationĄ

ໄ‫۞ه‬ტ៍ ෛໄ‫۞ه‬ტ៍೩ֻ۞ྤੈߏᙯ‫ٺ‬ய‫ߛݡ‬ၹă̮Іă‫׶‬ᖎ̼ฟ൴۞̍‫׍‬Ąт‫ڍ‬ ଋߏߙฟ൴ᅳા۞າ͘Ăּтሀ๬ٕ ADO .NETĂኛ࠻ቢ˯ᅃӄᄲ‫ځ‬Տ࣎ౢ ༼ฟؕ۞ტ៍͹ᗟĄ д̂ొ̶ტ៍۞ඕԍĂଋົ൴னᄃྍ͹ᗟ࠹ᙯͷՀஎˢ۞ాඕĄ఺ֱాඕົ ా‫ז‬.NET SDKă‫˧ם‬ᇄથ۞ᅃӄᄲ‫ځ‬ăᔘߏߙ࣎შ৭Ăົϡဦϯܑன΍ֽĄ ώ͹ᗟൾ‫ົޢ‬ྋᛖ఺ֱဦϯĄ

඀Ԕ۞޽͔ ඀Ԕ۞޽͔೩ֻ޷Վ۞޽ϯĄ၆Β߁ధк̄Їચ۞ฟ൴̍ү҃֏Ăѣֱ८͕ ඀Ԕ(core procedures)ࢋઇĂ֭ͷߏᅮࢋ˘ֱ̄ЇચֽԆј˘Іྵ̂۞Ї ચĄт‫ڍ‬ଋϒฟؕ˘࣎ฟ൴૞९Ă֭ຐۢ྽ᅮࢋֱࣹՎូĂኛ࠻ྍᅳા۞८ ͕඀ԔĄ ੵ˞८͕඀ԔͽγĂᔘѣధкಏ˘Їચ۞඀ԔĄ ٙѣ۞඀Ԕౌ‫ٸ‬дᅃӄᄲ‫ځ‬ෛ඄྆ Content ͞ॾ۞ Procedure ᇾᗟ̝˭Ąѩ γĂ̂ొ̶ໄ‫۞ه‬ტ៍ౌ೩ֻ࠹ᙯ඀Ԕ۞ాඕĄ

ણ҂͹ᗟ ણ҂͹ᗟ೩ֻ API ̮৵ăDelphi ᄬ֏‫׶‬በᛌ޽΄ඈ͹ᗟ۞ྎ௟ྤੈĄ ٙѣ۞ણ҂͹ᗟౌ‫ٸ‬дᅃӄᄲ‫ځ‬ෛ඄྆ Content ͞ॾ۞ Reference ᇾᗟ̝ ˭Ąੵѩ̝γĂ̂ొ̶ᅃӄᄲ‫ ۞྆ځ‬API ણ໰ౌົ൪‫غ‬ቢ֭ۡତాඕ‫ז‬ዋ༊ ۞ણ҂͹ᗟĄ

7-2

Delphi ԣిˢ‫͘ܝ‬Ί

Context Sensitive ۞ F1 ᅃӄᄲ‫ځ‬ Context sensitive ᅃӄᄲ‫ځ‬д IDE ྆ΞͽАᏴߙีϫГ޷ F1 ᔣĈ y

д඀ёቅበᏭጡ྆ĂᏴ‫פ‬ፋ̮࣎৵Ăּтߙ࣎ namespaceăᙯᔣфăٕ ͞‫ڱ‬ĂГ޷ F1

‫ڦ‬ຍ

y

дܑॾ۞ Design ᇾចࢱ˯Ᏼ‫̮פ‬ІĂГ޷ F1

y

дੈिෛ඄྆Ᏼ‫ੈ࣎ߙפ‬िĂГ޷ F1

y

д IDE ۞ෛ඄྆т૞९გநࣶٕ Model ViewĂдෛ඄۞ቑಛ྆޷ F1

д VCL .NET ॰ߛ۞̮৵˯޷ F1 ૟ពϯ Delphi 8 for .NET ᅃӄᄲ‫ځ‬ćд.NET ॰ߛ۞̮৵˯޷ F1 ‫݋‬ពϯ Microsoft .NET ᅃӄᄲ‫ځ‬Ą

Microsoft .NET Framework SDK ᅃӄᄲ‫ځ‬ Delphi 8 for .NET ۞ ൴ Ҷ Β ӣ ‫ ׍‬ѣ ̂ ณ ᅃ ӄ ᄲ ‫ ۞ ځ‬Microsoft .NET Framework SDKĄDelphi 8 for .NET ᅃӄᄲ‫ົځ‬дዋ༊۞г͞Ă೩ֻ‫ז‬.NET Framework SDK ቢ˯ᅃӄᄲ‫ా۞ځ‬ඕĄ࠹ͅгĂଋΞͽۡତଂ Start -> Programs -> Microsoft .NET Framework SDK -> Documentation х‫פ‬Ԇፋ ۞.NET Framework SDK ቢ˯ᅃӄᄲ‫ځ‬Ą

Borland ฟ൴۰͚೯‫ڇ‬ચ̈́შ৭ Borland ೩ֻధк͚೯ͽ௑Ъᇃ̂ฟ൴ۤཏ۞ᅮࢋĄ୬Ա‫࠹ז‬ᙯ۞͚೯Ăኛ ણ҂ www.borland.com/devsupportĄଂ఺࣎შ৭ĂଋΞͽх‫פ‬ధкฟ൴۰ϡ ֽϹೱྤੈă৪థ‫׶‬ԫఙ۞າჷཏ௡Ąྍშ৭˵Β߁˘րЕ۞ Delphi 8 for .NET ३ᚱăԫఙ͛ౢ‫׶‬૱֍યᗟะ(FAQ)ĄѩγĂଋΞͽх‫ פ‬Borland Developer NetworkĄ

ᅃӄᄲ‫ੈྤ۞ځ‬

7-3

Delphi 8 for .NET ԣిˢ‫͔޽ܝ‬ Delphi 8 for .NET ԣిˢ‫͔޽ܝ‬೩ֻ Delphi 8 for .NET ฟ൴ᒖဩ۞ໄ៍Ăͽ ‫ם‬ӄଋщ྅‫׶‬ϲӈֹϡྍய‫ݡ‬Ąԣిˢ‫͔̏޽ܝ‬дଋᔉ෴ய‫۞ݡ‬ТॡϹ;ග ଋĄ

ᅃӄᄲ‫۞ځ‬ଵ‫ۍ‬ၚּ ͽ˭۞ଵ‫ۍ‬ၚֹּϡ‫ ٺ‬Delphi 8 for .NET ٙѣ۞ቢ˯ᅃӄᄲ‫ځ‬Ĉ ၚּ Monospace type

ϡֽܑϯ ଋυืᏮˢ۞඀ёቅ‫͛׶‬фĄ

௖វ

ܲ঻۞඀ёᄬ֏ᙯᔣфٕበᛌጡᏴีĂ၆ྖ͞๴‫۞׍̍׶‬ણ໰Ą

୆វ

Delphi 8 for .NETᙊҾфĂтតᇴٕᙷ‫ݭ‬ЩჍĄ୆វф˵ϡ‫ٺ‬३ ώ۞ᇾᗟͽ̈́າЩෟ۞ΐૻĄ

̂ᆷ

ᔣሹ˯۞ߙᔣĂּтCTRLٕENTERĄ ‫ז‬შྮྤ໚۞ాඕĄ ‫ז‬Microsoft SDK͛І۞̰ొాඕĄ ‫ז‬Borland‫˧ם‬ᇄથٙ೩ֻ͛І۞γొాඕĄ

7-4

Delphi ԣిˢ‫͘ܝ‬Ί

Related Documents

(8) Gettingstarted
November 2019 15
Gettingstarted
October 2019 25
Gettingstarted
May 2020 11
Gettingstarted
November 2019 15
Gettingstarted
May 2020 12
Gettingstarted Guide
June 2020 4