Click here to Skip to main content
16,021,757 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Linear smooth Graph Pin
Curtis Schlak.6-Jan-06 4:25
Curtis Schlak.6-Jan-06 4:25 
QuestionColumn Selection in MFC Pin
tayal1224366-Jan-06 3:22
tayal1224366-Jan-06 3:22 
AnswerRe: Column Selection in MFC Pin
BlackDice6-Jan-06 5:44
BlackDice6-Jan-06 5:44 
GeneralRe: Column Selection in MFC Pin
tayal1224366-Jan-06 17:45
tayal1224366-Jan-06 17:45 
GeneralRe: Column Selection in MFC Pin
ThatsAlok9-Jan-06 1:00
ThatsAlok9-Jan-06 1:00 
QuestionHow to indicate the buffer size before calling function recv, WSARecv in socket programming??? Pin
lvantin6-Jan-06 3:17
lvantin6-Jan-06 3:17 
AnswerRe: How to indicate the buffer size before calling function recv, WSARecv in socket programming??? Pin
David Crow6-Jan-06 4:50
David Crow6-Jan-06 4:50 
AnswerRe: How to indicate the buffer size before calling function recv, WSARecv in socket programming??? Pin
John R. Shaw6-Jan-06 19:49
John R. Shaw6-Jan-06 19:49 
You do not need to know the buffer size before recieving the data, although it would help. C++ solves many problems like this by providing [classes like] the vector template class. What I am trying to say is that you can declare a vector to recieve the data, and just keep calling push_back(...) to stuff the bytes into the buffer. If you have a good idea of how many bytes of data you expect to recieve, then set the initial size to that many bytes (as an added safety measure you might double the number, but why waste memory). The reason you want to set a minimum (or maximum) for expected bytes of data, is that you want to avoid forcing the code to reallocate a new memory block that is large enough to hold all the data.

You can do the same thing in C, but C does not provide nice little pieces of code to do it for you.

INTP
Every thing is relative...
Questionhow can i print a file at client's printer Pin
sridhar vattam6-Jan-06 1:42
sridhar vattam6-Jan-06 1:42 
AnswerRe: how can i print a file at client's printer Pin
David Crow6-Jan-06 4:52
David Crow6-Jan-06 4:52 
QuestionHow to select Printer Tray or PaperSource in Visual Studio 2003 .NET? Pin
MSS-Software6-Jan-06 1:33
MSS-Software6-Jan-06 1:33 
AnswerRe: How to select Printer Tray or PaperSource in Visual Studio 2003 .NET? Pin
vipinasda6-Jan-06 4:30
vipinasda6-Jan-06 4:30 
GeneralRe: How to select Printer Tray or PaperSource in Visual Studio 2003 .NET? Pin
MSS-Software6-Jan-06 11:01
MSS-Software6-Jan-06 11:01 
GeneralRe: How to select Printer Tray or PaperSource in Visual Studio 2003 .NET? Pin
vipinasda7-Jan-06 9:10
vipinasda7-Jan-06 9:10 
QuestionHow can I do with CListView? Pin
runningfeng6-Jan-06 1:02
runningfeng6-Jan-06 1:02 
AnswerRe: How can I do with CListView? Pin
Owner drawn6-Jan-06 1:28
Owner drawn6-Jan-06 1:28 
GeneralRe: How can I do with CListView? Pin
runningfeng8-Jan-06 15:13
runningfeng8-Jan-06 15:13 
GeneralRe: How can I do with CListView? Pin
runningfeng8-Jan-06 15:28
runningfeng8-Jan-06 15:28 
QuestionCustomize a toolbar in win32 Pin
Ward6-Jan-06 0:07
Ward6-Jan-06 0:07 
AnswerRe: Customize a toolbar in win32 Pin
Owner drawn6-Jan-06 0:22
Owner drawn6-Jan-06 0:22 
GeneralRe: Customize a toolbar in win32 Pin
Ward6-Jan-06 0:41
Ward6-Jan-06 0:41 
GeneralRe: Customize a toolbar in win32 Pin
Owner drawn6-Jan-06 0:49
Owner drawn6-Jan-06 0:49 
GeneralRe: Customize a toolbar in win32 Pin
Ward6-Jan-06 1:07
Ward6-Jan-06 1:07 
GeneralRe: Customize a toolbar in win32 Pin
Prakash Nadar6-Jan-06 0:45
Prakash Nadar6-Jan-06 0:45 
GeneralRe: Customize a toolbar in win32 Pin
Ward6-Jan-06 1:04
Ward6-Jan-06 1:04 

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.