I had this question after viewing Open a file from Powerbuilder using Windows default associated program
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
//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"