Like Tree2Likes

Updating without pressing a button

This is a discussion on Updating without pressing a button within the Windows Programming forums, part of the Platform Specific Boards category; Then you have some learning to do. Avoid sprintf(_s). Alternatives for C++ is Boost Format. Either it's vendor lockin (ie, ...

  1. #16
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,538
    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.
    Salem likes this.
    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
    Posts
    128

    Post

    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.

Page 2 of 2 FirstFirst 12
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 Cprogramming.com
    Replies: 8
    Last Post: 01-30-2003, 06:46 AM
  5. Pressing a button in another app
    By Unregistered in forum C++ Programming
    Replies: 2
    Last Post: 03-11-2002, 11:53 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21