Solved

Can I Serialize BOOL type variable ?

Posted on 1998-10-13
3
238 Views
Last Modified: 2013-11-19
Dear expert

I'm using VC++ 5.0 in WIndows NT.
I understand int type is not serialzable.
Can I serialize BOOL type variable using << or >> operator ?
If possible, is it safe ?
Also how about short type variable ?
My app will use only on WIndows NT.

Any comment will be appreciated.

okg@mbc.co.kr
0
Comment
Question by:okg
3 Comments
 

Author Comment

by:okg
ID: 1323249
Edited text of question
0
 
LVL 1

Expert Comment

by:Bridge
ID: 1323250
I do it all the time and Ive never encountered a problem.
0
 
LVL 2

Accepted Solution

by:
cyrilbdt earned 10 total points
ID: 1323251
if(ar.IsStoring()){
ar <<(WORD)bVar;
}else{
WORD wTemp;
ar >> wTemp;
bVar = (BOOL)wTemp;
}
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
cat dog challenge 18 124
Expand LInux Boot partition remotly 3 85
substring method in java 1 97
twoTwo  challenge 35 93
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now