tags:

views:

75

answers:

5

I need this us all known "choose file" feature in my program, so i can load files.

What is this thing called as and where is the code for it?

+2  A: 

With plain Win32 API you need to use the GetOpenFileName function, documented here. An example of its usage is available here.

Eli Bendersky
A: 

I'm assuming you want to know about the built-in Windows dialog for choosing/opening a file.

If you're doing managed code, see OpenFileDialog.

If you're doing MFC, see CFileDialog.

Håvard S
A: 

Are you talking about a dialog box where you can choose the file you want for processing, like in MS-Word's File/Open?

Hope this helps, Best regards, Tom.

tommieb75
@tommie: such replies should go into the comments, not as an answer - since no answer is provided
Eli Bendersky
@Eli: Woops...sorry about that... :(
tommieb75
+3  A: 

What you are referring to are the "common dialogs", and you can get a file open dialog with GetOpenFileName

BOOL GetOpenFileName(      
    LPOPENFILENAME lpofn
);

A sample is available here

Paul Dixon
thanks! ill take look at it.
Newbie
A: 

My intent here is not to cover programming the Windows API as there are many good books on the subject but to cover integrating it into your Lotus Notes/Domino applications. I have included several good references on more information that I found useful as I was getting started doing this and I also have a couple of examples to show you what can be done through the API. If you're doing MFC, see Brandname

Pong