dzHW ProcessHandle() doesn't work :(

sitajony

Active Member
Licensed User
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!
 

sitajony

Active Member
Licensed User
Do you mean GetProcessHandle. Are you using it correctly, it works for me?
B4X:
hw.New1
p() = hw.GetProcesses
For i = 0 To ArrayLen(p()) - 1
   s = s & CRLF & p(i)
Next
pp = hw.GetProcessHandle(p(2))
Msgbox(s, p(2) & " " & pp)

I've wrote:

B4X:
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

And it return:
attachment.php
 

Attachments

  • erreur.jpg
    erreur.jpg
    34.1 KB · Views: 256

agraham

Expert
Licensed User
Longtime User
I guess you are trying to use it on the device. :(

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.
 

sitajony

Active Member
Licensed User
There're a lot of codes who doesn't work with me lol
I'll want use this lib just for show the start menu, maybe can i do it with an other code no?
 

bgs1

New Member
Please help

Is already patched this error on the device library? I need GetProcessHandle working. Maybe I can get this with other method or another library?
 

bgs1

New Member
it doesn't matter at all

Well, it doesn't matter at all.

I've already solved my problem of showing apps windows minimized.

Thank you anyway.
 
Top