Hi, I'm using the dzHW library but when I want use the dzHW class for get the Process Handle it return "it's not a static member" something like that...
Anyone can tell me if there's an other lib or an update?
Thanks very much!
Sub Globals
'Declare the global variables here.
Dim p(0) As string
End Sub
Sub App_Start
p() = dzhw.GetProcesses
For i = 0 To ArrayLen(p()) - 1
s = s & CRLF & p(i)
Next
pp = dzhw.GetProcessHandle(p(2))
Msgbox(s, p(2) & " " & pp)
End Sub
On the desktop with dzHWdesktop it works OK but in the device library, dzHW, GetProcessHandle is wrongly declared as a static method and is not accessible to an optimised compiled application.
I am afraid those libraries were written before optimised compilation was available and don't fully conform to the requirements for optimised compilation.
No, it has not been corrected. I am afraid there is no other way of getting a Process Handle as GetProcessHandle needs to perform native code API calls which can only be done in a library and not in Basic4ppc itself..