Click here to Skip to main content
15,881,620 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: visual studios 6.0 question Pin
cmk22-Aug-04 16:00
cmk22-Aug-04 16:00 
GeneralComparison of file names Pin
alex.barylski21-Aug-04 15:17
alex.barylski21-Aug-04 15:17 
GeneralRe: Comparison of file names Pin
Ravi Bhavnani21-Aug-04 18:26
professionalRavi Bhavnani21-Aug-04 18:26 
GeneralRe: Comparison of file names Pin
bikram singh22-Aug-04 7:06
bikram singh22-Aug-04 7:06 
GeneralRe: Comparison of file names Pin
alex.barylski22-Aug-04 10:51
alex.barylski22-Aug-04 10:51 
GeneralSending data through winsock Pin
Archer28221-Aug-04 13:05
Archer28221-Aug-04 13:05 
GeneralRe: Sending data through winsock Pin
Steve Mayfield21-Aug-04 19:43
Steve Mayfield21-Aug-04 19:43 
GeneralRe: Sending data through winsock Pin
Andrew Peace22-Aug-04 5:35
Andrew Peace22-Aug-04 5:35 
Look at the line
send( client, szBuffer, sizeof(szBuffer), 0 );

I presume szBuffer is comething like LPTSTR, LPSTR, TCHAR * or char *, in which case, the sizeof operator will return the size of the pointer, not the buffer. You need to pass in the size of the buffer, or use strlen (may be vulnerable to buffer overflows).

--
Andrew.
GeneralRe: Sending data through winsock Pin
Archer28222-Aug-04 15:10
Archer28222-Aug-04 15:10 
GeneralRe: Sending data through winsock Pin
Andrew Peace23-Aug-04 2:04
Andrew Peace23-Aug-04 2:04 
GeneralRe: Sending data through winsock Pin
Christian Graus23-Aug-04 16:37
protectorChristian Graus23-Aug-04 16:37 
GeneralRe: Sending data through winsock Pin
gamitech22-Aug-04 12:02
gamitech22-Aug-04 12:02 
GeneralProblem with drawing PNG with GDI+ Pin
damian221-Aug-04 11:40
damian221-Aug-04 11:40 
GeneralRe: Problem with drawing PNG with GDI+ Pin
PJ Arends21-Aug-04 12:26
professionalPJ Arends21-Aug-04 12:26 
GeneralRe: Problem with drawing PNG with GDI+ Pin
damian221-Aug-04 22:27
damian221-Aug-04 22:27 
GeneralRe: Problem with drawing PNG with GDI+ Pin
PJ Arends22-Aug-04 5:13
professionalPJ Arends22-Aug-04 5:13 
GeneralDisable key combination Pin
Kamis21-Aug-04 11:07
Kamis21-Aug-04 11:07 
GeneralRe: Disable key combination Pin
Scozturk21-Aug-04 22:10
professionalScozturk21-Aug-04 22:10 
GeneralRe: Disable key combination Pin
Dudi Avramov22-Aug-04 0:41
Dudi Avramov22-Aug-04 0:41 
Generalmodel 2 modeless Pin
alex.barylski21-Aug-04 11:05
alex.barylski21-Aug-04 11:05 
GeneralRe: model 2 modeless Pin
Ravi Bhavnani21-Aug-04 11:09
professionalRavi Bhavnani21-Aug-04 11:09 
GeneralRe: model 2 modeless Pin
alex.barylski22-Aug-04 12:14
alex.barylski22-Aug-04 12:14 
GeneralRe: model 2 modeless Pin
Ravi Bhavnani22-Aug-04 12:36
professionalRavi Bhavnani22-Aug-04 12:36 
Generalparalel port programming using visual c++ Pin
Anonymous21-Aug-04 9:24
Anonymous21-Aug-04 9:24 
GeneralRe: paralel port programming using visual c++ Pin
Ravi Bhavnani21-Aug-04 11:02
professionalRavi Bhavnani21-Aug-04 11:02 

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.