Luc,

 

Make sure you are conpiling the file as C++ and do use the .cpp extension. I 
use this construct all the time with no problems.

 

Luis,
 
> From: llebl...@cam.org
> To: palm-dev-forum@news.palmos.com
> Subject: Suddenly, CW 9.3 C++ refuses default function argument
> Date: Thu, 28 May 2009 19:45:01 -0700
> 
> Under CW 9.3, I compile my C code as C++. I often use optional arguments for 
> functions in my project, but suddenly, the compuler refuses a new one (in the 
> very same project):
> 
> It is declared in a single header file:
> 
> Boolean ReadSurveyShotForm( FormPtr form, Boolean quickMode = false );
> 
> and defined in a single C file:
> 
> Boolean ReadSurveyShotForm( FormPtr form, Boolean quickMode )
> {
> ...
> }
> 
> I checked this thoroughly. I tried renaming that argument, changing the 
> default value to 'true' or changing it to UInt16, no difference. I know it's 
> not Palm-specific, but is it for CW 9.3? Or am is it just me?
> 
> 
> Luc Le Blanc
> -- 
> For information on using the ACCESS Developer Forums, or to unsubscribe, 
> please see http://www.access-company.com/developers/forums/

_________________________________________________________________
HotmailĀ® has a new way to see what's up with your friends.
http://windowslive.com/Tutorial/Hotmail/WhatsNew?ocid=TXT_TAGLM_WL_HM_Tutorial_WhatsNew1_052009
-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to