7 Replies - 13352 Views - Last Post: 13 October 2012 - 03:04 AM Rate Topic: -----

#1 frostraver  Icon User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 93
  • Joined: 11-September 12

Simple Open FIle Dialog - C++

Posted 12 October 2012 - 12:54 PM

Hi everyone,
I'm trying to make a simple dialog to select a file on your computer for my program.
I've been searching all ove rthe internet and couldn't fin anything. I tried with the information from MSDN and other sites but can't seem to do it.

The thing is: I need my user to select a file and that selection should return the directory of that file.

Is there anybody who can help me with this?

Thanks in advance

Is This A Good Question/Topic? 0
  • +

Replies To: Simple Open FIle Dialog - C++

#2 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6066
  • View blog
  • Posts: 23,526
  • Joined: 23-August 08

Re: Simple Open FIle Dialog - C++

Posted 12 October 2012 - 01:06 PM

Is this a .NET project or a Win32 project?
Was This Post Helpful? 0
  • +
  • -

#3 frostraver  Icon User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 93
  • Joined: 11-September 12

Re: Simple Open FIle Dialog - C++

Posted 12 October 2012 - 01:09 PM

It's a normal Win32 Project. I should've mentioned that...
Was This Post Helpful? 0
  • +
  • -

#4 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6066
  • View blog
  • Posts: 23,526
  • Joined: 23-August 08

Re: Simple Open FIle Dialog - C++

Posted 12 October 2012 - 01:58 PM

And what is the OS version? Maybe this page is a good place to start?
Was This Post Helpful? 0
  • +
  • -

#5 frostraver  Icon User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 93
  • Joined: 11-September 12

Re: Simple Open FIle Dialog - C++

Posted 12 October 2012 - 02:50 PM

I'm using Windows 7. I should really learn to be complete in my descriptions.
Was This Post Helpful? 0
  • +
  • -

#6 #define  Icon User is offline

  • Duke of Err
  • member icon

Reputation: 1353
  • View blog
  • Posts: 4,660
  • Joined: 19-February 09

Re: Simple Open FIle Dialog - C++

Posted 12 October 2012 - 03:33 PM

An example, two thirds of the way down the page - Dialogs.
Was This Post Helpful? 0
  • +
  • -

#7 JackOfAllTrades  Icon User is offline

  • Saucy!
  • member icon

Reputation: 6066
  • View blog
  • Posts: 23,526
  • Joined: 23-August 08

Re: Simple Open FIle Dialog - C++

Posted 13 October 2012 - 02:47 AM

Except the MSDN link I provided says this:

Quote

[Starting with Windows Vista, the Open and Save As common dialog boxes have been superseded by the Common Item Dialog. We recommended that you use the Common Item Dialog API instead of these dialog boxes from the Common Dialog Box Library.]


which...OMFG...uses COM! I thought they ditched that? There are full examples there too.
Was This Post Helpful? 0
  • +
  • -

#8 frostraver  Icon User is offline

  • D.I.C Head

Reputation: 11
  • View blog
  • Posts: 93
  • Joined: 11-September 12

Re: Simple Open FIle Dialog - C++

Posted 13 October 2012 - 03:04 AM

Thanks guys! I'll look at those sites later today!
I hope they fix my problem.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1