Click here to Skip to main content
15,892,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to assign Drive Letter to a volume? Pin
Madan Chauhan8-Apr-10 2:21
Madan Chauhan8-Apr-10 2:21 
AnswerRe: How to assign Drive Letter to a volume? Pin
Adam Roderick J8-Apr-10 2:31
Adam Roderick J8-Apr-10 2:31 
AnswerRe: How to assign Drive Letter to a volume? Pin
KarstenK8-Apr-10 3:08
mveKarstenK8-Apr-10 3:08 
QuestionHow could I run one of my class member Functions in a new thread: Pin
m_code8-Apr-10 2:09
m_code8-Apr-10 2:09 
AnswerRe: How could I run one of my class member Functions in a new thread: Pin
Adam Roderick J8-Apr-10 2:20
Adam Roderick J8-Apr-10 2:20 
AnswerRe: How could I run one of my class member Functions in a new thread: Pin
Cool_Dev8-Apr-10 2:24
Cool_Dev8-Apr-10 2:24 
GeneralRe: How could I run one of my class member Functions in a new thread: Pin
m_code8-Apr-10 3:03
m_code8-Apr-10 3:03 
GeneralMessage Removed Pin
8-Apr-10 3:28
Eugen Podsypalnikov8-Apr-10 3:28 
GeneralRe: How could I run one of my class member Functions in a new thread: Pin
m_code8-Apr-10 3:44
m_code8-Apr-10 3:44 
AnswerRe: How could I run one of my class member Functions in a new thread: Pin
KarstenK8-Apr-10 3:41
mveKarstenK8-Apr-10 3:41 
GeneralRe: How could I run one of my class member Functions in a new thread: Pin
m_code8-Apr-10 3:50
m_code8-Apr-10 3:50 
GeneralRe: How could I run one of my class member Functions in a new thread: Pin
KarstenK8-Apr-10 4:09
mveKarstenK8-Apr-10 4:09 
QuestionCreateBitmapIndirect() doesnt create bitmap Pin
globus0008-Apr-10 2:08
globus0008-Apr-10 2:08 
AnswerRe: CreateBitmapIndirect() doesnt create bitmap Pin
KarstenK8-Apr-10 3:23
mveKarstenK8-Apr-10 3:23 
AnswerRe: CreateBitmapIndirect() doesnt create bitmap Pin
Jonathan Davies8-Apr-10 5:23
Jonathan Davies8-Apr-10 5:23 
Should you be setting bmi.bmiHeader.biSizeImage before calling SetDIBits? I only say this because I found the following I'd used which uses GetDIBits to calculate it's value:
...

// Calculate the biSizeImage parameter using GetDIBits or manually if this fails
int ScanLines = GetDIBits(hMemDC,hBmp,0,B1Win.ylen,NULL,lpbmInfo,DIB_RGB_COLORS);
if(lpbmInfo->bmiHeader.biSizeImage == 0)
    lpbmInfo->bmiHeader.biSizeImage = ((((lpbmInfo->bmiHeader.biWidth * lpbmInfo->bmiHeader.biBitCount) + 31) & ~31) >> 3) * lpbmInfo->bmiHeader.biHeight;



// Copy bits from RGB888 to 24 bit DIB and inverting bitmap 
ScanLines = (int)(InControl.VideoRoi.ylen);	// SetDIBits inverts if height is -ve

// biHeight originally set -ve here
ScanLines = SetDIBits(hMemDC,hBmp,0,ScanLines,BDBoard.pcnvBuffer,lpbmInfo,DIB_RGB_COLORS);

...

QuestionWidest Character and Height of the character Pin
shiv@nand8-Apr-10 1:13
shiv@nand8-Apr-10 1:13 
AnswerRe: Widest Character and Height of the character Pin
Eugen Podsypalnikov8-Apr-10 1:37
Eugen Podsypalnikov8-Apr-10 1:37 
GeneralRe: Widest Character and Height of the character Pin
Adam Roderick J8-Apr-10 1:41
Adam Roderick J8-Apr-10 1:41 
GeneralRe: Widest Character and Height of the character Pin
shiv@nand8-Apr-10 1:49
shiv@nand8-Apr-10 1:49 
GeneralRe: Widest Character and Height of the character Pin
Eugen Podsypalnikov8-Apr-10 2:01
Eugen Podsypalnikov8-Apr-10 2:01 
GeneralRe: Widest Character and Height of the character Pin
shiv@nand8-Apr-10 2:17
shiv@nand8-Apr-10 2:17 
AnswerRe: Widest Character and Height of the character Pin
Michel Godfroid8-Apr-10 6:47
Michel Godfroid8-Apr-10 6:47 
JokeRe: Widest Character and Height of the character Pin
Eugen Podsypalnikov8-Apr-10 9:07
Eugen Podsypalnikov8-Apr-10 9:07 
GeneralRe: Widest Character and Height of the character Pin
Michel Godfroid8-Apr-10 9:21
Michel Godfroid8-Apr-10 9:21 
GeneralRe: Widest Character and Height of the character Pin
shiv@nand8-Apr-10 17:46
shiv@nand8-Apr-10 17:46 

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.