I want to use Power Builder to write function to check whether my computer is running "Microsoft Excel" or not.
I have tried the following code, but it doesn't work.
At local external function, I wrote:
FUNCTION long GetModuleHandleA(string modname) Library "Kernel32.dll"
Then I build a button to do the following:
ulong rtn
rtn = GetModuleHandleA("excel.exe"
MessageBox("Return Code: ", string(rtn))
The "rtn" always return 0, no matter the excel is on or off.
Any suggestion for me please? I am using Window NT for OS.
Rdgs
RTT
I have tried the following code, but it doesn't work.
At local external function, I wrote:
FUNCTION long GetModuleHandleA(string modname) Library "Kernel32.dll"
Then I build a button to do the following:
ulong rtn
rtn = GetModuleHandleA("excel.exe"
MessageBox("Return Code: ", string(rtn))
The "rtn" always return 0, no matter the excel is on or off.
Any suggestion for me please? I am using Window NT for OS.
Rdgs
RTT