Ok , i can receive packets now with WTPacketsGet() - the problem was just
inproper use of marshalling.
A struct in the header has a member: TCHAR lcName[40]
which i had to marshal this way:
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 40)]
public string Name;
Regards,
Paul
"Paul Schabl" <(E-Mail Removed)> schrieb im Newsbeitrag
news:(E-Mail Removed)...
> Hi,
>
> i'm trying to access my Summasketch tablet via wintab32.dll.
> I can successfully call WTOpen() and WTMgrOpen().
>
> I want to catch packets sent from the tablet.
> First i tried with WTPacketsGet() but the packet count it returns is
> always zero.
> Then i thought maybe i should use the following function and provide a
> callback:
> HWTHOOK WTMgrPacketHookEx(hMgr, nType, lpszModule, lpszHookProc)
>
> Howerver i have no idea how to implement it, maybe somebody fo you has.
> Does anybody of you have experience with calling wintab32.dll, or can you
> point me
> to some resources?
>
> If you want i can ofcourse provide the source of my WinTablet class.
>
> Thanks and regards,
> Paul
>
|