Problem using Win_Api_Shell package. [message #273663] |
Thu, 11 October 2007 04:37 |
guestuser
Messages: 5 Registered: October 2007
|
Junior Member |
|
|
Hello friends,
I want to call windows charmap.exe file from forms at runtime.
For doing this i wrote following code -
To see charmap application go to Start -> All programs -> Accessories -> System Tools -> Character Map
I created one form, placed 1 push button on the canvas. In the button's when-button-pressed trigger following code is written -
[color=blue]
Declare
mpath varchar2(100);
mfile varchar2(100);
Begin
-- host('c:\windows\system32\charmap.exe');
mpath := 'c:\windows\system32\';
mfile := 'charmap';
mfile := mpath||mfile;
message(mfile); message(' ');
Win_Api_Shell.winexec(mfile,WIN_API.SW_SHOWNORMAL,TRUE);
Exception
when others then
message(sqlerrm); message(' ');
End;[/color]
When i run this form & press the button. charmap process is started, which you can see in taskmanager list. But actually charmap application window is not opened.
Please suggest...
Thanks.
Mod-upd: Forget the 'color', just use the 'code' tags as requested in the sticky.
[Updated on: Fri, 12 October 2007 00:59] by Moderator Report message to a moderator
|
|
|
|
|
|
|
|
Re: Problem using Win_Api_Shell package. [message #274289 is a reply to message #274222] |
Mon, 15 October 2007 06:49 |
guestuser
Messages: 5 Registered: October 2007
|
Junior Member |
|
|
Hi David,
It seems that i confused u....ok. Let me correct you, that i am using forms9i version (I just tried with 6i d2kwutil to check whether it works or not...now forget about 6i.)
I attached D2kwutil.pll to my form & used Win_Api_Shell packaged procedure. The process gets started by Win_Api_Shell.WinExec procedure, but i want to open & miximize the requested application.
Thanks.
|
|
|
|
|
|