Click here to Skip to main content
16,008,469 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: bitwise command & MFC Pin
alex.barylski12-Mar-02 12:47
alex.barylski12-Mar-02 12:47 
GeneralRe: bitwise command & MFC Pin
Tim Smith12-Mar-02 13:24
Tim Smith12-Mar-02 13:24 
GeneralRe: bitwise command & MFC Pin
SilverShalkin12-Mar-02 11:11
SilverShalkin12-Mar-02 11:11 
GeneralRe: bitwise command & MFC Pin
alex.barylski12-Mar-02 12:52
alex.barylski12-Mar-02 12:52 
GeneralSDK Pin
SilverShalkin12-Mar-02 15:31
SilverShalkin12-Mar-02 15:31 
GeneralRe: SDK Pin
Rick York12-Mar-02 15:35
mveRick York12-Mar-02 15:35 
GeneralRe: SDK Pin
alex.barylski12-Mar-02 16:13
alex.barylski12-Mar-02 16:13 
GeneralRe: bitwise command Pin
Merle Pittman12-Mar-02 5:00
Merle Pittman12-Mar-02 5:00 
very important for working with 'non-uniform' variable sizes through your code. For instance, if you want to combine two 8 bit chars into a 16 bit int you could use the MAKEWORD (a,b) macro provided in win32. But if you look at the source for this macro it uses bitwise operators to do so (actually uses a SHIFT and an OR):
WORD MAKEWORD(
  BYTE bLow,  // low-order byte of short value
  BYTE bHigh  // high-order byte of short value
);

MAKEWORD(a, b) \ 
    ((WORD) (((BYTE) (a)) | ((WORD) ((BYTE) (b))) << 8)) 


And many many other important uses.

- Merle
GeneralGetting focus to Activex control Pin
Atila12-Mar-02 4:21
Atila12-Mar-02 4:21 
GeneralRe: multiple .cpp sharing same .h Pin
Tomasz Sowinski12-Mar-02 4:04
Tomasz Sowinski12-Mar-02 4:04 
GeneralRe: multiple .cpp sharing same .h Pin
567890123412-Mar-02 4:13
567890123412-Mar-02 4:13 
Generalwriting contents of a deque to a file Pin
Merle Pittman12-Mar-02 3:44
Merle Pittman12-Mar-02 3:44 
GeneralRe: writing contents of a deque to a file Pin
Joaquín M López Muñoz12-Mar-02 6:33
Joaquín M López Muñoz12-Mar-02 6:33 
GeneralRe: writing contents of a deque to a file Pin
Nemanja Trifunovic12-Mar-02 7:05
Nemanja Trifunovic12-Mar-02 7:05 
GeneralRe: writing contents of a deque to a file Pin
Joaquín M López Muñoz12-Mar-02 8:04
Joaquín M López Muñoz12-Mar-02 8:04 
GeneralRe: writing contents of a deque to a file Pin
Nemanja Trifunovic12-Mar-02 8:43
Nemanja Trifunovic12-Mar-02 8:43 
GeneralRe: writing contents of a deque to a file Pin
Tim Smith12-Mar-02 12:01
Tim Smith12-Mar-02 12:01 
GeneralRe: writing contents of a deque to a file Pin
Joaquín M López Muñoz12-Mar-02 19:50
Joaquín M López Muñoz12-Mar-02 19:50 
GeneralRe: writing contents of a deque to a file Pin
Tim Smith13-Mar-02 2:03
Tim Smith13-Mar-02 2:03 
GeneralRe: writing contents of a deque to a file Pin
Joaquín M López Muñoz13-Mar-02 2:36
Joaquín M López Muñoz13-Mar-02 2:36 
GeneralRe: writing contents of a deque to a file Pin
Tim Smith13-Mar-02 4:13
Tim Smith13-Mar-02 4:13 
GeneralRe: writing contents of a deque to a file Pin
Joaquín M López Muñoz13-Mar-02 11:59
Joaquín M López Muñoz13-Mar-02 11:59 
GeneralRe: writing contents of a deque to a file Pin
Tim Smith13-Mar-02 12:20
Tim Smith13-Mar-02 12:20 
GeneralRe: writing contents of a deque to a file Pin
Nemanja Trifunovic13-Mar-02 12:31
Nemanja Trifunovic13-Mar-02 12:31 
GeneralRe: writing contents of a deque to a file Pin
Tim Smith13-Mar-02 13:16
Tim Smith13-Mar-02 13:16 

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.