Does anyone know how to call a Windows API function that is defined within a Windows Interface from PowerBuilder?
Specifically, I'm trying to call the ITaskbarList3::SetOverlayIcon API. The normal WinAPI strategy of defining a local external function definition does not work. It compiles, but receives Application Error R0015 "Error calling external function SetOverlayIcon at line nnn in clicked event of object cb_test of w_main." at execution time.
I'm pretty confident I have the proper datatypes for the 3 parameters and valid values, so I suspect this wrinkle of the API being defined as part of an interface is causing the issue.
I'm using PB 2017 R2 Build 1769 on a Windows 7 Ultimate (64-bit) O/S.
TIA,
John Fauss
I'd still like to figure out a solution to the original question, however...partly because I'd simply like to know how to do it, and partly because this API provides exactly what I would like to accomplish. I may have to try to invoke it from .NET using a COM-callable wrapper? Never done that before, but I know there are examples around.