All Forums
 Microsoft Windows CE
 .NET Application Development
 Serial Communication in C#
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Author Topic  

willi

13 Posts

Posted - 02 May 2002 :  18:23:43  Show Profile  Email Poster
Has anybody done that yet or any ideas besides what has been done on
http://www.gotdotnet.com/userarea/keywordsrch.aspx?keyword=SerialStream?

static unsafe extern bool ReadFile(int hFile, byte* lpBuffer, int nNumberOfBytesToRead, int* lpNumberOfBytesRead, NativeOverlapped* lpOverlapped);

NativeOverlapped is not defined.

Willi Weichselbaumer
Coincard International

willi@coincard.com
(250) 360-0012

ctacke

877 Posts

Posted - 03 May 2002 :  09:31:22  Show Profile  Email Poster
unsafe declarations are unsupported in the Compact Framework. For something like ReadFile you need to PInvoke the function. I'll try to put together a sample today for using ReadFile.

-----------------
Chris Tacke, eMVP
Applied Data Support
Go to Top of Page

vta

14 Posts

Posted - 22 Jan 2004 :  08:13:18  Show Profile  Email Poster
We are kind of new to using the compact framework and C#. We need to use several of the serial ports on the AGX board. Did that example ever happen?

/Martin
Go to Top of Page

ctacke

877 Posts

Posted - 22 Jan 2004 :  10:12:06  Show Profile  Email Poster
Take a look at this shared source code.

Go to Top of Page
  Topic  
 Forum Locked
 Send Topic to a Friend
 Printer Friendly
Jump To:
Eurotech Support Forums © Eurotech Inc. Go To Top Of Page
This page was generated in 0.02 seconds. Snitz Forums 2000