
Problem calling ShellExecute: Unresolved External
Hallo,
I want to call the ShellExecute Windows API function but
don't succeed because the compiler reports 'Unresolved
External' when linking the program.
I include the following definition inside the globals map;
before this, the data structures are included correctly.
MODULE('Windows.DLL')
ShellExecute(HWND,*LPCSTR,*LPCSTR,*LPCSTR,*LPCSTR,SIGNED),HINSTANCE,PASCAL,RAW
END
The call of the function in the source code is listed below:
! the variables at the beginning of the line are def. as CSTRING
fcom = CLIP(KTE:Command)
foperation = 'open'
fpara = ''
fdir = Path()
hInst =
ShellExecute(QuickWindow{PROP:Handle},foperation,fcom,fpara,fdir,SW_SHOWDEFAULT)
I can't work out, where I can provide the fitting library
which contains the external function. Does someone else now this?
Thank you a priori,
Frank Savini