Click here to Skip to main content
15,893,266 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Popup Menu Pin
Richard Andrew x643-Jan-09 6:59
professionalRichard Andrew x643-Jan-09 6:59 
GeneralRe: Popup Menu Pin
korte253-Jan-09 7:46
korte253-Jan-09 7:46 
GeneralRe: Popup Menu Pin
Michael Dunn3-Jan-09 18:39
sitebuilderMichael Dunn3-Jan-09 18:39 
GeneralRe: Popup Menu Pin
korte253-Jan-09 22:05
korte253-Jan-09 22:05 
GeneralRe: Popup Menu Pin
korte253-Jan-09 22:25
korte253-Jan-09 22:25 
GeneralRe: Popup Menu Pin
Stephen Hewitt3-Jan-09 21:55
Stephen Hewitt3-Jan-09 21:55 
GeneralRe: Popup Menu Pin
korte253-Jan-09 22:06
korte253-Jan-09 22:06 
QuestionBit manipulation useing "Bit Field" in C++ Pin
Joseph Marzbani3-Jan-09 5:43
Joseph Marzbani3-Jan-09 5:43 
I have an array of BYTEs named aBytes. As you know, It looks some thing like this in the memory:

1000100110001010100011011011010110110101 ...
memory increase ---->

Now I want to separate 6-Bit chunks from the begin, as follow:

100010011000101010001101101101011011 ...
memory increase ---->

I used this code:
typedef unsigned __int32 BASE64
struct CHUNKS
{
        BASE64    First:6;
        BASE64    Second:6;
        BASE64    Third:6;
        BASE64    Fourth:6;
}*pChunk = NULL;

for (int iCountor = 0; iCountor < Size_Of_aBytes; iCountor++)
{
        pChunk = (CHUNKS*) (aBytes + iCountor);
        //From now on I expected to access my favorite values using <pChunk -> First>, ...
}
But each time, I get wrong values. Where is the problem? Confused | :confused:

Thank you masters!

GeneralRe: Bit manipulation useing "Bit Field" in C++ Pin
Luc Pattyn3-Jan-09 6:07
sitebuilderLuc Pattyn3-Jan-09 6:07 
AnswerRe: Bit manipulation useing "Bit Field" in C++ Pin
Stuart Dootson3-Jan-09 17:02
professionalStuart Dootson3-Jan-09 17:02 
AnswerRe: Bit manipulation useing "Bit Field" in C++ Pin
krmed4-Jan-09 3:33
krmed4-Jan-09 3:33 
QuestionDebug Assertion Failure Pin
bhanu_85093-Jan-09 1:32
bhanu_85093-Jan-09 1:32 
AnswerRe: Debug Assertion Failure Pin
SandipG 3-Jan-09 1:39
SandipG 3-Jan-09 1:39 
AnswerRe: Debug Assertion Failure Pin
ThatsAlok5-Jan-09 0:28
ThatsAlok5-Jan-09 0:28 
Questionhelp me... Pin
surender992-Jan-09 21:58
surender992-Jan-09 21:58 
AnswerRe: help me... Pin
Code-o-mat3-Jan-09 3:22
Code-o-mat3-Jan-09 3:22 
QuestionHow can Create new rect with width? Pin
Le@rner2-Jan-09 20:05
Le@rner2-Jan-09 20:05 
AnswerRe: How can Create new rect with width? Pin
Hamid_RT2-Jan-09 20:27
Hamid_RT2-Jan-09 20:27 
GeneralRe: How can Create new rect with width? Pin
Le@rner2-Jan-09 20:47
Le@rner2-Jan-09 20:47 
GeneralRe: How can Create new rect with width? Pin
Hamid_RT3-Jan-09 0:16
Hamid_RT3-Jan-09 0:16 
AnswerRe: How can Create new rect with width? Pin
CPallini2-Jan-09 20:50
mveCPallini2-Jan-09 20:50 
GeneralRe: How can Create new rect with width? Pin
Le@rner2-Jan-09 20:55
Le@rner2-Jan-09 20:55 
GeneralRe: How can Create new rect with width? Pin
CPallini2-Jan-09 21:04
mveCPallini2-Jan-09 21:04 
GeneralRe: How can Create new rect with width? Pin
Le@rner2-Jan-09 21:16
Le@rner2-Jan-09 21:16 
GeneralRe: How can Create new rect with width? Pin
CPallini3-Jan-09 2:49
mveCPallini3-Jan-09 2:49 

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.