English
Bugs and vermeintliche

Return Value with END

 

E.T.
i want this issue here again aufgreifen, there me these function some vereinfachen would. I bekomm my Program simply not moreover, the value behind END one aufgerufenen Program To get.

given: Program, which one other aufruft and hereon wait:
Declare Pid&, rc%
cls
pid& = @WinExec(maintest.exe,1)

Repeat

    rc% = @GetExitCode(pid&)
    print Return,rc%,($;@hex$(rc%);)
    sleep 100

Until rc% <> 259

waitinput
End

and the program, which called becomes (maintest.exe)
window 30,200
sleep 2000
End 16

as long as the aufgerufene Program runs, comes The 259 back.
becomes the aufgerufene Program exits (or exits itself How in the Bsp. self), comes at aufrufenden Program a 7- or 8-stellige number on, but not The 16 .

unfortunately could here  [...]  not helped go, therefore Please I again circa Mithilfe.
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
02/08/09  
 



look:  [...] 
 
02/08/09  
 




E.T.
If ichaber The Help XProfan correctly. understand (what indeed not always the case is), then ought to the still one XProfan-Prog without externe Help can.
If the not so is, would Yes The function futile. (or one bow ??)
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
02/08/09  
 



very, one bow, thatswhy Workaround.

I shift time to future...
 
02/08/09  
 




RGH
Hi,

in the momentum be I here something ratlos.
END n% functions, How one slight to check on can, if to the others Program with WinExecWait launch or in a Batch- or. CMD-File whom Errorcode abfragt.
the GetExitCode(Pid&) functions on itself too, though shining The Pid& to End of program only very terminable validly To his, so that then one falser worth zurückgegeben becomes. (The function GetExitCode() screen presently unfortunately not yet, whether The Pid& yet validly is. the ought to I in the next XProfan-Version yet install and then z.B. -1 give back.)

Greeting
Roland
 
Intel Duo E8400 3,0 GHz / 4 GB RAM / 1000 GB HDD - ATI Radeon HD 4770 512 MB - Windows 7 Home Premium 32Bit - XProfan X4
02/10/09  
 



exists the XProfan-Process to that Time the with Return Value terminate want from only one Thread?
 
02/10/09  
 




E.T.
iF
exists the XProfan-Process to that Time the with Return Value terminate want from only one Thread?


by me already.
 
Grüße aus Sachsen... Mario
WinXP, Win7 (64 Bit),Win8(.1),Win10, Win 11, Profan 6 - X4, XPSE, und 'nen schwarzes, blinkendes Dingens, wo ich das alles reinschütte...
02/10/09  
 




Andre
Rohland
User Messages could you help...

In my proposition wished I with the Return Value of < end n% > really to check on, whether the aufgerufene Program itself ordnungsgemäß exits has, or z.B. with Taskmanager or through Shutdown/ Log off downed watts. there this not funktionierte, have I once more with the User Messages befaßt. so could You in example:
- not only a, separate two ( with Use of Memory-Variables/ Strings even yet More )
Rückgabewerte receive
- the normal Closing the Fensters your maintest.exe check/ prevent.
- Shutdown/ Log off discern, discern or prevent.
- in sinnvoller combination with < Getexitcode(Pid&)>, < Winexec > your maintest.exe to supervise and
possibly restart etc.

for your object (only Return Value with termination of maintest.exe) could You this Source use:

Starter.exe

maintest.exe

Greeting
André
 
02/11/09  
 




Jörg
Sellmeyer
this is korrigiert been. If the program itself to Sleep 2000 self exits, comes -1. If I Sleep 2000 through waitinput supplant, comes to Click 16 on.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
11/04/11  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.531 Views

Untitledvor 0 min.
Jörg Sellmeyer11/18/15
mein05/19/13
RudiB.11/08/12
Andre Rohland11/08/12
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie