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!

Need help with .NET COM control for PB to use in 64-bit environment

Status
Not open for further replies.

Janosh

Programmer
Apr 26, 2010
9
FI
Hi!

I've created a COM component in C# according to the instructions described in:

The component works fine with my PB application on XP and Windows Server 2003 (32-bit), but I can't get it to work on Windows Server 2008 x64 nor on Vista x64.

After I have registered my component I make the call in the following manner:

OleObject ole_object
ole_object = CREATE OleObject
li_rc = ole_object.ConnectToNewObject("MyComponent")
IF li_rc = 0 THEN
ole_object.executeFunction()
END IF
ole_object.DisconnectObject()
DESTROY ole_object

The manual for writing a COM Control doesn't say anything about being limited for 32-bit systems.

Does anyone have experience in creating COM Controls with .NET for PowerBuilder?

I'm using PB version 10.2.1 Build 9914
 
To add:

The function call returns -3:
Object could not be created
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top