Page 1 of 1

Coding style in Samples

PostPosted: Apr 19, 2007 @ 11:24pm
by Cardinal
Hey guys.

I noticed that you put both declaration and code in the .H files rather than splitting code into .H and .CPP files. Any reason for doing that?

PostPosted: Apr 20, 2007 @ 2:52pm
by edge
Hi Cardinal,

There is no particular reason for not splitting them into separate header and source files.

If you're using multiple c++ source files you need to include edgemain.h in the file that contains the EdgeMain() function, and include edge.h in the other source files.

PostPosted: Apr 20, 2007 @ 4:27pm
by Cardinal