Click here to Skip to main content
15,910,123 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: happy new year, everyone! Pin
includeh1031-Dec-05 5:15
includeh1031-Dec-05 5:15 
GeneralRe: happy new year, everyone! Pin
Prakash Nadar31-Dec-05 5:43
Prakash Nadar31-Dec-05 5:43 
GeneralRe: happy new year, everyone! Pin
John R. Shaw31-Dec-05 18:34
John R. Shaw31-Dec-05 18:34 
GeneralRe: happy new year, everyone! Pin
ThatsAlok1-Jan-06 18:54
ThatsAlok1-Jan-06 18:54 
Questionhow does one prevent resizing columns in CListCtrl Pin
cpp_prgmer31-Dec-05 0:30
cpp_prgmer31-Dec-05 0:30 
AnswerRe: how does one prevent resizing columns in CListCtrl Pin
Sheng Jiang 蒋晟31-Dec-05 6:13
Sheng Jiang 蒋晟31-Dec-05 6:13 
NewsAt Last! My DCOM Tutorial for VS.NET is Here! Pin
Brian C Hart30-Dec-05 22:29
professionalBrian C Hart30-Dec-05 22:29 
QuestionI donn't find the mistakes! Pin
greenapplezlp30-Dec-05 20:15
greenapplezlp30-Dec-05 20:15 
Cry | :(( // CDib operated_dib;
GLOBALHANDLE hGMem ;
OpenClipboard();
hGMem = GetClipboardData(CF_DIB);
operated_dib.GetClipBoard (&hGMem);
int n=10;
int height=operated_dib.GetHeight();
int width=operated_dib.GetWidth();
........
here is the contents of the GetClipBoard (&hGMem),I donn't know where the mistakes are?
BOOL CDib::GetClipBoard(GLOBALHANDLE hGMem)
{
pDib = (BYTE*)GlobalLock(hGMem);
m_pBitmapInfo = (BITMAPINFO*) pDib;
m_pBitmapInfoHeader = (BITMAPINFOHEADER*) pDib;
m_pRGB = (RGBQUAD*)(pDib +
m_pBitmapInfoHeader->biSize);
int m_numberOfColors = GetNumberOfColors();
if (m_pBitmapInfoHeader->biClrUsed == 0)
m_pBitmapInfoHeader->biClrUsed =
m_numberOfColors;
DWORD colorTableSize = m_numberOfColors *
sizeof(RGBQUAD);
m_pData = pDib + m_pBitmapInfoHeader->biSize
+ colorTableSize;
if (m_pRGB == (RGBQUAD*)m_pData) // No color table
m_pRGB = NULL;
m_pBitmapInfoHeader->biSizeImage = GetSize();
m_valid = TRUE;
m_width=GetWidth();
m_height=GetHeight();
return m_valid;

}
AnswerRe: I donn't find the mistakes! Pin
QuickDeveloper30-Dec-05 21:43
QuickDeveloper30-Dec-05 21:43 
Generalthank you for your enthusiastic help! Pin
greenapplezlp1-Jan-06 20:03
greenapplezlp1-Jan-06 20:03 
AnswerRe: I donn't find the mistakes! Pin
Polymorpher30-Dec-05 22:13
Polymorpher30-Dec-05 22:13 
GeneralRe: I donn't find the mistakes! Pin
greenapplezlp1-Jan-06 20:03
greenapplezlp1-Jan-06 20:03 
QuestionProblem regarding DirectShow Pin
StarMeteor30-Dec-05 16:46
StarMeteor30-Dec-05 16:46 
QuestionHow to write data to a file when it is in a vector Pin
Larry Mills Sr30-Dec-05 14:12
Larry Mills Sr30-Dec-05 14:12 
AnswerRe: How to write data to a file when it is in a vector Pin
Garth J Lancaster30-Dec-05 15:34
professionalGarth J Lancaster30-Dec-05 15:34 
GeneralRe: How to write data to a file when it is in a vector Pin
Larry Mills Sr1-Jan-06 16:45
Larry Mills Sr1-Jan-06 16:45 
GeneralRe: How to write data to a file when it is in a vector Pin
Garth J Lancaster1-Jan-06 19:34
professionalGarth J Lancaster1-Jan-06 19:34 
QuestionNeed Help with ShellExecute Pin
Klerik8230-Dec-05 10:53
Klerik8230-Dec-05 10:53 
AnswerRe: Need Help with ShellExecute Pin
Prakash Nadar30-Dec-05 18:14
Prakash Nadar30-Dec-05 18:14 
AnswerRe: Need Help with ShellExecute Pin
Michael Dunn31-Dec-05 10:50
sitebuilderMichael Dunn31-Dec-05 10:50 
AnswerRe: Need Help with ShellExecute Pin
Klerik822-Jan-06 13:03
Klerik822-Jan-06 13:03 
QuestionMFC Serialization Questions.. Pin
montiee30-Dec-05 6:09
montiee30-Dec-05 6:09 
AnswerRe: MFC Serialization Questions.. Pin
Ravi Bhavnani30-Dec-05 6:59
professionalRavi Bhavnani30-Dec-05 6:59 
GeneralRe: MFC Serialization Questions.. Pin
Garth J Lancaster30-Dec-05 15:35
professionalGarth J Lancaster30-Dec-05 15:35 
GeneralRe: MFC Serialization Questions.. Pin
montiee30-Dec-05 16:54
montiee30-Dec-05 16:54 

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.