Click here to Skip to main content
15,913,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GUI Compiling Trouble Pin
ZoogieZork17-Sep-03 9:47
ZoogieZork17-Sep-03 9:47 
GeneralRe: GUI Compiling Trouble Pin
doncab17-Sep-03 12:09
doncab17-Sep-03 12:09 
GeneralRe: GUI Compiling Trouble Pin
ZoogieZork17-Sep-03 12:51
ZoogieZork17-Sep-03 12:51 
Generalyour comments on CSocket and CAsyncSocket Pin
R. Thomas17-Sep-03 7:29
R. Thomas17-Sep-03 7:29 
GeneralRe: your comments on CSocket and CAsyncSocket Pin
Rickard Andersson2017-Sep-03 7:42
Rickard Andersson2017-Sep-03 7:42 
GeneralImage::Save Problem! Does anyone know how to solve this puzzle? Thanks a lot! Pin
TeleStar17-Sep-03 7:10
TeleStar17-Sep-03 7:10 
GeneralRe: Image::Save Problem! Does anyone know how to solve this puzzle? Thanks a lot! Pin
Steve S18-Sep-03 1:52
Steve S18-Sep-03 1:52 
GeneralYes, I had used the code on MSDN, but it doesn't work! Pin
TeleStar18-Sep-03 11:21
TeleStar18-Sep-03 11:21 
Here is the function GetImageCLSID

static int GetImageCLSID(const WCHAR* format, CLSID* pCLSID)
{
UINT num = 0; // number of image encoders
UINT size = 0; // size of the image encoder array in bytes

ImageCodecInfo* pImageCodecInfo = NULL;

GetImageEncodersSize(&num, &size);
if(size == 0)
return -1; // Failure

pImageCodecInfo = (ImageCodecInfo*)(malloc(size));
if(pImageCodecInfo == NULL)
return -1; // Failure

GetImageEncoders(num, size, pImageCodecInfo);

for(UINT j = 0; j < num; ++j)
{
if( wcscmp(pImageCodecInfo[j].MimeType, format) == 0 )
{
*pCLSID = pImageCodecInfo[j].Clsid;
free(pImageCodecInfo);
return j; // Success
}
}

free(pImageCodecInfo);
return -1; // Failure
}
QuestionMFC-&gt;controls-&gt;extended styls? Pin
udiams17-Sep-03 5:36
udiams17-Sep-03 5:36 
AnswerRe: MFC-&gt;controls-&gt;extended styls? Pin
David Crow17-Sep-03 5:38
David Crow17-Sep-03 5:38 
AnswerRe: MFC-&gt;controls-&gt;extended styls? Pin
Alvaro Mendez17-Sep-03 6:02
Alvaro Mendez17-Sep-03 6:02 
AnswerRe: MFC-&gt;controls-&gt;extended styls? Pin
Mike Dimmick17-Sep-03 6:08
Mike Dimmick17-Sep-03 6:08 
GeneralSTL and Efficiency Pin
Anonymous17-Sep-03 5:13
Anonymous17-Sep-03 5:13 
GeneralRe: STL and Efficiency Pin
HalfWayMan17-Sep-03 5:40
HalfWayMan17-Sep-03 5:40 
GeneralRe: STL and Efficiency Pin
Mike Dimmick17-Sep-03 5:44
Mike Dimmick17-Sep-03 5:44 
GeneralRe: STL and Efficiency Pin
Andrew Walker17-Sep-03 5:45
Andrew Walker17-Sep-03 5:45 
GeneralRe: STL and Efficiency Pin
Daniel Turini17-Sep-03 9:46
Daniel Turini17-Sep-03 9:46 
GeneralRe: STL and Efficiency Pin
Tim Smith17-Sep-03 10:03
Tim Smith17-Sep-03 10:03 
GeneralUsing CToolTipCtrl Pin
Marty1020304017-Sep-03 5:02
Marty1020304017-Sep-03 5:02 
GeneralRe: Using CToolTipCtrl Pin
Alvaro Mendez17-Sep-03 6:09
Alvaro Mendez17-Sep-03 6:09 
GeneralRe: Using CToolTipCtrl Pin
Jagadeesh VN17-Sep-03 7:34
Jagadeesh VN17-Sep-03 7:34 
GeneralC++ Octree structure Pin
Alex Chitea17-Sep-03 4:20
Alex Chitea17-Sep-03 4:20 
GeneralRe: C++ Octree structure Pin
David Crow17-Sep-03 4:51
David Crow17-Sep-03 4:51 
GeneralRe: C++ Octree structure Pin
Hosam Aly Mahmoud17-Sep-03 8:53
Hosam Aly Mahmoud17-Sep-03 8:53 
GeneralOpening a Dialog from the menu Pin
Tom Wright17-Sep-03 4:08
Tom Wright17-Sep-03 4:08 

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.