![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: open external programm Topic Summary: Created On: 11-Sep-2008 10:05 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
is it possible to open an external application with dxl code?
for example an own c# programm? thx for your help |
|
![]() |
|
![]() |
|
There are at least two ways:
-- use System command -- use OLE automation |
|
![]() |
|
![]() |
|
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_ |
|
![]() |
|
![]() |
|
![]() |
|
![]() |
|
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? |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
well it now works with
system "path" + "argument" my only problem was that i forgot a space character between the path and argument ^^ |
|
![]() |
|
![]() |
|
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. |
|
![]() |
|
![]() |
|
there is no + between
it somthing like that string test = "@PATH" and than i call system bla "[SPACE] argument" |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
open external programm
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.