Save vs Save As.... OPENFILENAME flags

This is a discussion on Save vs Save As.... OPENFILENAME flags within the Windows Programming forums, part of the Platform Specific Boards category; MFC is a C++ Framework for creating GUIs. One of many frameworks, in fact. They are lots and lots of ...

  1. #16
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,790
    MFC is a C++ Framework for creating GUIs. One of many frameworks, in fact. They are lots and lots of frameworks for GUI programming. A lot are written in C++, some in C.
    TCHAR is a define that allows your program to be compiled as both char or wchar_t without problems.
    Basically, all you do is use TCHAR instead of char or wchar_t and append _T or TEXT around every string literal:
    _T("My text")

    Then you can compile it either with char or wchar_t without modifications.
    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
    Algorithm Dissector iMalc's Avatar
    Join Date
    Dec 2005
    Location
    New Zealand
    Posts
    6,308
    Glad to see some of you picked up that it was C++ish pseudocode.
    In the case where C is being used, I think passing in the buffer is a good way to go.
    My homepage
    Advice: Take only as directed - If symptoms persist, please see your debugger

    Linus Torvalds: "But it clearly is the only right way. The fact that everybody else does it some other way only means that they are wrong"

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. save and save as functions
    By willc0de4food in forum Windows Programming
    Replies: 2
    Last Post: 06-29-2005, 02:49 AM
  2. save webpage? some save some not
    By kryptkat in forum Tech Board
    Replies: 3
    Last Post: 06-07-2005, 09:21 AM
  3. Ask user to save file before exiting.
    By Bajanine in forum Windows Programming
    Replies: 3
    Last Post: 11-15-2004, 05:34 PM
  4. Request for comments
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 15
    Last Post: 01-02-2004, 09:33 AM
  5. Major glitch losing source files with MSVC++ and WinXP
    By JasonD in forum C++ Programming
    Replies: 10
    Last Post: 08-14-2003, 12:15 PM

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