Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Custom Controls in VC++6

Custom Controls in VC++6

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialquestion
9 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Freddie Code
    wrote on last edited by
    #1

    I came across a custom control in an example Project here at The Code Project. I want to use that custom control in another application. How can you use a custom control from one application to another without retyping all the code over again? I tried copying the .cpp and .h files and adding them to my new project but could not get the control classes to be recognized.... Thanks.

    A L 2 Replies Last reply
    0
    • F Freddie Code

      I came across a custom control in an example Project here at The Code Project. I want to use that custom control in another application. How can you use a custom control from one application to another without retyping all the code over again? I tried copying the .cpp and .h files and adding them to my new project but could not get the control classes to be recognized.... Thanks.

      A Offline
      A Offline
      AntonlioX
      wrote on last edited by
      #2

      You can remake the .dsw file . The steps is in the following : 1 Delete the old .dsw file in your project's directory 2 goto VC6 ,it will notify you to recreate the dsw file . Then you should select all files int listbox and create it . Above is all. Try it AntonlioX

      F 1 Reply Last reply
      0
      • F Freddie Code

        I came across a custom control in an example Project here at The Code Project. I want to use that custom control in another application. How can you use a custom control from one application to another without retyping all the code over again? I tried copying the .cpp and .h files and adding them to my new project but could not get the control classes to be recognized.... Thanks.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Did you put the header file into your stdafx.h file ? Elaine :rose: The tigress is here :-D

        F 1 Reply Last reply
        0
        • A AntonlioX

          You can remake the .dsw file . The steps is in the following : 1 Delete the old .dsw file in your project's directory 2 goto VC6 ,it will notify you to recreate the dsw file . Then you should select all files int listbox and create it . Above is all. Try it AntonlioX

          F Offline
          F Offline
          Freddie Code
          wrote on last edited by
          #4

          AntonlioX wrote: 1 Delete the old .dsw file in your project's directory 2 goto VC6 ,it will notify you to recreate the dsw file . Then you should select all files int listbox and create it . How can you do step 2 if you delete the dsw file? Once I delete this file, I cant open the project in VC6?

          PJ ArendsP 1 Reply Last reply
          0
          • L Lost User

            Did you put the header file into your stdafx.h file ? Elaine :rose: The tigress is here :-D

            F Offline
            F Offline
            Freddie Code
            wrote on last edited by
            #5

            Trollslayer wrote: Did you put the header file into your stdafx.h file ? Tried this. Nothing gets better by doing this.

            1 Reply Last reply
            0
            • F Freddie Code

              AntonlioX wrote: 1 Delete the old .dsw file in your project's directory 2 goto VC6 ,it will notify you to recreate the dsw file . Then you should select all files int listbox and create it . How can you do step 2 if you delete the dsw file? Once I delete this file, I cant open the project in VC6?

              PJ ArendsP Offline
              PJ ArendsP Offline
              PJ Arends
              wrote on last edited by
              #6

              Do not believe everything you read on the internet. The file that you are to delete is the .clw (class wizard) file, not the .dsw (project workspace) file.


              "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!

              Within you lies the power for good; Use it!

              F 1 Reply Last reply
              0
              • PJ ArendsP PJ Arends

                Do not believe everything you read on the internet. The file that you are to delete is the .clw (class wizard) file, not the .dsw (project workspace) file.


                "You're obviously a superstar." - Christian Graus about me - 12 Feb '03 "Obviously ???  You're definitely a superstar!!!" - mYkel - 21 Jun '04 "There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05 Within you lies the power for good - Use it!

                F Offline
                F Offline
                Freddie Code
                wrote on last edited by
                #7

                I figured this out when after deleting the .dsw file the project was gone! Thanks.

                A 1 Reply Last reply
                0
                • F Freddie Code

                  I figured this out when after deleting the .dsw file the project was gone! Thanks.

                  A Offline
                  A Offline
                  AntonlioX
                  wrote on last edited by
                  #8

                  Sorry for my carelessness ,I typed the .clw as .dsw . AntonlioX

                  F 1 Reply Last reply
                  0
                  • A AntonlioX

                    Sorry for my carelessness ,I typed the .clw as .dsw . AntonlioX

                    F Offline
                    F Offline
                    Freddie Code
                    wrote on last edited by
                    #9

                    No problem. It got me thinking along the right track and eventually led to a solution. Thanks for your input.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups