Indigo Rose Software
  #1  
Old 07-22-2002
Matthias Matthias is offline
Forum Member
 
Join Date: Jul 2002
Posts: 1
Grin Embedding TrueUpdate?

I'm wondering how to embed trueupdate in a C or C++ application. I need to know whether TrueUpdate execution has been successful or not. The example in the documentation doesn't make much sense to me (trueupdateUsersGuide.pdf Page 176).
HWND hWindow;
int nResult;
hWindow = GetSafeHwnd();
nResult = ShellExecute(hWindow, "open",
"C:\Program Files\Widget Designer\update.exe",
"/R:1", NULL, SW_NORMAL);
if(nResult > 32) // values above 32 indicate success
{
return TRUE; // update executed
}
else
{
return FALSE; // update not executed
}
The code is not synchronized therefore shellexecute will never actually be able to give a proper result code - it will return the process id of the spawned process instead.
I've synchronized the code to wait for the shellexecute however it does always return the very same value.
Does anyone have working sample code for this issue?
Does the TrueUpdate executable return proper return values?

Regards Matthias
  #2  
Old 08-12-2002
Brett's Avatar
Brett Brett is offline
Indigo Rose Staff Member
 
Join Date: Jan 2000
Posts: 2,001
Re: Embedding TrueUpdate?

The TrueUpdate client process always returns a 0 as its exit code.
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT -6. The time now is 07:18 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software