0% found this document useful (0 votes)
38 views13 pages

C# Integration: Charlotte Powerbuilder Conference

The document is about a PowerBuilder conference in Charlotte on integrating PowerBuilder Classic with custom controls created in C#. It discusses creating a custom control in Visual Studio, integrating it into PowerBuilder Classic, and key concepts like GUIDs, interfaces, ComInterfaceType, and delegates.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views13 pages

C# Integration: Charlotte Powerbuilder Conference

The document is about a PowerBuilder conference in Charlotte on integrating PowerBuilder Classic with custom controls created in C#. It discusses creating a custom control in Visual Studio, integrating it into PowerBuilder Classic, and key concepts like GUIDs, interfaces, ComInterfaceType, and delegates.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 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

You might also like