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: open external programm
Topic Summary:
Created On: 11-Sep-2008 10:05
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-2008 10:05
User is offline View Users Profile Print this message


Timo Blum

Posts: 9
Joined: 11-Sep-2008

is it possible to open an external application with dxl code?
for example an own c# programm?


thx for your help
Report this to a Moderator Report this to a Moderator
 11-Sep-2008 12:30
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

There are at least two ways:
-- use System command
-- use OLE automation
Report this to a Moderator Report this to a Moderator
 11-Sep-2008 15:31
User is offline View Users Profile Print this message


Marco Gomes

Posts: 11
Joined: 4-Sep-2007

you ca also use the undocument function:

int win32SystemWait_(string commandString,string& sResult, int waitTime)

return:
int syswaitSUCCESS_
int syswaitPROCESSERROR_
int syswaitTIMEOUT_
int syswaitPIPEFAULT_
int syswaitPROCESSERROR_
int syswaitINFINITE_
Report this to a Moderator Report this to a Moderator
 21-Nov-2008 22:21
User is offline View Users Profile Print this message


Joe Churchwell

Posts: 1
Joined: 21-Nov-2008

Report this to a Moderator Report this to a Moderator
 25-Nov-2008 05:38
User is offline View Users Profile Print this message


Timo Blum

Posts: 9
Joined: 11-Sep-2008

i now use the system method.
that works fine until yet.

but now i want to call the external exe with argument.
is this possible in doors too?
Report this to a Moderator Report this to a Moderator
 25-Nov-2008 13:10
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

system function will let you pass arguments if the external program has command line capability.

If no command line capability then hopefully your external program has ole capability.

And another way I have controlled an selected external program that doesn't have either of the two above capabilities, is to use a third program that can communicate with the selected external program -- I won't give details on this cause if someone doesn't know how to do this -- a tutorial here would be ineffective.

Edited: 25-Nov-2008 at 14:53 by ron lewis
Report this to a Moderator Report this to a Moderator
 26-Nov-2008 08:21
User is offline View Users Profile Print this message


Timo Blum

Posts: 9
Joined: 11-Sep-2008

well it now works with
system "path" + "argument"

my only problem was that i forgot a space character between the path and argument ^^
Report this to a Moderator Report this to a Moderator
 26-Nov-2008 12:43
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

I would not expect the command to work with a + sign within.

But I would expect a command line to work if it was well formed string and it conformed to the command line specification of the external programs.
Report this to a Moderator Report this to a Moderator
 26-Nov-2008 14:27
User is offline View Users Profile Print this message


Timo Blum

Posts: 9
Joined: 11-Sep-2008

there is no + between

it somthing like that
string test = "@PATH"

and than i call

system bla "[SPACE] argument"
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.