Click here to Skip to main content
15,915,172 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to block ctrl+alt+del in WinNT Pin
Dudi Avramov17-Mar-03 0:26
Dudi Avramov17-Mar-03 0:26 
GeneralRe: How to block ctrl+alt+del in WinNT Pin
Valera24117617-Mar-03 8:48
Valera24117617-Mar-03 8:48 
GeneralToolbar.bmp 256 colors not displaying Pin
JoeSox15-Mar-03 9:21
JoeSox15-Mar-03 9:21 
GeneralRe: Toolbar.bmp 256 colors not displaying Pin
MAAK15-Mar-03 10:48
MAAK15-Mar-03 10:48 
GeneralRe: Toolbar.bmp 256 colors not displaying Pin
JoeSox15-Mar-03 11:04
JoeSox15-Mar-03 11:04 
GeneralClass string Manipulators Pin
Makover15-Mar-03 9:19
Makover15-Mar-03 9:19 
GeneralRe: Class string Manipulators Pin
Abbas_Riazi16-Mar-03 2:48
professionalAbbas_Riazi16-Mar-03 2:48 
QuestionHow do I set the first 10 BITS of 4 chars string to a letter?? Pin
IrishSonic15-Mar-03 8:48
IrishSonic15-Mar-03 8:48 
I have done this:

struct s_Person{
char Letter1 : 10,
Letter2 : 10,
Letter3 : 12;
}Person[5];

What I want to do is have a string of 4 chars ( which is 32 bits ), and set the first 10 BITS of the string to be letter 'a' or something else...

The struct fails because it says that the field types are too small.
How do I put a character(or characters) into the first 10 bits of a string of 4 lenght??

Also, if the data field is only 10 bits, which is 2 chars + 2 bits, the maximum I could actually fit into Letter1 would be 2 letters..Is this right??

Thanks,
grahamoj.


AnswerRe: How do I set the first 10 BITS of 4 chars string to a letter?? Pin
Nish Nishant15-Mar-03 9:26
sitebuilderNish Nishant15-Mar-03 9:26 
AnswerRe: How do I set the first 10 BITS of 4 chars string to a letter?? Pin
moliate15-Mar-03 11:09
moliate15-Mar-03 11:09 
AnswerRe: How do I set the first 10 BITS of 4 chars string to a letter?? Pin
Abbas_Riazi16-Mar-03 3:24
professionalAbbas_Riazi16-Mar-03 3:24 
GeneralRe: How do I set the first 10 BITS of 4 chars string to a letter?? Pin
IrishSonic16-Mar-03 5:03
IrishSonic16-Mar-03 5:03 
GeneralRe: How do I set the first 10 BITS of 4 chars string to a letter?? Pin
Abbas_Riazi16-Mar-03 6:53
professionalAbbas_Riazi16-Mar-03 6:53 
AnswerRe: How do I set the first 10 BITS of 4 chars string to a letter?? Pin
Jambolo16-Mar-03 14:27
Jambolo16-Mar-03 14:27 
QuestionApplication Version standard?? Pin
work_to_live15-Mar-03 7:39
work_to_live15-Mar-03 7:39 
AnswerRe: Application Version standard?? Pin
Anders Molin15-Mar-03 7:52
professionalAnders Molin15-Mar-03 7:52 
AnswerRe: Application Version standard?? Pin
Chris Losinger15-Mar-03 8:23
professionalChris Losinger15-Mar-03 8:23 
GeneralRe: Application Version standard?? Pin
r i s h a b h s16-Mar-03 17:42
r i s h a b h s16-Mar-03 17:42 
GeneralRe: Application Version standard?? Pin
work_to_live19-Mar-03 4:56
work_to_live19-Mar-03 4:56 
AnswerRe: Application Version standard?? Pin
moliate15-Mar-03 8:38
moliate15-Mar-03 8:38 
GeneralDirectX Pin
wanju15-Mar-03 7:19
wanju15-Mar-03 7:19 
GeneralRe: DirectX Pin
Stephane Rodriguez.15-Mar-03 7:33
Stephane Rodriguez.15-Mar-03 7:33 
GeneralUsing CHtmlView w/o a doc Pin
Matt Gates15-Mar-03 7:00
Matt Gates15-Mar-03 7:00 
GeneralRe: Using CHtmlView w/o a doc Pin
Stephane Rodriguez.15-Mar-03 7:31
Stephane Rodriguez.15-Mar-03 7:31 
GeneralRe: Using CHtmlView w/o a doc Pin
Matt Gates15-Mar-03 15:14
Matt Gates15-Mar-03 15:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.