Click here to Skip to main content
16,015,177 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
Questionhow to read an PNG file using c and Process it Pin
googlejumbo29-Oct-07 18:05
googlejumbo29-Oct-07 18:05 
AnswerRe: how to read an PNG file using c and Process it Pin
Christian Graus29-Oct-07 23:38
protectorChristian Graus29-Oct-07 23:38 
QuestionReading/displaying Image in raw format Pin
Raza568029-Oct-07 12:50
Raza568029-Oct-07 12:50 
AnswerRe: Reading/displaying Image in raw format Pin
Mark Salsbery29-Oct-07 13:37
Mark Salsbery29-Oct-07 13:37 
GeneralRe: Reading/displaying Image in raw format Pin
Raza568029-Oct-07 13:49
Raza568029-Oct-07 13:49 
QuestionRunning Managed Code Pin
CodeWolf)29-Oct-07 4:43
CodeWolf)29-Oct-07 4:43 
GeneralRe: Running Managed Code Pin
TJoe29-Oct-07 5:31
TJoe29-Oct-07 5:31 
QuestionNamed pipes drive me crazy... [modified] Pin
Andrewfx29-Oct-07 1:01
Andrewfx29-Oct-07 1:01 
Hi there.
I've been experiencing a problem with named pipes server (single
threaded server using i/o overlapped reading/writing). The code
examples of a client and server may be found in Codegear RAd
studio 2007 ("named pipe client" and "named pipes single thread
using overlapped i/o"). The only thing i changed was implementing
a reading handler wich was supposed to store received data into
the Tlist object.
The problem is that if i dont receive data from client outright
after connect i get an ERROR_IO_PENDING pseude error while executing ReadFile function. Subsequently, after having received
that error just once i'm unable to read the info from the pipe
unless to drop the client and try the same again (which results
with the same error).

Have no idea about whether was it planned by example writers to handle this kind of a trouble but nothing seems to be working properly to receive the data which followed that error.
So i'm interested are there any workarounds for that? I mean when i execute ReadFile and it returs ERROR_IO_PENDING error.
In my opinion the most common "reading pipe scenario" would be:
0)Connect to the client
1)Perform ReadFile on the connected pipe;
2)if it returns ERROR_IO_PENDING - wait for the pipe to finish the pending operation (read in this case) by using GetOverlappedResult function (as it implemented in example).
3) perform readfile function again.
The problem is that it can never read the data from the pipe later on even after all the info has been received (GetOverlappedResult returns correct bytes transferred).

As far as it goes i'm deeply stuck into that without seeing any light in the end of the tonnel.

Thanks in advance
Any help would be appreciated.
Andrew.

P.S. code examples located in CodeGear RAD Studion 2007 ("Using Pipes") ms-help://borland.bds5/Ipc/base/using_pipes.htm


-- modified at 7:06 Monday 29th October, 2007
AnswerRe: Named pipes drive me crazy... Pin
Andrewfx29-Oct-07 22:45
Andrewfx29-Oct-07 22:45 
QuestionAbout global namespace in cwchar.h Pin
minihotto28-Oct-07 22:35
minihotto28-Oct-07 22:35 
AnswerRe: About global namespace in cwchar.h [modified] Pin
George L. Jackson29-Oct-07 1:21
George L. Jackson29-Oct-07 1:21 
GeneralRe: About global namespace in cwchar.h Pin
minihotto5-Nov-07 22:52
minihotto5-Nov-07 22:52 
QuestionCreation of class Objects Pin
achichandu28-Oct-07 22:30
achichandu28-Oct-07 22:30 
AnswerRe: Creation of class Objects Pin
George L. Jackson29-Oct-07 1:28
George L. Jackson29-Oct-07 1:28 
Questionboyer-moore alogritim for seraching hex values Pin
aamir ali28-Oct-07 22:27
aamir ali28-Oct-07 22:27 
AnswerRe: boyer-moore alogritim for seraching hex values Pin
George L. Jackson29-Oct-07 1:31
George L. Jackson29-Oct-07 1:31 
QuestionRegarding TreeView Control Pin
achichandu28-Oct-07 22:16
achichandu28-Oct-07 22:16 
Questionabout CLR Pin
minihotto28-Oct-07 20:49
minihotto28-Oct-07 20:49 
QuestionForms.. Pin
Ylno28-Oct-07 17:02
Ylno28-Oct-07 17:02 
AnswerRe: Forms.. Pin
Luc Pattyn28-Oct-07 17:10
sitebuilderLuc Pattyn28-Oct-07 17:10 
GeneralRe: Forms.. Pin
Ylno28-Oct-07 17:17
Ylno28-Oct-07 17:17 
GeneralRe: Forms.. Pin
Luc Pattyn28-Oct-07 17:42
sitebuilderLuc Pattyn28-Oct-07 17:42 
QuestionMessage Removed Pin
26-Oct-07 15:39
Armond Sarkisian26-Oct-07 15:39 
AnswerRe: Logging Into A Windows Shared Folder Pin
TJoe29-Oct-07 6:28
TJoe29-Oct-07 6:28 
QuestionSystem::Math::Round(double, 2) not behaving correctly Pin
BuckBrown26-Oct-07 11:37
BuckBrown26-Oct-07 11:37 

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.