1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Accessing OS elements in MFC Application

Discussion in 'MFC' started by Vyasa, Jun 16, 2010.

  1. Vyasa

    Vyasa New Member

    Joined:
    Jun 16, 2010
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    I have used a player in my application, which will play wmv format files.
    .
    Whenever we double click on the wmv files , My Application runs .

    I want to get the double clicked wmv files name in my application , because it is a OS element and I dont know how to access it .

    I can get the application path using GetApplicationPath() .

    I'm working on VC++ 6.0 MFC

    Please anyone help me out ..
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    2
    Trophy Points:
    0
    Its quite simple actually. You will get the filename as a parameter to your exe. Check the params under WinMain
     

Share This Page