Thread: Updating without pressing a button

  1. #16
    Join Date
    Oct 2007
    Inside my computer
    Then you have some learning to do.
    Avoid sprintf(_s). Alternatives for C++ is Boost Format. Either it's vendor lockin (ie, not portable), or it's a security risk.
    Instead of C-style strings, use std::string. You can still use the member function c_str() to get a C-style string to pass to Win API.
    But even better, scrap Win32 Programming and learn a framework, such as Qt.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  2. #17
    Registered User
    Join Date
    Feb 2010


    Yes - I certainly do! I've made programs using this syntax before though, and they've always compiled and run fine on my computer, and on everyone else's who has used them, with no problems arising. I've only learned programming from internet tutorials though so I may well be a bit sloppy.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to make pressing a button do something?
    By SterlingM in forum C++ Programming
    Replies: 2
    Last Post: 05-22-2011, 06:12 PM
  2. Virtually pressing a button
    By Queatrix in forum Windows Programming
    Replies: 4
    Last Post: 08-19-2005, 10:19 AM
  3. Pressing a button works sometimes
    By johny145 in forum Windows Programming
    Replies: 14
    Last Post: 05-18-2005, 11:53 AM
  4. Pressing A Button on Dos..
    By yakabod in forum A Brief History of
    Replies: 8
    Last Post: 01-30-2003, 07:46 AM
  5. Pressing a button in another app
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 03-11-2002, 12:53 PM