By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,462 Members | 3,388 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,462 IT Pros & Developers. It's quick & easy.

I don't know enough of what's inside VS2005 to know if what I'm doing need correcting

P: n/a
I've done this a few times.

In a solution I have a project, Say P1, and need another project that will
contain much code that is similar to that of P1.

I hope no one gets hung up on why I don't somehow share the code.

So, I copy the folder P1 is in, change the new folder name, and is VS2005 to
change all occurrences of P1's name tp P2's name.

Then open the solution and include P2 into the solution.

Now I'm wondering if P1 has some GUID, or reference to the registry that
I've copied so that something that should be unique is now being used twice.

Anyone familiar enough with inside VS2005 to know if what I'm doing need
correcting or avoiding?

Thanks
Feb 4 '07 #1
Share this Question
Share on Google+
10 Replies


P: n/a
Frank,

Don't worry most of us don't need your code especially not if you don't know
the Mutex

Cor

" Frank" <fr***@a-znet.comschreef in bericht
news:eH**************@TK2MSFTNGP05.phx.gbl...
I've done this a few times.

In a solution I have a project, Say P1, and need another project that will
contain much code that is similar to that of P1.

I hope no one gets hung up on why I don't somehow share the code.

So, I copy the folder P1 is in, change the new folder name, and is VS2005
to change all occurrences of P1's name tp P2's name.

Then open the solution and include P2 into the solution.

Now I'm wondering if P1 has some GUID, or reference to the registry that
I've copied so that something that should be unique is now being used
twice.

Anyone familiar enough with inside VS2005 to know if what I'm doing need
correcting or avoiding?

Thanks

Feb 4 '07 #2

P: n/a
Frank,
Is your project/objects COM enabled? If they are then you need to worry
about GUID's if they are not, you probably don't...

That being said, you can use "Project - Properties - Application - Assembly
Information" to get to the GUID used by your project

Using "Edit - Find and Replace - Find in Files" for "Guid" should get you
any other guids that are used on types (classes, structures), you're looking
for the Guid attribute, not variables of type Guid.
FWIW: Rather then copy the entire project, I would create a new project,
than use "Project - Add Existing Files" to add the files of the old project
to the new project. I would consider using the "add as link" feature so
there is only a single copy of the file...

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
" Frank" <fr***@a-znet.comwrote in message
news:eH**************@TK2MSFTNGP05.phx.gbl...
I've done this a few times.

In a solution I have a project, Say P1, and need another project that will
contain much code that is similar to that of P1.

I hope no one gets hung up on why I don't somehow share the code.

So, I copy the folder P1 is in, change the new folder name, and is VS2005
to change all occurrences of P1's name tp P2's name.

Then open the solution and include P2 into the solution.

Now I'm wondering if P1 has some GUID, or reference to the registry that
I've copied so that something that should be unique is now being used
twice.

Anyone familiar enough with inside VS2005 to know if what I'm doing need
correcting or avoiding?

Thanks
Feb 4 '07 #3

P: n/a

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:uN*************@TK2MSFTNGP02.phx.gbl...
Frank,

Don't worry most of us don't need your code especially not if you don't
know the Mutex
What is this all about?
Did you intend this for someone else?
I'm sure you don't need or even want my code!
>
Cor

" Frank" <fr***@a-znet.comschreef in bericht
news:eH**************@TK2MSFTNGP05.phx.gbl...
>I've done this a few times.

In a solution I have a project, Say P1, and need another project that
will contain much code that is similar to that of P1.

I hope no one gets hung up on why I don't somehow share the code.

So, I copy the folder P1 is in, change the new folder name, and is VS2005
to change all occurrences of P1's name tp P2's name.

Then open the solution and include P2 into the solution.

Now I'm wondering if P1 has some GUID, or reference to the registry that
I've copied so that something that should be unique is now being used
twice.

Anyone familiar enough with inside VS2005 to know if what I'm doing need
correcting or avoiding?

Thanks


Feb 4 '07 #4

P: n/a

"Jay B. Harlow [MVP - Outlook]" <Ja************@tsbradley.netwrote in
message news:ON**************@TK2MSFTNGP04.phx.gbl...
Frank,
Is your project/objects COM enabled? If they are then you need to worry
about GUID's if they are not, you probably don't...

That being said, you can use "Project - Properties - Application -
Assembly Information" to get to the GUID used by your project

Using "Edit - Find and Replace - Find in Files" for "Guid" should get you
any other guids that are used on types (classes, structures), you're
looking for the Guid attribute, not variables of type Guid.
FWIW: Rather then copy the entire project, I would create a new project,
than use "Project - Add Existing Files" to add the files of the old
project to the new project. I would consider using the "add as link"
feature so there is only a single copy of the file...
I'll do the checks you mentioned.
Can't use a single copy because the procedure is only to generate something
like a template- that is, a point to start changing and adding.
Thanks

>
--
Hope this helps
Jay B. Harlow [MVP - Outlook]
.NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
" Frank" <fr***@a-znet.comwrote in message
news:eH**************@TK2MSFTNGP05.phx.gbl...
>I've done this a few times.

In a solution I have a project, Say P1, and need another project that
will contain much code that is similar to that of P1.

I hope no one gets hung up on why I don't somehow share the code.

So, I copy the folder P1 is in, change the new folder name, and is VS2005
to change all occurrences of P1's name tp P2's name.

Then open the solution and include P2 into the solution.

Now I'm wondering if P1 has some GUID, or reference to the registry that
I've copied so that something that should be unique is now being used
twice.

Anyone familiar enough with inside VS2005 to know if what I'm doing need
correcting or avoiding?

Thanks

Feb 4 '07 #5

P: n/a
http://msdn2.microsoft.com/en-us/lib...ing.mutex.aspx

" Frank" <fr***@a-znet.comschreef in bericht
news:%2****************@TK2MSFTNGP02.phx.gbl...
>
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:uN*************@TK2MSFTNGP02.phx.gbl...
>Frank,

Don't worry most of us don't need your code especially not if you don't
know the Mutex

What is this all about?
Did you intend this for someone else?
I'm sure you don't need or even want my code!
>>
Cor

" Frank" <fr***@a-znet.comschreef in bericht
news:eH**************@TK2MSFTNGP05.phx.gbl...
>>I've done this a few times.

In a solution I have a project, Say P1, and need another project that
will contain much code that is similar to that of P1.

I hope no one gets hung up on why I don't somehow share the code.

So, I copy the folder P1 is in, change the new folder name, and is
VS2005 to change all occurrences of P1's name tp P2's name.

Then open the solution and include P2 into the solution.

Now I'm wondering if P1 has some GUID, or reference to the registry that
I've copied so that something that should be unique is now being used
twice.

Anyone familiar enough with inside VS2005 to know if what I'm doing need
correcting or avoiding?

Thanks



Feb 4 '07 #6

P: n/a
Some, not all, usercontrols have for example:

....ControlNotes\AssemblyInfo.vb(19):'The following GUID is for the ID of the
typelib if this project is exposed to COM

....ControlNotes\AssemblyInfo.vb(20):<Assembly:
Guid("299A6415-243D-42AB-9B8A-8E168555F99B")>

why some but not all?

I used your suggestion:

"Project - Properties - Application - Assembly Information"

and verified that some have a GUID and some don't.

Thanks, all the GUIDs I saw have different values, although I don't know why
they have any at all. What are they used for?



"Jay B. Harlow [MVP - Outlook]" <Ja************@tsbradley.netwrote in
message news:ON**************@TK2MSFTNGP04.phx.gbl...
Frank,
Is your project/objects COM enabled? If they are then you need to worry
about GUID's if they are not, you probably don't...

That being said, you can use "Project - Properties - Application -
Assembly Information" to get to the GUID used by your project

Using "Edit - Find and Replace - Find in Files" for "Guid" should get you
any other guids that are used on types (classes, structures), you're
looking for the Guid attribute, not variables of type Guid.
FWIW: Rather then copy the entire project, I would create a new project,
than use "Project - Add Existing Files" to add the files of the old
project to the new project. I would consider using the "add as link"
feature so there is only a single copy of the file...

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
.NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
" Frank" <fr***@a-znet.comwrote in message
news:eH**************@TK2MSFTNGP05.phx.gbl...
>I've done this a few times.

In a solution I have a project, Say P1, and need another project that
will contain much code that is similar to that of P1.

I hope no one gets hung up on why I don't somehow share the code.

So, I copy the folder P1 is in, change the new folder name, and is VS2005
to change all occurrences of P1's name tp P2's name.

Then open the solution and include P2 into the solution.

Now I'm wondering if P1 has some GUID, or reference to the registry that
I've copied so that something that should be unique is now being used
twice.

Anyone familiar enough with inside VS2005 to know if what I'm doing need
correcting or avoiding?

Thanks

Feb 4 '07 #7

P: n/a
Cor
Someone else is probably looking for help on mutex and not getting it
because your sending the help to me!

"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:ee*************@TK2MSFTNGP02.phx.gbl...
http://msdn2.microsoft.com/en-us/lib...ing.mutex.aspx

" Frank" <fr***@a-znet.comschreef in bericht
news:%2****************@TK2MSFTNGP02.phx.gbl...
>>
"Cor Ligthert [MVP]" <no************@planet.nlwrote in message
news:uN*************@TK2MSFTNGP02.phx.gbl...
>>Frank,

Don't worry most of us don't need your code especially not if you don't
know the Mutex

What is this all about?
Did you intend this for someone else?
I'm sure you don't need or even want my code!
>>>
Cor

" Frank" <fr***@a-znet.comschreef in bericht
news:eH**************@TK2MSFTNGP05.phx.gbl...
I've done this a few times.

In a solution I have a project, Say P1, and need another project that
will contain much code that is similar to that of P1.

I hope no one gets hung up on why I don't somehow share the code.

So, I copy the folder P1 is in, change the new folder name, and is
VS2005 to change all occurrences of P1's name tp P2's name.

Then open the solution and include P2 into the solution.

Now I'm wondering if P1 has some GUID, or reference to the registry
that I've copied so that something that should be unique is now being
used twice.

Anyone familiar enough with inside VS2005 to know if what I'm doing
need correcting or avoiding?

Thanks



Feb 4 '07 #8

P: n/a

"Jay B. Harlow [MVP - Outlook]" <Ja************@tsbradley.netwrote in
message news:ON**************@TK2MSFTNGP04.phx.gbl...
Frank,
Is your project/objects COM enabled? If they are then you need to worry
about GUID's if they are not, you probably don't...
Not sure what this means. I never expect to use these usercontrols with
COM. Of course, I dont't know what the IDE, or framework does with them

>
That being said, you can use "Project - Properties - Application -
Assembly Information" to get to the GUID used by your project
I've found this and find that some projects have GUIDs and some don't.

There is also a check box for COM-Visible but it is checked even if there is
no GUID.
Should that box be checked - as far as I know I have nothing to do with COM.

Some of these projects cane from VB6 - maybe the GUID came from there. Is
there any reason I should have GUIDs for non-COM dotNET code?

Thanks
Feb 4 '07 #9

P: n/a
Frank,
Thanks, all the GUIDs I saw have different values, although I don't know
why they have any at all. What are they used for?
As the comment states:
...ControlNotes\AssemblyInfo.vb(19):'The following GUID is for the ID of
the typelib if this project is exposed to COM
The GUID in AssemblyInfo.vb is the same guid as found under project
properties.
>Is your project/objects COM enabled? If they are then you need to worry
about GUID's if they are not, you probably don't...

Not sure what this means. I never expect to use these usercontrols with
COM.
COM is based on GUIDs. If you are using your components from COM (aka they
are COM enabled) then the GUIDs are important. If you are using the
components purely from .NET, then the GUIDs are not important.

Of course, I dont't know what the IDE, or framework does with them
The IDE & Framework uses them for enabling COM interop.
--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
" Frank" <fr***@a-znet.comwrote in message
news:uq**************@TK2MSFTNGP03.phx.gbl...
Some, not all, usercontrols have for example:

...ControlNotes\AssemblyInfo.vb(19):'The following GUID is for the ID of
the typelib if this project is exposed to COM

...ControlNotes\AssemblyInfo.vb(20):<Assembly:
Guid("299A6415-243D-42AB-9B8A-8E168555F99B")>

why some but not all?

I used your suggestion:

"Project - Properties - Application - Assembly Information"

and verified that some have a GUID and some don't.

Thanks, all the GUIDs I saw have different values, although I don't know
why they have any at all. What are they used for?



"Jay B. Harlow [MVP - Outlook]" <Ja************@tsbradley.netwrote in
message news:ON**************@TK2MSFTNGP04.phx.gbl...
>Frank,
Is your project/objects COM enabled? If they are then you need to worry
about GUID's if they are not, you probably don't...

That being said, you can use "Project - Properties - Application -
Assembly Information" to get to the GUID used by your project

Using "Edit - Find and Replace - Find in Files" for "Guid" should get you
any other guids that are used on types (classes, structures), you're
looking for the Guid attribute, not variables of type Guid.
FWIW: Rather then copy the entire project, I would create a new project,
than use "Project - Add Existing Files" to add the files of the old
project to the new project. I would consider using the "add as link"
feature so there is only a single copy of the file...

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
.NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
" Frank" <fr***@a-znet.comwrote in message
news:eH**************@TK2MSFTNGP05.phx.gbl...
>>I've done this a few times.

In a solution I have a project, Say P1, and need another project that
will contain much code that is similar to that of P1.

I hope no one gets hung up on why I don't somehow share the code.

So, I copy the folder P1 is in, change the new folder name, and is
VS2005 to change all occurrences of P1's name tp P2's name.

Then open the solution and include P2 into the solution.

Now I'm wondering if P1 has some GUID, or reference to the registry that
I've copied so that something that should be unique is now being used
twice.

Anyone familiar enough with inside VS2005 to know if what I'm doing need
correcting or avoiding?

Thanks

Feb 5 '07 #10

P: n/a

"Jay B. Harlow [MVP - Outlook]" <Ja************@tsbradley.netwrote in
message news:50**********************************@microsof t.com...
Frank,
>Thanks, all the GUIDs I saw have different values, although I don't know
why they have any at all. What are they used for?
As the comment states:
>...ControlNotes\AssemblyInfo.vb(19):'The following GUID is for the ID of
the typelib if this project is exposed to COM

The GUID in AssemblyInfo.vb is the same guid as found under project
properties.
>>Is your project/objects COM enabled? If they are then you need to worry
about GUID's if they are not, you probably don't...

Not sure what this means. I never expect to use these usercontrols with
COM.
COM is based on GUIDs. If you are using your components from COM (aka they
are COM enabled) then the GUIDs are important. If you are using the
components purely from .NET, then the GUIDs are not important.
Thanks, This clears it up.
>
>Of course, I dont't know what the IDE, or framework does with them
The IDE & Framework uses them for enabling COM interop.
--
Hope this helps
Jay B. Harlow [MVP - Outlook]
.NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
" Frank" <fr***@a-znet.comwrote in message
news:uq**************@TK2MSFTNGP03.phx.gbl...
>Some, not all, usercontrols have for example:

...ControlNotes\AssemblyInfo.vb(19):'The following GUID is for the ID of
the typelib if this project is exposed to COM

...ControlNotes\AssemblyInfo.vb(20):<Assembly:
Guid("299A6415-243D-42AB-9B8A-8E168555F99B")>

why some but not all?

I used your suggestion:

"Project - Properties - Application - Assembly Information"

and verified that some have a GUID and some don't.

Thanks, all the GUIDs I saw have different values, although I don't know
why they have any at all. What are they used for?



"Jay B. Harlow [MVP - Outlook]" <Ja************@tsbradley.netwrote in
message news:ON**************@TK2MSFTNGP04.phx.gbl...
>>Frank,
Is your project/objects COM enabled? If they are then you need to worry
about GUID's if they are not, you probably don't...

That being said, you can use "Project - Properties - Application -
Assembly Information" to get to the GUID used by your project

Using "Edit - Find and Replace - Find in Files" for "Guid" should get
you any other guids that are used on types (classes, structures), you're
looking for the Guid attribute, not variables of type Guid.
FWIW: Rather then copy the entire project, I would create a new project,
than use "Project - Add Existing Files" to add the files of the old
project to the new project. I would consider using the "add as link"
feature so there is only a single copy of the file...

--
Hope this helps
Jay B. Harlow [MVP - Outlook]
.NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley - http://www.tsbradley.net
" Frank" <fr***@a-znet.comwrote in message
news:eH**************@TK2MSFTNGP05.phx.gbl...
I've done this a few times.

In a solution I have a project, Say P1, and need another project that
will contain much code that is similar to that of P1.

I hope no one gets hung up on why I don't somehow share the code.

So, I copy the folder P1 is in, change the new folder name, and is
VS2005 to change all occurrences of P1's name tp P2's name.

Then open the solution and include P2 into the solution.

Now I'm wondering if P1 has some GUID, or reference to the registry
that I've copied so that something that should be unique is now being
used twice.

Anyone familiar enough with inside VS2005 to know if what I'm doing
need correcting or avoiding?

Thanks



Feb 5 '07 #11

This discussion thread is closed

Replies have been disabled for this discussion.