Open a file

This is a discussion on Open a file within the Windows Programming forums, part of the Platform Specific Boards category; How can I make my program open a file as an user would've clicked on it. So it opens that ...

  1. #1
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318

    Open a file

    How can I make my program open a file as an user would've clicked on it. So it opens that file with the program that file type is assigned to?

    I would like to use WinAPI function for that.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  2. #2
    Registered User
    Join Date
    Jul 2005
    Posts
    25
    Check out ShellExecute.

  3. #3
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Thanks. That seems to be what I was looking for.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Data Structure Eror
    By prominababy in forum C Programming
    Replies: 3
    Last Post: 01-06-2009, 08:35 AM
  2. Need Help Fixing My C Program. Deals with File I/O
    By Matus in forum C Programming
    Replies: 7
    Last Post: 04-29-2008, 07:51 PM
  3. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 01:53 AM
  4. Encryption program
    By zeiffelz in forum C Programming
    Replies: 1
    Last Post: 06-15-2005, 03:39 AM

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