Click here to Skip to main content
15,900,258 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Scrolling is not working ScrollView Pin
Cedric Moonen22-Jul-10 23:11
Cedric Moonen22-Jul-10 23:11 
GeneralRe: Scrolling is not working ScrollView Pin
Anu_Bala22-Jul-10 23:44
Anu_Bala22-Jul-10 23:44 
Question32 bitmap and gdi+ problem Pin
rjkg22-Jul-10 23:01
rjkg22-Jul-10 23:01 
QuestionRe: 32 bitmap and gdi+ problem Pin
Niklas L22-Jul-10 23:14
Niklas L22-Jul-10 23:14 
AnswerRe: 32 bitmap and gdi+ problem Pin
rjkg22-Jul-10 23:37
rjkg22-Jul-10 23:37 
GeneralRe: 32 bitmap and gdi+ problem Pin
S p k 52123-Jul-10 0:28
S p k 52123-Jul-10 0:28 
GeneralRe: 32 bitmap and gdi+ problem Pin
rjkg23-Jul-10 0:40
rjkg23-Jul-10 0:40 
GeneralRe: 32 bitmap and gdi+ problem Pin
S p k 52123-Jul-10 0:51
S p k 52123-Jul-10 0:51 
GeneralRe: 32 bitmap and gdi+ problem [modified] Pin
rjkg23-Jul-10 0:59
rjkg23-Jul-10 0:59 
AnswerRe: 32 bitmap and gdi+ problem Pin
Joe Woodbury23-Jul-10 7:02
professionalJoe Woodbury23-Jul-10 7:02 
GeneralRe: 32 bitmap and gdi+ problem Pin
rjkg24-Jul-10 0:01
rjkg24-Jul-10 0:01 
GeneralRe: 32 bitmap and gdi+ problem Pin
Joe Woodbury24-Jul-10 8:14
professionalJoe Woodbury24-Jul-10 8:14 
QuestionAddPrinterDriver returning ERROR_IO_PENDING, what should I do? Pin
sashoalm22-Jul-10 22:44
sashoalm22-Jul-10 22:44 
AnswerRe: AddPrinterDriver returning ERROR_IO_PENDING, what should I do? Pin
Code-o-mat22-Jul-10 23:47
Code-o-mat22-Jul-10 23:47 
GeneralRe: AddPrinterDriver returning ERROR_IO_PENDING, what should I do? Pin
David Crow23-Jul-10 3:17
David Crow23-Jul-10 3:17 
QuestionProcessing speed becomes slow if i do not use FILE_FLAG_OVERLAPPED parameter in my CreateFile Function Pin
learningvisualc22-Jul-10 20:50
learningvisualc22-Jul-10 20:50 
AnswerRe: Processing speed becomes slow if i do not use FILE_FLAG_OVERLAPPED parameter in my CreateFile Function Pin
Code-o-mat22-Jul-10 22:45
Code-o-mat22-Jul-10 22:45 
AnswerRe: Processing speed becomes slow if i do not use FILE_FLAG_OVERLAPPED parameter in my CreateFile Function Pin
Iain Clarke, Warrior Programmer23-Jul-10 11:19
Iain Clarke, Warrior Programmer23-Jul-10 11:19 
QuestionMemory Bits To Bitfield Definition Pin
Trevor Johansen22-Jul-10 20:48
Trevor Johansen22-Jul-10 20:48 
AnswerRe: Memory Bits To Bitfield Definition Pin
Member 392263923-Jul-10 2:50
Member 392263923-Jul-10 2:50 
GeneralRe: Memory Bits To Bitfield Definition Pin
Trevor Johansen23-Jul-10 6:55
Trevor Johansen23-Jul-10 6:55 
I would still have the problem of setting separate address bits, however your example would make a good compact bitfield definition.

I am trying to take bits from separate registers and create my own 'masked register' so when I write to my register it sends each bit to its specified bits in other registers.
test.b0 = SBIT(0xE2, 0); // 0xE2: 0000000x
test.b1 = SBIT(0xE2, 4); // 0xE2: 000x0000
test.b2 = SBIT(0xE2, 7); // 0xE2: x0000000

test.b3 = SBIT(0xEF, 2); // 0xEF: 000000x0
test.b4 = SBIT(0xEF, 3); // 0xEF: 00000x00

test.b5 = SBIT(0x07, 1); // 0x07: 000000x0
test.b6 = SBIT(0x07, 5); // 0x07: 00x00000
test.b7 = SBIT(0x07, 6); // 0x07: 0x000000


Hopefully this will show more clearly what I am after:
test = 0x7A; // 0111 1010

// 0xE2 gets bits xxxxx010
 // xx0 = 0xE2 bit 0
 // x1x = 0xE2 bit 4
 // 0xx = 0xE2 bit 7
 // 0xE2 = 00010000

// 0xEF gets bits xxx11xxx
 // x1 = 0xEF bit 2
 // 1x = 0xEF bit 3
 // 0xEF = 00001100

// 0x07 gets bits 011xxxxx
 // xx1 = 0x07 bit 1
 // x1x = 0x07 bit 5
 // 0xx = 0x07 bit 6
 // 0x07 = 00100010

QuestionHow to delete a memory on Heap if it is holded by a reference Pin
pandit8422-Jul-10 20:43
pandit8422-Jul-10 20:43 
AnswerRe: How to delete a memory on Heap if it is holded by a reference Pin
Cedric Moonen22-Jul-10 20:45
Cedric Moonen22-Jul-10 20:45 
GeneralRe: How to delete a memory on Heap if it is holded by a reference Pin
Emilio Garavaglia22-Jul-10 21:28
Emilio Garavaglia22-Jul-10 21:28 
GeneralRe: How to delete a memory on Heap if it is holded by a reference Pin
pandit8422-Jul-10 21:31
pandit8422-Jul-10 21:31 

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.