Getting a string with the name of the current file

This is a discussion on Getting a string with the name of the current file within the C++ Programming forums, part of the General Programming Boards category; I'm writing a little MFC application and need to show a message box in which the name of the file ...

  1. #1
    Registered User
    Join Date
    Oct 2003
    Posts
    16

    Getting a string with the name of the current file

    I'm writing a little MFC application and need to show a message box in which the name of the file that's currently open appears. How can I get a CString with this name? (it's an SDI application)
    Thanks!

  2. #2
    Registered User
    Join Date
    Oct 2003
    Posts
    16

    Smile

    Never mind, I figured it out!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Basic text file encoder
    By Abda92 in forum C Programming
    Replies: 15
    Last Post: 05-22-2007, 01:19 PM
  2. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 09:46 AM
  3. Headers that use each other
    By nickname_changed in forum C++ Programming
    Replies: 7
    Last Post: 10-03-2003, 04:25 AM
  4. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 04:10 PM
  5. Need a suggestion on a school project..
    By Screwz Luse in forum C Programming
    Replies: 5
    Last Post: 11-27-2001, 01:58 AM

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