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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

a basis question about Project WorkSpace

Status
Not open for further replies.

jayjay60

Programmer
Jun 19, 2001
97
FR
I have created a dlg application. I have MyappDlg.cpp and .h module and Myapp.cpp and.h module. In the dlg part i just have the declarations and definitions of members and methods as button, editbox..., in the other part i have all the methods which the main aim is to do some calculations. So, as you could think i want to link the dlg part to the calculation part. So, in the dlg.h i just put the line:#include "MyApp.h"
So, i don't know if it's enough for doing the calculation in the dlg box. Is anybody could explain me the way of doing this job?

thanks in advance

jayjay
 
when you #include a .h you usually include only declarations. With right declarations you can compille, even if they are not implemented. If some declaration you use is not implemented you will not be able to link(you'll det a linker error unresolver symbol ..... in ...obj). So you add cpp, obj, c, lib files to projecs. They contain implementations usually. If all declarations you're using are implemented and added to project, you will be able to link. If some declaration exists but is not implemented, you will not get a linker error if you don't use it. If some declarations does not exist but you're using it, you'll get a compiller error(not linker) even it could have implementation somewhere. So you should declare it, or include the h file with declaration. John Fill
1c.bmp


ivfmd@mail.md
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top