CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    May 1999
    Posts
    13

    Opening different filetypes

    Hi,
    I'm trying to build a command-line program to open files in their registered editors/viewers.
    The use of this application should be like :
    "open test.doc" : this would open the file test.doc in word, and "open test.txt" would open test.txt in notepad.

    I know GetClassFile to get a CLSID, but i don't know how to go on from there. Any hints/tips?




  2. #2
    Join Date
    Apr 1999
    Posts
    48

    Re: Opening different filetypes

    The ShellExecute() function will actually do 99% of the work for you.

    Roger.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured