Click here to Skip to main content
15,909,898 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Changing IP, gateway, etc programatically Pin
Magnus Westin21-Jan-06 23:52
Magnus Westin21-Jan-06 23:52 
AnswerRe: Changing IP, gateway, etc programatically Pin
S. Senthil Kumar22-Jan-06 5:29
S. Senthil Kumar22-Jan-06 5:29 
QuestionGraphics causing high CPU load Pin
ruzu21-Jan-06 13:59
ruzu21-Jan-06 13:59 
AnswerRe: Graphics causing high CPU load Pin
S. Senthil Kumar22-Jan-06 5:32
S. Senthil Kumar22-Jan-06 5:32 
GeneralRe: Graphics causing high CPU load Pin
Stephen Hewitt22-Jan-06 14:24
Stephen Hewitt22-Jan-06 14:24 
QuestionIf you have time could you give me your opinion of my dx code / fixes Pin
tom_dx21-Jan-06 12:01
tom_dx21-Jan-06 12:01 
QuestionHow much data in Pipe? Pin
9ine21-Jan-06 3:56
9ine21-Jan-06 3:56 
AnswerRe: How much data in Pipe? Pin
Toby Opferman21-Jan-06 18:03
Toby Opferman21-Jan-06 18:03 
In your protocol you could make it so that the first few bytes help determine or provide the size for the next command. The other end of the pipe would then always write an atomic operation for the protocol size. You then have this common header for your protocol in which you would read first to determine the size of the next packet. You could do it in 2 steps or you could allocate a buffer which reads as much data as it can off and parses the protocol through and if a packet is cut off then simply re-read. If you want to ensure that you would never get the packet cut off then simply ensure that all packets are the same size and create the buffer as a multiple.

Otherwise I do not know of an API to peek the amount of data in the pipe currently however it is a handle so you could attempt to experiment with some APIs to see what results they yeild.



8bc7c0ec02c0e404c0cc0680f7018827ebee
Questionprinting problem on a graph control Pin
RockyJames21-Jan-06 0:57
RockyJames21-Jan-06 0:57 
AnswerRe: printing problem on a graph control Pin
Lane Yu22-Jan-06 3:11
Lane Yu22-Jan-06 3:11 
GeneralRe: printing problem on a graph control Pin
RockyJames22-Jan-06 19:13
RockyJames22-Jan-06 19:13 
Questiondisabled classwizard Pin
sridhar vattam21-Jan-06 0:36
sridhar vattam21-Jan-06 0:36 
AnswerRe: disabled classwizard Pin
eli1502197921-Jan-06 1:08
eli1502197921-Jan-06 1:08 
GeneralRe: disabled classwizard Pin
sridhar vattam21-Jan-06 1:19
sridhar vattam21-Jan-06 1:19 
GeneralRe: disabled classwizard Pin
sridhar vattam21-Jan-06 1:23
sridhar vattam21-Jan-06 1:23 
GeneralRe: disabled classwizard Pin
eli1502197921-Jan-06 8:41
eli1502197921-Jan-06 8:41 
AnswerRe: disabled classwizard Pin
Owner drawn22-Jan-06 17:07
Owner drawn22-Jan-06 17:07 
QuestionMouse position in CHeaderCtrl column ? Pin
paper6720-Jan-06 23:27
paper6720-Jan-06 23:27 
GeneralRe: Mouse position in CHeaderCtrl column ? Pin
Ryan Binns20-Jan-06 23:45
Ryan Binns20-Jan-06 23:45 
QuestionGet printer DC given printer name & paper size Pin
s o v a n n20-Jan-06 21:47
s o v a n n20-Jan-06 21:47 
AnswerRe: Get printer DC given printer name & paper size Pin
Vipin Aravind21-Jan-06 7:12
Vipin Aravind21-Jan-06 7:12 
GeneralRe: Get printer DC given printer name & paper size Pin
s o v a n n3-Feb-06 17:11
s o v a n n3-Feb-06 17:11 
QuestionMore information about Web-Style GUI Pin
Allad20-Jan-06 21:21
Allad20-Jan-06 21:21 
QuestionCustom control problem Pin
followait20-Jan-06 20:18
followait20-Jan-06 20:18 
AnswerRe: Custom control problem Pin
Allad20-Jan-06 23:35
Allad20-Jan-06 23:35 

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.