Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Unresolvable linked reference error for ShellExecuteW at runtime

48 views
Skip to first unread message

hams...@gmail.com

unread,
Mar 14, 2017, 3:58:44 AM3/14/17
to
Hi,


I have used ShellExecuteW in my powerbuilder application to open any type of files on double click. The function/application works absolutely fine while running through powerbuilder, but terminates when i run thro PBD and EXE with 0007 termination error-Unresolvable external linking reference to ShellExecutew .

Please let me know if i am missing anything..


below is my code

li_rtn =GetFileOpenName("Select File",docpath, docname ,"DOC", &
+ "All Files (*.*), *.*" )
string ls_filename, ls_null
SetNull(ls_null)
ls_filename=docname

//declared this external function-so calling it here
//ShellExecuteW( handle( THIS ), "open", ls_filename, ls_Null, ls_Null, 1)

In global external functions of userobject,have declared it as below
FUNCTION long ShellExecuteW( ulong hWnd, string Operation, string lpFile, string lpParameters, string lpDirectory, int nShowCmd ) LIBRARY "shell32.dll" Alias For "ShellExecuteW"

mbalent

unread,
Mar 15, 2017, 12:37:29 PM3/15/17
to
On Tuesday, March 14, 2017 at 3:58:44 AM UTC-4, hams...@gmail.com wrote:
> Hi,
>
...
>
> In global external functions of userobject,have declared it as below
> FUNCTION long ShellExecuteW( ulong hWnd, string Operation, string lpFile, string lpParameters, string lpDirectory, int nShowCmd ) LIBRARY "shell32.dll" Alias For "ShellExecuteW"

Verify the location{s} of shell32.dll on the PC.
0 new messages