Thread: Create a Link to a Local File?

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    224

    Create a Link to a Local File?

    Hi,

    I am building a MFC application in C++.

    I am at the bells and whistles stage of development. What I want is to be able to display a link in a message box to the output file/folder.

    What I currently have is a message box which pops up and displays as static text the results file path. But I would really like this to be a link to the folder containing the file.

    Has anyone done this before or know how I can do it?

    Cheers

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Not supported by MFC. A solution might be OptionTree (see Codeproject.com), perhaps. Or some other custom label control out there. I'm sure there exists some.
    I would believe hyperlinks are also supported by other frameworks, 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.

  3. #3
    Registered User
    Join Date
    Nov 2006
    Posts
    224
    Hi, thanks for your reply :-)

    Isn't there anything I could do similar to a shortcut. Like on Windows were you can make a shortcut to a particular application or folder on your desktop. Would there be a way to kind of use a similar method???
    Btw, I haven't got a clue how to do it. Just wondered if anyone could point me in the right direction.

    Cheers

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    There is nothing supported by MFC. You will have to create your own drawing handler and mouse click handler.
    The easiest way is simply to find a library that supports such things.
    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.

  5. #5

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. create a symbolic link in a MakeFile
    By zahid990170 in forum Tech Board
    Replies: 1
    Last Post: 05-17-2011, 07:54 AM
  2. data from terminal to a local file.
    By jas_atwal in forum Linux Programming
    Replies: 4
    Last Post: 12-12-2007, 05:14 PM
  3. [Help] IPv6 Link-local scope id
    By dudupig in forum Networking/Device Communication
    Replies: 6
    Last Post: 08-06-2006, 09:49 PM
  4. Create A New Thread And Link To The One You Want To Reference
    By ChadJohnson in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 07-07-2005, 06:08 PM
  5. Create Link List for object
    By winsonlee in forum C++ Programming
    Replies: 6
    Last Post: 08-05-2004, 01:57 PM