Solved

Opening My Own Workspace in VC++

Posted on 2003-10-29
6
302 Views
Last Modified: 2010-04-01
Hi,
    How can I implement same functionality of dsw(workspace) file in my program? I want that when
I click on a file with extension say ".abc" It should
open corresponding ".xyz" and ".pqr" file in the same
folder. Can i Do it using VC++?. Also if i can use VB
will it be simpler?
Any help appreciated.

-P10m
0
Comment
Question by:p10m
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
6 Comments
 
LVL 13

Expert Comment

by:SteH
ID: 9641739
Studio opens all project files mentioned in .dsw file. That can be achieved by just parsing the file .abc in your app for filenames and open those files. ABC must be a registered extension which opens with your app for that purpose.
0
 

Author Comment

by:p10m
ID: 9656455
Hi SteH,
    Can you elaborate your answer little more using syntax of VC++ 6.0 ?

First of all,
I am double clicking on file name with extension .abc in explorer. So how does my program get the name of the file and its path ? How to handle it  in my code?

Further,
How do I know which  other files are present in the same folder? Can I get list of files present in any folder using
any API?

-Thanks
p10m






0
 
LVL 13

Accepted Solution

by:
SteH earned 20 total points
ID: 9686120
I am not sure for a MFC app. Places to look for are in CWinApp::InitInstance () using
ParseCommandLine (CCommandLineInfo& cmdLine)
and looking at the command line info.

To search for files in a directory you can use the code found in
http://www.codeguru.com/forum/showthread.php?s=&threadid=231184
and just set the last parameter to false (not including subdirs).
0
 
LVL 13

Expert Comment

by:SteH
ID: 9786016
Any more help needed?
0
 
LVL 9

Expert Comment

by:tinchos
ID: 10546279
No comment has been added lately, so it's time to clean up this question.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: SteH {http:#9686120}

Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Tinchos
EE Cleanup Volunteer
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question