Solved

Opening My Own Workspace in VC++

Posted on 2003-10-29
6
297 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Visual c++ and text files 7 60
Find Visual Studio Tools 2 92
C++ :Change value from  DisableCMD registry 4 51
show out valin of json for debugging in visaul c++ 1 16
Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
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.

895 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now