Click here to Skip to main content
16,006,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: memory problems in borlandc 3.1 Pin
Paul Conrad30-Dec-06 13:11
professionalPaul Conrad30-Dec-06 13:11 
QuestionDebug Assertion Failed!-Combo Box- vc++ 8. Pin
$uresh $hanmugam30-Dec-06 1:28
$uresh $hanmugam30-Dec-06 1:28 
AnswerRe: Debug Assertion Failed!-Combo Box- vc++ 8. Pin
Gary R. Wheeler30-Dec-06 3:20
Gary R. Wheeler30-Dec-06 3:20 
AnswerRe: Debug Assertion Failed!-Combo Box- vc++ 8. Pin
Hamid_RT30-Dec-06 5:44
Hamid_RT30-Dec-06 5:44 
GeneralRe: Debug Assertion Failed!-Combo Box- vc++ 8. Pin
$uresh $hanmugam7-Jan-07 21:16
$uresh $hanmugam7-Jan-07 21:16 
GeneralRe: Debug Assertion Failed!-Combo Box- vc++ 8. Pin
Hamid_RT7-Jan-07 21:35
Hamid_RT7-Jan-07 21:35 
Questionmoving up and down Pin
catty5029-Dec-06 22:58
catty5029-Dec-06 22:58 
QuestionReading a bitmap Pin
Waldermort29-Dec-06 21:46
Waldermort29-Dec-06 21:46 
When I say bitmap, I don't mean a picture of my missus. I have an array of bytes which represents free slots in a table ( an allocation table ). If a bit is set the slot is used. Within the table of slots records are stored. Each slot has a predetermined size, and each stored record may span one or more slots. The bitmap is used similar to a FAT table.

Testing if a single bit is set is relativly easy, but what is the most efficient way to find a series of unset bits?

For example:
The bitmap = FF983F1F ( 1111 1111 1001 1000 0011 1111 0001 1111 )
record size will span 3 slots, so I need to find a group of 3 unset bits.
at bit #10 there are only 2 slots available
at bit #14 there are 5 available
at bit #24 there are 3 available

I need to quickly find #14 or #24 and convert it to an offset into the slot table. What is the most efficient way of scanning this bitmap?
AnswerRe: Reading a bitmap Pin
CPallini29-Dec-06 23:12
mveCPallini29-Dec-06 23:12 
QuestionHandling the close(X) button Pin
Taruni29-Dec-06 21:11
Taruni29-Dec-06 21:11 
AnswerRe: Handling the close(X) button Pin
Michael Dunn29-Dec-06 21:30
sitebuilderMichael Dunn29-Dec-06 21:30 
QuestionHow to resize client are? Pin
hanlei000000000929-Dec-06 18:22
hanlei000000000929-Dec-06 18:22 
AnswerRe: How to resize client are? Pin
Hadi Dayvary29-Dec-06 18:45
professionalHadi Dayvary29-Dec-06 18:45 
GeneralSetWindowPos(), that OK! Thank you Pin
hanlei000000000930-Dec-06 14:15
hanlei000000000930-Dec-06 14:15 
QuestionIs any body help in DRM(Digital Rights Mgt) ,pDRMWriter->GenerateKeyID(w_KeyID,&d_KeyID); return S_FAIL Pin
amitmistry_petlad 29-Dec-06 17:56
amitmistry_petlad 29-Dec-06 17:56 
QuestionGetDIBits() works incorrectly with printer's DC Pin
Yuriy200329-Dec-06 15:22
Yuriy200329-Dec-06 15:22 
AnswerRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery30-Dec-06 8:06
Mark Salsbery30-Dec-06 8:06 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy200330-Dec-06 11:44
Yuriy200330-Dec-06 11:44 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery30-Dec-06 11:59
Mark Salsbery30-Dec-06 11:59 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy200330-Dec-06 12:43
Yuriy200330-Dec-06 12:43 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20031-Jan-07 10:06
Yuriy20031-Jan-07 10:06 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery1-Jan-07 15:34
Mark Salsbery1-Jan-07 15:34 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20032-Jan-07 11:08
Yuriy20032-Jan-07 11:08 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Mark Salsbery2-Jan-07 11:28
Mark Salsbery2-Jan-07 11:28 
GeneralRe: GetDIBits() works incorrectly with printer's DC Pin
Yuriy20032-Jan-07 12:39
Yuriy20032-Jan-07 12:39 

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.