Original Post
Hi there
I want to split my main.cpp (using VC++ 6.0) file into smaller ones, because it is getting pretty big and it is very confusing.
So i''d make something like init.cpp, where it creates my window, an draw.cpp, where i''d do all my drawing, etc
the problem is that i can''t make them communicate between them.
In main.cpp, i put:
DrawTile();
which is defined in draw.cpp, but on compil, it says "undeclared identifier"
All the .cpp files are included in my project, and they are all compiled, so how can i make each of them communicate?
Also, can i create a global variable in one, and access it in the other? thanks
-ErayMan