on 07-15-2016 7:07 PM
I'm trying to open an abode file, that's stored on my database in the adobe viewer
when the user clicks on a list of the files
it will pull down the data, and store into an adobe file.
then.... with that filename, it will call shellexecute
the file opens up properly
but... it seems to drive the cursor on the datawindow crazy
it appears to be highlight every row that it touches
Am I doing something wrong? do I need to set the cursor to hourglass?
or... do I need to somehow wait on the Adobe reader operation to end
before letter powerbuilder take back over
I've used the run and wait operation before
should I use that, instead of the shellexecute
Hi Scot;
For the ShellExecute ( ) API - are you suing the Unicode version ... either: ShellExecuteW() or ShellExecuteExW () ?
Regards ... Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm using the following
It really doesn't seem to have a problem with calling of the external program.
but... I'm calling the program from a clicked event, of a datawindow
the cursor on the datawindow, is acting like it's wanting to select multiple rows while the external program is up
FUNCTION long ShellExecute (long hwnd, ref string lpOperation, ref string lpFile, ref string lpParameters, ref string lpDirectory, integer nShowCmd )
LIBRARY "shell32" Alias for "ShellExecuteA;Ansi" |
You might call the unicode function declarations like:
Function long ShellExecute ( &
long hwindow, &
string lpOperation, &
string lpFile, &
string lpParameters, &
string lpDirectory, &
long nShowCmd &
) Library "shell32.dll" Alias for "ShellExecuteW"
Function long GetDesktopWindow ( ) Library "user32.dll"
Try to use the Desktop Window Handle.
So
ShellExecute ( GetDesktopWindow() , .... )
hth
Arnd
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.