?
Solved

call COM object hosted in MTS created in Visual Basic from PowerBuilder

Posted on 2003-03-19
1
Medium Priority
?
299 Views
Last Modified: 2013-12-26
Is it possible to call COM object hosted in MTS created in Visual Basic from PowerBuilder?

Is there any example on the internet regarding this ?
0
Comment
Question by:donna_ihg
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
BhadreshDesai earned 750 total points
ID: 8255928
Theoretically you can access COM objects written in any language hosted on MTS. A simple example would be

OLEObject SomeCOMObj
Integer li_rc
SomeCOMObj = CREATE OLEObject
li_rc = SomeCOMObj.ConnectToNewObject("PackageName.CompName")
IF li_rc < 0 THEN
   DESTROY SomeCOMObj
   MessageBox("Failed to connect to COM Object",  &
      "Error: " + String(li_rc))
   Return
END IF

// Then you can call function on SomeCOMObj as
SomeCOMObj.of_SomeFunction()

Hope this answers your question

Bhadresh
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Here is a helpful source code for C++ Builder programmers that allows you to manage and manipulate HTML content from C++ code, while also handling HTML events like onclick, onmouseover, ... Some objects defined and used in this source include: …
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
Suggested Courses
Course of the Month15 days, 2 hours left to enroll

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question