Hi,

Iam newbie in visual c++. I want a windows application such that when i click the executable file it should ask for the file to be opened.How can i dothis ?

You need to initialize an OPENFILENAME structure which defines a dialog box.A call to GetOpenFileName() with the required arguments will create the dialog box.Look that up on msdn.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.