togori
8th November 2005, 17:58
Hi everybody, could help me to have information of how to use the library ottdllbw, i know this one is use to execute some windows applications, but how i can use it?.
Thanks for your attention.
Regards
Ricardo Torres
mark_h
8th November 2005, 18:19
Search the forum on ottdllbw - you should find plenty of threads like this one (http://www.baanboard.com/baanboard/showthread.php?t=24166&highlight=ottdllbw) to help you understand what is in the library. I use the sever2client and client2server for most of my function servers - copy the file to be loaded to the server, load it, create an error file and put that back on the client. We also use this to copy files down to the client and launch an excel macro to format the file. So this is a useful library.
dorleta
11th November 2005, 17:21
the standard way without ottdllbw
function extern long tgwms0004.start.application(const string application(),
const string arguments (),
domain tgyenox local,
long mode,
[long pop_up])
{
DLLUSAGE
This function starts the application with the given arguments. The given
application may not be empty, the arguments may be empty.
Parameters:
application the application which must be started
arguments the arguments with which the application will be started
local if tgyenox.yes then the application will be started on the
local machine, otherwise it will be started on the server.
Note that only on BW the tgyenox.yes should be used, in which
case a: "create.object(DsCapplication, 0, ...)" will be done.
In all other cases either a "shell()" or "run.prog()" will be
done depending on the current Baan version.
This function does NOT check whether the current platform is BW.
mode the mode needed for "shell()" or "run.prog()"
pop_up whether (if true) or not (if false) pop-ups on errors must be
given. Default is: false.
Return value:
= 0 successful completion, application started
< 0 some error occurred