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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frank

    #1

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

    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


  • Cor Ligthert [MVP]

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

    Frank,

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

    Cor

    " Frank" <frank@a-znet.comschreef in bericht
    news:eHyCtaHSHH A.1600@TK2MSFTN GP05.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
    >

    Comment

    • Jay B. Harlow [MVP - Outlook]

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

      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" <frank@a-znet.comwrote in message
      news:eHyCtaHSHH A.1600@TK2MSFTN GP05.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
      >

      Comment

      • Frank

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


        "Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
        news:uNzYN1HSHH A.996@TK2MSFTNG P02.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" <frank@a-znet.comschreef in bericht
        news:eHyCtaHSHH A.1600@TK2MSFTN GP05.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
        >>
        >
        >

        Comment

        • Frank

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


          "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP @tsbradley.netw rote in
          message news:ONdXuPJSHH A.1200@TK2MSFTN GP04.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" <frank@a-znet.comwrote in message
          news:eHyCtaHSHH A.1600@TK2MSFTN GP05.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
          >>
          >

          Comment

          • Cor Ligthert [MVP]

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

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



            " Frank" <frank@a-znet.comschreef in bericht
            news:%23mn4d1JS HHA.1200@TK2MSF TNGP02.phx.gbl. ..
            >
            "Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
            news:uNzYN1HSHH A.996@TK2MSFTNG P02.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" <frank@a-znet.comschreef in bericht
            >news:eHyCtaHSH HA.1600@TK2MSFT NGP05.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
            >>>
            >>
            >>
            >
            >

            Comment

            • Frank

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

              Some, not all, usercontrols have for example:

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

              ....ControlNote s\AssemblyInfo. vb(20):<Assembl y:
              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]" <Jay_Harlow_MVP @tsbradley.netw rote in
              message news:ONdXuPJSHH A.1200@TK2MSFTN GP04.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" <frank@a-znet.comwrote in message
              news:eHyCtaHSHH A.1600@TK2MSFTN GP05.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
              >>
              >

              Comment

              • Frank

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

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





                "Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
                news:eePd36JSHH A.412@TK2MSFTNG P02.phx.gbl...
                http://msdn2.microsoft.com/en-us/lib...ing.mutex.aspx
                >
                >
                >
                " Frank" <frank@a-znet.comschreef in bericht
                news:%23mn4d1JS HHA.1200@TK2MSF TNGP02.phx.gbl. ..
                >>
                >"Cor Ligthert [MVP]" <notmyfirstname @planet.nlwrote in message
                >news:uNzYN1HSH HA.996@TK2MSFTN GP02.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" <frank@a-znet.comschreef in bericht
                >>news:eHyCtaHS HHA.1600@TK2MSF TNGP05.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
                >>>>
                >>>
                >>>
                >>
                >>
                >
                >

                Comment

                • Frank

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


                  "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP @tsbradley.netw rote in
                  message news:ONdXuPJSHH A.1200@TK2MSFTN GP04.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


                  Comment

                  • Jay B. Harlow [MVP - Outlook]

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

                    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.v b(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" <frank@a-znet.comwrote in message
                    news:uqwMwLKSHH A.2228@TK2MSFTN GP03.phx.gbl...
                    Some, not all, usercontrols have for example:
                    >
                    ...ControlNotes \AssemblyInfo.v b(19):'The following GUID is for the ID of
                    the typelib if this project is exposed to COM
                    >
                    ...ControlNotes \AssemblyInfo.v b(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]" <Jay_Harlow_MVP @tsbradley.netw rote in
                    message news:ONdXuPJSHH A.1200@TK2MSFTN GP04.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" <frank@a-znet.comwrote in message
                    >news:eHyCtaHSH HA.1600@TK2MSFT NGP05.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
                    >>>
                    >>
                    >
                    >

                    Comment

                    • Frank

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


                      "Jay B. Harlow [MVP - Outlook]" <Jay_Harlow_MVP @tsbradley.netw rote in
                      message news:50A37413-0214-4B18-BE04-D12EED4F9AA7@mi crosoft.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:
                      >
                      >...ControlNote s\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" <frank@a-znet.comwrote in message
                      news:uqwMwLKSHH A.2228@TK2MSFTN GP03.phx.gbl...
                      >Some, not all, usercontrols have for example:
                      >>
                      >...ControlNote s\AssemblyInfo. vb(19):'The following GUID is for the ID of
                      >the typelib if this project is exposed to COM
                      >>
                      >...ControlNote s\AssemblyInfo. vb(20):<Assembl y:
                      >Guid("299A64 15-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]" <Jay_Harlow_MVP @tsbradley.netw rote in
                      >message news:ONdXuPJSHH A.1200@TK2MSFTN GP04.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" <frank@a-znet.comwrote in message
                      >>news:eHyCtaHS HHA.1600@TK2MSF TNGP05.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
                      >>>>
                      >>>
                      >>
                      >>
                      >

                      Comment

                      Working...