Sei sulla pagina 1di 13

Charlotte PowerBuilder Conference

Moving at the Speed of Change May 2015

C# Integration

Powered by Sponsored by
Charlotte PowerBuilder Conference
Moving at the Speed of Change May 2015

Kyle Griffis 2
Charlotte PowerBuilder Conference
Moving at the Speed of Change May 2015

Walk-through using Microsoft Visual C#

Visual Studio Community 2013

Create custom control using Windows Forms Control Library

Integrate custom control into PowerBuilder Classic

Powered by Sponsored by
Charlotte PowerBuilder Conference
Moving at the Speed of Change May 2015

Visual Studio Community 2013 4


Charlotte PowerBuilder Conference
Moving at the Speed of Change May 2015

5
Charlotte PowerBuilder Conference
Moving at the Speed of Change May 2015

6
Charlotte PowerBuilder Conference
Moving at the Speed of Change May 2015

Framework 7
Charlotte PowerBuilder Conference
Moving at the Speed of Change May 2015

Let’s get Started! 8


Charlotte PowerBuilder Conference
Moving at the Speed of Change May 2015

• Short for Globally Unique Identifier


• Used by the Windows registry to identify COM DLLs
• Knowing where to look in the registry and having the
correct GUID yields a lot information about a COM object
(i.e., information in the type library, its physical location, etc.)

GUID 9
Charlotte PowerBuilder Conference
Moving at the Speed of Change May 2015

• Interfaces add a plug and play like architecture into your


applications. Interfaces help define a contract between
your application and other objects. It indicates what sort
of methods, properties and events are exposed by the
object.

InterfaceType 10
Charlotte PowerBuilder Conference
Moving at the Speed of Change May 2015

• Identifies how to expose an interface to COM.


• InterfaceIsIDispatch - Indicates an interface is exposed to COM as a
dispinterface, which enables late binding only.
• InterfaceIsDual is the default value.
• InterfaceIsIUnknown.

ComInterfaceType 11
Charlotte PowerBuilder Conference
Moving at the Speed of Change May 2015

• A delegate is a type that represents references to


methods with a particular parameter list and return type.
• Delegates are used to pass methods as arguments to
other methods.
• Event handlers are nothing more than methods that are
invoked through delegates.

Delegate 12
Charlotte PowerBuilder Conference
Moving at the Speed of Change May 2015

13

Potrebbero piacerti anche