I having a problem setting global variables in CW8 Demo.

I have the following:

MyFile.h
---------

#ifndef __MyFile_h__
#define __MyFile_h__

extern UInt32 MyIntVariable;
extern char* MyCharPtr;

#endif

MyFile.c
---------
#ifndef __MyFile_h__
#include "MyFile.h"
#endif

UInt32 MyIntVariable = 10;
char* MyCharPtr = NULL;



Both files are linked into the project, but the initialisation does not
work..! I have even created a function that I call explicitly from AppStart,
but when I step through it, the char pointer variable is not set to 0...!

What is the problem?







-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to