Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: COM automation question
Topic Summary:
Created On: 11-Sep-2006 19:20
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 11-Sep-2006 19:20
User is offline View Users Profile Print this message


Chris Welch

Posts: 19
Joined: 10-Jan-2006

In VB I would call the following

>>     Dim oSession As TMSServer
>>     oSession.Login False, "C:\TestDS\APITesting\APITesting.rsp", "admin", "admin", True
>>      ...
>>     Set oInput = oSession.CreateTestInputSource
>>     ...

Howerver, when I try to port the code to DXL I cannot figure out how to get oInput as the CreateTestInputSource method does not return a value (according to DXL).

>>    oleMethod( oSource , "CreateTestInputSource" , oInput )

Any hints / suggestions / help !!?!?!

TIA
Chris
Report this to a Moderator Report this to a Moderator
 12-Sep-2006 19:39
User is offline View Users Profile Print this message


Chris Jones

Posts: 177
Joined: 1-Jul-2005

What is the exact error message that you're getting? I think that you may have to pass an OleAutoArgs (even an empty one) to oleMethod in order to get a result back out. From the manual:

string oleMethod(OleAutoObj autoObj,
string methodName
[,OleAutoArgs autoArgs
[,{string|int|char|bool|OleAutoObj}
result]])

I'd try passing it in an empty arg block and see what it does.
Report this to a Moderator Report this to a Moderator
 12-Sep-2006 21:49
User is offline View Users Profile Print this message


Dennis Lockshine

Posts: 113
Joined: 7-Apr-2003

In order to use the COM automation, you must first create an automation object. In DXL, this usually takes the form of:

OleAutoObj oSource=null
oSource=oleCreateAutoObject "comReference.Application"
if(null oSource) warningBox "The application could not be started"

When using the oleMethod function, the first parameter must be a non-null OleAutoObj object. In your example, how are you starting the automation object and populating the 'oSource' variable?

I looked online and could not find any TMSServer reference guides, nor could I find a definition for the CreateTestInputSource method. If you could provide reference material I believe I can help you with your issue.

-Dennis
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 2 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 2 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.