Click here to Skip to main content
15,914,481 members
Home / Discussions / Mobile
   

Mobile

 
GeneralRe: Asynchronous Messaging Question Pin
Chris S Kaiser17-Feb-06 8:49
Chris S Kaiser17-Feb-06 8:49 
GeneralRe: Asynchronous Messaging Question Pin
Jethro6317-Feb-06 8:50
Jethro6317-Feb-06 8:50 
GeneralRe: Asynchronous Messaging Question Pin
Chris S Kaiser17-Feb-06 8:54
Chris S Kaiser17-Feb-06 8:54 
GeneralRe: Asynchronous Messaging Question Pin
Jethro6317-Feb-06 9:01
Jethro6317-Feb-06 9:01 
Question.NET Compact Framework Pin
vilasjain17-Feb-06 7:18
vilasjain17-Feb-06 7:18 
Questionhow can i access database SQL server Pin
Your Code16-Feb-06 20:01
Your Code16-Feb-06 20:01 
QuestionWindows CE Problem Pin
RockyM16-Feb-06 17:57
RockyM16-Feb-06 17:57 
QuestionCan I Import "CreateEvent" into Windows CE.NET? Pin
Jethro6316-Feb-06 3:58
Jethro6316-Feb-06 3:58 
Greetings:

I am trying to write a PDA program that supports a USB Host port. I am using Visual Studio 2003, C# with some imported Win32 DLL's. The driver for the USB port was provided by FTDI and appears to be installed and working very well. There is just one detail:

There is one procedure in the USB DLL that requires an "event" handle that has been created and non-signaled. I am talking about the kind of event that you create with the Win32 API function "CreateEvent". The idea is that the procedure stores the event handle internally and when incoming characters are available, it will signal the event so that your read-data thread can wake up and process the new data.

I have imported a few procedures from the Kernel32.DLL successfully but "CreateEvent" is not working. I have consulted the WEB site "P-Invoke.NET" which provides DllImport proper syntax for every conceivable procedure in a variety of DLL's. But whenever I make a call to "CreateEvent", I get the "MissingMethodException".

So I have a few questions:

1. Does Windows CE support "CreateEvent"?
2. If not, how can I create a read-data thread that sleeps until characters are available, especially since the USB Win32 driver uses a Win32 DLL to signal?
3. Is there a repository of information anywhere where I can quickly look up what Win32 API functions are available under Windows CE? I have checked the MSDN "Platform SDK: DLLs, Processes, and Threads" document. It does NOT say that it IS supported under Windows CE but it does NOT say that it isn't either.

Finally, I tried using a .NET AutoResetEvent object. It has one property "Handle" and the documentation refers to this as "the native operating system handle". I thought that perhaps that this was in fact the event handle ultimately created by "CreateEvent". However, when I passed this to the USB DLL, it did not signal as expected when characters came in (I am absolutely certain that characters were received). Have I misunderstood or misused this object?

Thanks in advance to anybody who responds.
Mark
AnswerRe: Can I Import "CreateEvent" into Windows CE.NET? Pin
Jonas Larsson21-Feb-06 4:23
Jonas Larsson21-Feb-06 4:23 
Question"Running Programs" on Windows Mobile Pin
Jethro6315-Feb-06 2:34
Jethro6315-Feb-06 2:34 
AnswerRe: "Running Programs" on Windows Mobile Pin
Jonas Larsson15-Feb-06 4:08
Jonas Larsson15-Feb-06 4:08 
GeneralRe: "Running Programs" on Windows Mobile Pin
Jethro6315-Feb-06 4:17
Jethro6315-Feb-06 4:17 
QuestionCan not convert CCeSocket to WM 5.0 Pin
Namdn14-Feb-06 22:55
Namdn14-Feb-06 22:55 
QuestionCreated Help Pin
Mahardhika14-Feb-06 13:26
Mahardhika14-Feb-06 13:26 
QuestionPls suggess any resource to learn mobile development? Pin
williamccyccyccy13-Feb-06 14:52
williamccyccyccy13-Feb-06 14:52 
AnswerRe: Pls suggess any resource to learn mobile development? Pin
TomMCS19-Feb-06 17:29
TomMCS19-Feb-06 17:29 
GeneralRe: Pls suggess any resource to learn mobile development? Pin
williamccyccyccy19-Feb-06 18:30
williamccyccyccy19-Feb-06 18:30 
AnswerRe: Pls suggess any resource to learn mobile development? Pin
Vasudevan Deepak Kumar21-Feb-06 20:16
Vasudevan Deepak Kumar21-Feb-06 20:16 
QuestionToolbar icons Pin
Federico Milano13-Feb-06 9:28
Federico Milano13-Feb-06 9:28 
QuestionXML and SQLServer CE 2005 Pin
alexgr_7913-Feb-06 2:45
alexgr_7913-Feb-06 2:45 
Questionhow can i view HTML Pin
Your Code12-Feb-06 23:11
Your Code12-Feb-06 23:11 
AnswerRe: how can i view HTML Pin
TomMCS19-Feb-06 17:32
TomMCS19-Feb-06 17:32 
QuestionProgress Bar Pin
Polymorpher12-Feb-06 15:24
Polymorpher12-Feb-06 15:24 
Questionbasic doubt in mobile development Pin
murali_utr9-Feb-06 23:48
murali_utr9-Feb-06 23:48 
QuestionControl for Show Messages Pin
VenkataRamana.Gali9-Feb-06 9:33
VenkataRamana.Gali9-Feb-06 9:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.