Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling Class functions from DLL

Status
Not open for further replies.

srajgopal

IS-IT--Management
Dec 28, 2002
5
US
I have an ActiveX DLL Project1.dll containing a class Class1.dll which has a public function dummy() that returns a string.

In VB, the following code works
Set obj = CreateObject("Project1.Class1")
MsgBox obj.dummy

How do I call this function dummy() from Powerbuilder 6?

 

The following code works.

PBObject = CREATE OLEObject
ll_status = PBObject.ConnectToNewObject ("Project1.Class1")
ls_val = PBObject.dummy()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top