Presentation is loading. Please wait.

Presentation is loading. Please wait.

Samenwerking Win32 en.NET met Delphi en Hydra 3 Bob Swart Bob Swart Training & Consultancy (& Reseller) –

Similar presentations


Presentation on theme: "Samenwerking Win32 en.NET met Delphi en Hydra 3 Bob Swart Bob Swart Training & Consultancy (& Reseller) –"— Presentation transcript:

1 Samenwerking Win32 en.NET met Delphi en Hydra 3 Bob Swart Bob Swart Training & Consultancy (& Reseller) www.eBob42.comwww.eBob42.com – Bob@eBob42.comBob@eBob42.com

2 Agenda •Win32 COM in.NET •Win32 DLLs in.NET •.NET (unsafe) Assemblies in Win32 •Hydra 3 –Modular client and server applications –Plugin framework –Win32 host with (un)managed modules

3 Win32 COM in.NET •Import COM / ActiveX / TLB in.NET –Add Reference – COM Imports •Interop Assembly –Manually using tlbimp •See http://www.drbob42.com/examines/examin37.htm http://www.drbob42.com/examines/examin37.htm •Don’t use COM (anymore) –Lino Tadros: COM is like smoking…

4 Win32 DLLs in.NET •Win32 library project –Example: ZLib •Win32 PWideChar ==.NET String (Unicode!) •.NET import of Win32 DLL –stdcall; external ‘Win32.dll’ –[DllImport( DLL, CharSet=…, CallingConvention=… )] –Virtual Library Interfaces

5 .NET Assemblies in Win32 •Inverse P/Invoke –Only for “unsafe” assemblies •Delphi for.NET library projects •Regasm /tlb –Generate Type Library for.NET Assembly •For.NET class with public interface defined –See http://www.drbob42.com/examines/examin36.htmhttp://www.drbob42.com/examines/examin36.htm

6 Hydra 3 •RemObjects Software –RemObjects SDK –Data Abstract –AnyDAC –Chrome –Hydra 3 •“Expand your projects to the.NET platform without discarding your existing investment in native Delphi/Win32 code.”

7 Hydra 3 •Host Executable –Module Manager •Hydra Module –Module Controller •visual / non-visual or service plug-ins DEMO

8 Summary •Win32 in.NET is easy –.NET is Unicode (Delphi 2008 for Win32 also) •.NET in Win32 is not easy (unless unsafe) •Hydra 3 allows to extend Win32 with.NET –Visual plug-in modules –Non-visual plug-in modules –Service plug-in modules

9 References •Delphi 2006 Development Essentials –PDF courseware manual, chapter 10 •www.eBob42.com/coursewarewww.eBob42.com/courseware •stores.lulu.com/drbob42stores.lulu.com/drbob42 •Hydra 3 –RemObjects Software •www.RemObjects.comwww.RemObjects.com

10 More… •Free Delphi / RAD Studio Seminar –Vrijdag 6 juni 2008 in Helmond Brandevoort •www.eBob42.com/blog for agenda and detailswww.eBob42.com/blog •UNICODE coverage •Delphi 2007 / RAD Studio Training – 4 voor 3 –www.eBob42.com/trainingwww.eBob42.com/training •4 april: VCL Database Development (DBX4) •11 april: VCL for the Web / IntraWeb •18 april: ASP.NET 2.0 (master/content, membership/roles, AJAX) •25 april: XML, SOAP & Web Services


Download ppt "Samenwerking Win32 en.NET met Delphi en Hydra 3 Bob Swart Bob Swart Training & Consultancy (& Reseller) –"

Similar presentations


Ads by Google