1 / 10

Samenwerking Win32 en .NET met Delphi en Hydra 3

Samenwerking Win32 en .NET met Delphi en Hydra 3. Bob Swart Bob Swart Training & Consultancy (& Reseller) www.eBob42.com – Bob@eBob42.com. Agenda. Win32 COM in .NET Win32 DLLs in .NET .NET (unsafe) Assemblies in Win32 Hydra 3 Modular client and server applications Plugin framework

sancho
Download Presentation

Samenwerking Win32 en .NET met Delphi en Hydra 3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Samenwerking Win32 en .NET met Delphi en Hydra 3 Bob Swart Bob Swart Training & Consultancy (& Reseller) www.eBob42.com – Bob@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 • 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.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/courseware • stores.lulu.com/drbob42 • Hydra 3 • RemObjects Software • www.RemObjects.com

  10. More… • Free Delphi / RAD Studio Seminar • Vrijdag 6 juni 2008 in Helmond Brandevoort • www.eBob42.com/blog for agenda and details • UNICODE coverage • Delphi 2007 / RAD Studio Training – 4 voor 3 • www.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

More Related