Solved

Can I Serialize BOOL type variable ?

Posted on 1998-10-13
3
259 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Installing Microsoft R server on REDHAT or SUSE Linux 4 147
how do i create updater to My Activex application? 3 95
List out all word 7 317
fizzArray  challenge 1 96
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
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.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

860 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