Click here to Skip to main content
15,918,967 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralProblem with outp() in vc6.0 Pin
funwey26-Jul-03 19:44
funwey26-Jul-03 19:44 
GeneralRe: Problem with outp() in vc6.0 Pin
phlipping26-Jul-03 20:15
phlipping26-Jul-03 20:15 
GeneralRe: Problem with outp() in vc6.0 Pin
Erik Funkenbusch26-Jul-03 20:46
Erik Funkenbusch26-Jul-03 20:46 
GeneralExtended chars with SendInput Pin
phlipping26-Jul-03 19:01
phlipping26-Jul-03 19:01 
QuestionHow reliable is "cin" for receiving data? Pin
WREY26-Jul-03 17:56
WREY26-Jul-03 17:56 
AnswerRe: How reliable is "cin" for receiving data? Pin
Beer2626-Jul-03 18:12
Beer2626-Jul-03 18:12 
GeneralRe: How reliable is "cin" for receiving data? Pin
WREY26-Jul-03 18:48
WREY26-Jul-03 18:48 
GeneralRe: How reliable is "cin" for receiving data? Pin
Ryan Binns26-Jul-03 20:26
Ryan Binns26-Jul-03 20:26 
Using gets() is about as unsafe as you can do it. What if the user types more than 80 characters? Buffer overflow. That it what causes crashes. At least use fgets() where you can actually specify the size of the buffer.

There is nothing wrong with using the STL streams. I would choose it every time over gets().

Ryan
"Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

GeneralRe: How reliable is "cin" for receiving data? Pin
Beer2627-Jul-03 2:48
Beer2627-Jul-03 2:48 
GeneralRe: How reliable is "cin" for receiving data? Pin
Ryan Binns27-Jul-03 4:06
Ryan Binns27-Jul-03 4:06 
GeneralRe: How reliable is "cin" for receiving data? Pin
Beer2627-Jul-03 4:37
Beer2627-Jul-03 4:37 
GeneralRe: How reliable is "cin" for receiving data? Pin
Bob Stanneveld27-Jul-03 8:16
Bob Stanneveld27-Jul-03 8:16 
QuestionHow can I execute a .chm file? Pin
DanYELL26-Jul-03 15:25
DanYELL26-Jul-03 15:25 
AnswerRe: How can I execute a .chm file? Pin
Beer2626-Jul-03 15:50
Beer2626-Jul-03 15:50 
AnswerRe: How can I execute a .chm file? Pin
Beer2626-Jul-03 15:53
Beer2626-Jul-03 15:53 
GeneralRe: How can I execute a .chm file? Pin
DanYELL26-Jul-03 16:12
DanYELL26-Jul-03 16:12 
AnswerRe: How can I execute a .chm file? Pin
pranavamhari26-Jul-03 16:29
pranavamhari26-Jul-03 16:29 
GeneralRe: How can I execute a .chm file? Pin
Hashim Saleem27-Jul-03 2:41
Hashim Saleem27-Jul-03 2:41 
GeneralRe: How can I execute a .chm file? Pin
Hashim Saleem27-Jul-03 4:07
Hashim Saleem27-Jul-03 4:07 
QuestionHow to put background image into CListCtrl. Pin
Artem Moroz26-Jul-03 12:58
Artem Moroz26-Jul-03 12:58 
AnswerRe: How to put background image into CListCtrl. Pin
Beer2626-Jul-03 13:08
Beer2626-Jul-03 13:08 
AnswerRe: How to put background image into CListCtrl. Pin
Michael Dunn26-Jul-03 13:45
sitebuilderMichael Dunn26-Jul-03 13:45 
GeneralRetrieving selected item in Classview from add-in Pin
joltman26-Jul-03 9:36
joltman26-Jul-03 9:36 
GeneralRe: Retrieving selected item in Classview from add-in Pin
Beer2626-Jul-03 11:03
Beer2626-Jul-03 11:03 
GeneralSDI View question Pin
DougW4826-Jul-03 7:57
DougW4826-Jul-03 7:57 

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.