Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WHEN U MAKE A CONTROL WITH THE TOOLBOX, WHERE IS THE CODE FOR IT?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
lets say i make a button control on my dialog box, not programatically, but with the toolbox...that means that i am just clicking my mouse and making it visually, but where does the code for it all go? it isnt inserted into my cpp file or header file or anything and i cant find it anywhere! wh en i programmatically add a button, i hav to add the code, but where does visual c++ add the code to the button that i made with the toolbox???
 
In your projects 'resource' file, i.e.,

Project1.rc

-pete
 
As Pete said the code is in the "project_name.rc" file.If u open the file (as text but not open it automatically) and browse the resource code;u will find where the code relies in the file.But that is not like c++ codes in a cpp or header file.It is a special type of script that will be compiled by VC++ compiler and will be performed by the framework.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top