?
Solved

Can I Serialize BOOL type variable ?

Posted on 1998-10-13
3
Medium Priority
?
303 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 20 total points
ID: 1323251
if(ar.IsStoring()){
ar <<(WORD)bVar;
}else{
WORD wTemp;
ar >> wTemp;
bVar = (BOOL)wTemp;
}
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

862 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