Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / October 2007

Tip: Looking for answers? Try searching our database.

Help with WriteFile and ReadFile

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Robe - 28 Sep 2007 14:04 GMT
Hi,

I need to send and receive data through RS-232 port in a synchronous way.
The problem is that the data packet I need to send and receive is huge so I
need to send and receive it in two or more segments.

But I need to do that with two functions one to read and one to send in such
a way that those functions wait until all data has been received/sent.

Can anybody help me with this?

Thanks,

Robe.
Ben Voigt [C++ MVP] - 15 Oct 2007 15:23 GMT
> Hi,
>
[quoted text clipped - 8 lines]
>
> Can anybody help me with this?

Which library are you using?  .NET?  MFC?  Win32 API?  something else?

> Thanks,
>
> Robe.
Robe - 15 Oct 2007 15:34 GMT
I'm using Win32 API.

> Which library are you using?  .NET?  MFC?  Win32 API?  something else?
Ben Voigt [C++ MVP] - 15 Oct 2007 17:41 GMT
> I'm using Win32 API.

Ok, microsoft.public.vc.language or microsoft.public.win32.programmer.*
newsgroups would be better.  This one is specific to using C++ in .NET
programs.

Anyway, can you create one or two new threads to do the serial data transfer
and then use WaitForSingleObject / WaitForMultipleObjects to wait for the
transfer to finish?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.