![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: COM automation question Topic Summary: Created On: 11-Sep-2006 19:20 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
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 |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
COM automation question
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.