?
Solved

Can I Serialize BOOL type variable ?

Posted on 1998-10-13
3
Medium Priority
?
287 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
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.
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

801 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