Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

How can i initialize a CBoolProperty?

 

Declaration:

 

CBoolProperty m_bHeight;

 

Method:

void CHuman::SetHeight(bool bHeight) { m_bHeight.Value(bHeight); }

 

but when i debug. m_bHeight.Value is always true until i set bHeight with false. I want to initialize it to false.

Posted

What about:


CBoolProperty m_bHeight = false;
[/Code]

??

My Development System

Intel Core i7 920 @2.66Ghz

6 GB DDR3 SDRAM

Windows 7 Ultimate x64 & Windows Vista Home Premium x64 dual boot

GeForce GTX295 1.8 GB

3.5 TB HD

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...