Greetings,

I have inherited a workspace with 2 projects in it. Looking at the
directory I see that the .cpp files for the first created project are
in the workspace directory and the .cpp files for the 2nd project are
in a sub-folder. In the workspace and the new project folder there is
a file named UsbHid.cpp. This does not cause a problem for VS but to
avoid confusion for me and others I would like to rename the file in
the sub-folder. It is more difficult than I thought. I can change the
name by external means but the project clings to the old name.

Is there a clean way to do this? I don't immediately see a way to
delete files and/or projects.


Thanx,

jh

Re: Changing file names in VS projects. by Igor

Igor
Thu Feb 22 10:37:25 CST 2007

HMS Surprise <john@datavoiceint.com> wrote:
> I have inherited a workspace with 2 projects in it. Looking at the
> directory I see that the .cpp files for the first created project are
> in the workspace directory and the .cpp files for the 2nd project are
> in a sub-folder. In the workspace and the new project folder there is
> a file named UsbHid.cpp. This does not cause a problem for VS but to
> avoid confusion for me and others I would like to rename the file in
> the sub-folder. It is more difficult than I thought. I can change the
> name by external means but the project clings to the old name.

Just remove the old file from the project and add a new one.

> Is there a clean way to do this? I don't immediately see a way to
> delete files and/or projects.

What do you mean? Click a file in Solution Explorer, hit Del key. Or
right-click and choose Remove. Or choose Edit | Remove from the menu. To
add a new file, do Project | Add Existing Item
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925



Re: Changing file names in VS projects. by HMS

HMS
Thu Feb 22 10:59:23 CST 2007

Thanks for posting.

We are using VS6. Where is Solution Explorer?

thanks again,

jh



Re: Changing file names in VS projects. by Igor

Igor
Thu Feb 22 11:03:13 CST 2007

HMS Surprise <john@datavoiceint.com> wrote:
> Thanks for posting.
>
> We are using VS6. Where is Solution Explorer?

I don't have VC6 handy at the moment. The equivalent of Solution
Explorer is there, but may be called differently. It's that tree view
that lists all the files in the project.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925



Re: Changing file names in VS projects. by David

David
Thu Feb 22 11:08:02 CST 2007

Igor Tandetnik wrote:

> HMS Surprise <john@datavoiceint.com> wrote:
>
>>Thanks for posting.
>>
>>We are using VS6. Where is Solution Explorer?
>
>
> I don't have VC6 handy at the moment. The equivalent of Solution
> Explorer is there, but may be called differently. It's that tree view
> that lists all the files in the project.

It's the File View tab in the workspace window.

David Wilkinson


Re: Changing file names in VS projects. by HMS

HMS
Thu Feb 22 11:50:10 CST 2007

On Feb 22, 11:08 am, David Wilkinson <no-re...@effisols.com> wrote:
> Igor Tandetnik wrote:
> > HMS Surprise <j...@datavoiceint.com> wrote:
>
> >>Thanks for posting.
>
> >>We are using VS6. Where is Solution Explorer?
>
> > I don't have VC6 handy at the moment. The equivalent of Solution
> > Explorer is there, but may be called differently. It's that tree view
> > that lists all the files in the project.
>
> It's the File View tab in the workspace window.
>
> David Wilkinson

... the file view tab, I was expecting something much more elaborate.
Right click shows no delete option but the delete key sure works. No
muss, no fuss, no "Are you sure?". I suppose that is because undo is a
click away.

Thanks all,

jh