hams...@gmail.com
unread,Mar 14, 2017, 3:58:44 AM3/14/17You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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"