This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Coding style in Samples


Coding style in Samples

Postby Cardinal » Apr 19, 2007 @ 11:24pm

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?
Cardinal
pm Member
 
Posts: 53
Joined: Feb 6, 2006 @ 5:39am
Location: Ottawa, Ontario


Postby edge » Apr 20, 2007 @ 2:52pm

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.
EDGELIB: Cross-platform mobile development at your fingertips
http://www.edgelib.com
User avatar
edge
pm Member
 
Posts: 1180
Joined: Aug 22, 2005 @ 3:42pm
Location: The Netherlands


Postby Cardinal » Apr 20, 2007 @ 4:27pm

Cardinal
pm Member
 
Posts: 53
Joined: Feb 6, 2006 @ 5:39am
Location: Ottawa, Ontario


Return to EDGELIB


Sort


Forum Description

Powerful and affordable C++ middleware solution covering true multi-platform 2D, 3D and network features for Apple iPhone, Windows Mobile, Symbian S60, UIQ, Linux and Windows desktop.

Moderator:

edge

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron