GXOpenInput

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello there,

I have a need to call GXOpenInput/GXCloseInput in a WM5 VB.NET application.
I want my application to be able to capture the F6/F7 keys.

So as I am not sure how to call these API's I was wondering if someone can
provide an example on how to call them in WM5 VB.NET.

You help would be appreciated.

Thanks
Devron
 
Hi Devron,

Thank you for posting here.

Since your question is related to pocket PC programming, I am sorry to tell
you that it is not within our support range. You may post your question to
the "microsoft.public.pocketpc.developer" newsgroup.

Note that the above newsgroup is not a managed newsgroup. If your problem
is still not resolved, you may submit a support incident in out PSS via the
link:
http://support.microsoft.com

At last, it seems that you need to use P/Invoke on Compact .NET Framework,
you may visit the following link for reference:

'An Introduction to P/Invoke and Marshaling on the Microsoft .NET Compact
Framework'
http://msdn2.microsoft.com/en-us/library/aa446536.aspx

Hope this helps and thank you for your understanding!


Sincerely,
Linda Liu
Microsoft Online Community Support

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Dear DevRon, (Developer Ron...! good name)

Declare these two API functions in any module in a vb.net project
'* ---------------------------------------------------
<DllImport("gx.dll", _
CharSet:=CharSet.Auto, _
EntryPoint:="?XOpenInput@@YAHXZ")> _
Public Sub GXOpenInput()
End Sub
'* ---------------------------------------------------
<DllImport("gx.dll", _
CharSet:=CharSet.Auto, _
EntryPoint:="?GXCloseInput@@YAHXZ")> _
Public Sub GXCloseInput()
End Sub
'* ---------------------------------------------------

Just call GXOpenInput() in the start-up of your application
ex:
Sub Main() Startup Routine
'* -----------------
Sub Main()
GXOpenInput()
End Sub
'* -----------------
or
'* -----------------
frm_Load(...) Handles MyBase.Load events
GXOpenInput()
End Sub
'* -----------------
Note: Make sure to call GXCloseInput during exiting your form/application

Thanks / Best Regards

Shaik Faheem Ahmed
(e-mail address removed)
'* ----------------------------------------------------------


Hello there,

I have a need to call GXOpenInput/GXCloseInput in a WM5 VB.NET application.
I want my application to be able to capture the F6/F7 keys.

So as I am not sure how to call these API's I was wondering if someone can
provide an example on how to call them in WM5 VB.NET.

You help would be appreciated.

Thanks
Devron
 
Back
Top