Solved

Can I Serialize BOOL type variable ?

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
not able to insert into temp table 68 150
Detect CR LF to each line 12 137
if loop in java 3 114
wordcount challenge 11 78
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
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.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

762 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

19 Experts available now in Live!

Get 1:1 Help Now