Custom Controls in VC++6
-
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.
-
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.
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
-
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.
Did you put the header file into your
stdafx.h
file ? Elaine :rose: The tigress is here :-D -
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
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?
-
Did you put the header file into your
stdafx.h
file ? Elaine :rose: The tigress is here :-DTrollslayer wrote: Did you put the header file into your stdafx.h file ? Tried this. Nothing gets better by doing this.
-
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?
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!
-
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!
I figured this out when after deleting the .dsw file the project was gone! Thanks.
-
I figured this out when after deleting the .dsw file the project was gone! Thanks.
-
No problem. It got me thinking along the right track and eventually led to a solution. Thanks for your input.