the stdafx.h has this line: // TODO: reference additional headers your program requires here I want to use new.h in most of the cpp files, so I guess what I did is apropriate.
gazihan
Posts
-
how to properly create and use project files -
Pointer to a vectorwhat's the difference between a vector and a one-dimensional array in C++? as far as i know, nothing. so, this is an equivalence class: &V[0] &(*(V+0)) &(*(V)) V therefore, you can use V if you want.
-
how to properly create and use project filesOk I see now. new.h includes nothing, new.cpp includes new.h and stdafx.h, and stdafx.h includes new.h. new.cpp is automatically built with other cpps. Thanx again.:-O
-
how to properly create and use project filesHi, I'm a bit new to visual c++ and i'm trying to figure out the right style to create and use new .h and .cpp files in vc++. Say I want to implement a new module of the project in a seperate file. And say I created the new.h and new.cpp files. Now the question is, how should I set the #include lines in the entire project in order to make it work? In new.cpp, I want to use the libraries included in stdafx.h. And in the other parts of the application that stadfx.h is included, I want to use the code that resides in new.cpp. I tried many different ways of including one another but I couldn't find an appropriate one. It either tels me that in my new.cpp file, "unexpected end of file while looking for precompiled header directive" error is present, or it reports multiple definitions. :confused: I think you got what I'm trying to do, so pls help me how to set the include graph thorughout my application. Thanx in advance.