On 01-May-2000 Sam Charette wrote:

> In the main application header file I create global variables for each
> of the databases to be used by the application.  I use the:
> 
>#ifndef <identifier>
>#define <identifier>
>#endif

I don't think it is proper to declare variables inside of header files.  I
always put them at the top of a .c file and if I need them in another file I
will extern them.

For example:

Declare it in one file:

DateType apptDate;

If I need to reference it in another:

extern DateType apptDate;


/* Chris Faherty <[EMAIL PROTECTED]>                 */
/* Your Stock has crashed - you must now restart your system */


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to