On 8/19/06, alex_merlin_1985 <[EMAIL PROTECTED]> wrote:

> you told that I should use fgets(), but isn't fgets() for capturing
> from file? Anyway, I tried to use gets(), it worked, but when I type
> something, it displays me the chars like in console mode and all in
> the upper-left corner, they aren't displayed in graphics, it's just
> like I'd use printf or cout...

Show your code! It's easier than having to play 20 questions.

Don't use gets() -- it's very dangerous and you have no way of
validating the length of the data being entered. It's notorious for
causing buffer overflows. Use fgets() using stdin as your input file
stream. My original question: what are were you using for handle
keyboard input?

Another option is to abandon Turbo C++ (as was originally recommended)
and use Visual C++ Express or DevC++ and develop a real Windows
program where all of your keyboard I/O is handled for you
automatically.

-- 
Brett McCoy: Programmer by Day, Guitarist by Night
http://www.alhazred.com
http://www.cassandrasyndrome.com
http://www.revelmoon.com


To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/c-prog/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to