Click here to Skip to main content
15,927,946 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionTemplates and dynamic libraries Pin
Federico Milano11-Sep-06 9:52
Federico Milano11-Sep-06 9:52 
AnswerRe: Templates and dynamic libraries Pin
Zac Howland11-Sep-06 10:22
Zac Howland11-Sep-06 10:22 
GeneralRe: Templates and dynamic libraries Pin
Federico Milano11-Sep-06 10:27
Federico Milano11-Sep-06 10:27 
GeneralRe: Templates and dynamic libraries Pin
Zac Howland11-Sep-06 10:33
Zac Howland11-Sep-06 10:33 
GeneralRe: Templates and dynamic libraries Pin
Jörgen Sigvardsson11-Sep-06 11:55
Jörgen Sigvardsson11-Sep-06 11:55 
AnswerRe: Templates and dynamic libraries Pin
cmk11-Sep-06 17:43
cmk11-Sep-06 17:43 
Questionhow to save a bitmap to gif file with transparent backgraound? Pin
includeh1011-Sep-06 9:03
includeh1011-Sep-06 9:03 
AnswerRe: how to save a bitmap to gif file with transparent backgraound? Pin
mostafa_pasha11-Sep-06 9:31
mostafa_pasha11-Sep-06 9:31 
Best option i think you use GDI+!
so first try,
http://www.codeproject.com/vcpp/gdiplus/gdi__and_mfc.asp
for initalize GDI+ then try to search MSDN , encoder & decoder :
for example if you wanna convert bmp to gif this code help you:

<br />
INT GetEncoderClsid(const WCHAR* format, CLSID* pClsid)  // helper function<br />
{<br />
UINT  num = 0;          // number of image encoders<br />
   UINT  size = 0;         // size of the image encoder array in bytes<br />
<br />
   ImageCodecInfo* pImageCodecInfo = NULL;<br />
<br />
   GetImageEncodersSize(&num, &size);<br />
   if(size == 0)<br />
      return -1;  // Failure<br />
<br />
   pImageCodecInfo = (ImageCodecInfo*)(malloc(size));<br />
   if(pImageCodecInfo == NULL)<br />
      return -1;  // Failure<br />
<br />
   GetImageEncoders(num, size, pImageCodecInfo);<br />
<br />
   for(UINT j = 0; j < num; ++j)<br />
   {<br />
      if( wcscmp(pImageCodecInfo[j].MimeType, format) == 0 )<br />
      {<br />
         *pClsid = pImageCodecInfo[j].Clsid;<br />
         free(pImageCodecInfo);<br />
         return j;  // Success<br />
      }    <br />
   }<br />
<br />
   free(pImageCodecInfo);<br />
   return -1;  // Failure<br />
<br />
}<br />
<br />
<br />
<br />
   CLSID   encoderClsid;<br />
   Status  stat;<br />
   Image*   image = new Image(L"Bird.bmp");<br />
<br />
   // Get the CLSID of the PNG encoder.<br />
   GetEncoderClsid(L"image/gif", &encoderClsid);<br />
<br />
   stat = image->Save(L"Bird.gif", &encoderClsid, NULL);<br />
<br />
   <br />
<br />
   delete image;<br />
<br />

GeneralRe: how to save a bitmap to gif file with transparent backgraound? Pin
mostafa_pasha11-Sep-06 9:36
mostafa_pasha11-Sep-06 9:36 
AnswerRe: how to save a bitmap to gif file with transparent backgraound? Pin
Waldermort11-Sep-06 9:33
Waldermort11-Sep-06 9:33 
GeneralRe: how to save a bitmap to gif file with transparent backgraound? Pin
Chris Losinger11-Sep-06 9:57
professionalChris Losinger11-Sep-06 9:57 
GeneralRe: how to save a bitmap to gif file with transparent backgraound? Pin
Waldermort11-Sep-06 19:23
Waldermort11-Sep-06 19:23 
GeneralRe: how to save a bitmap to gif file with transparent backgraound? Pin
Chris Losinger12-Sep-06 1:00
professionalChris Losinger12-Sep-06 1:00 
QuestionCustom Wizard issues Pin
the_jebus11-Sep-06 8:47
the_jebus11-Sep-06 8:47 
AnswerRe: Custom Wizard issues Pin
the_jebus11-Sep-06 8:49
the_jebus11-Sep-06 8:49 
Questionmemory allocation question Pin
KellyR11-Sep-06 8:36
KellyR11-Sep-06 8:36 
AnswerRe: memory allocation question Pin
Zac Howland11-Sep-06 8:40
Zac Howland11-Sep-06 8:40 
QuestionPositioning in file Pin
Monin D.11-Sep-06 8:28
Monin D.11-Sep-06 8:28 
AnswerRe: Positioning in file Pin
Zac Howland11-Sep-06 8:39
Zac Howland11-Sep-06 8:39 
AnswerRe: Positioning in file Pin
Michael Dunn11-Sep-06 8:42
sitebuilderMichael Dunn11-Sep-06 8:42 
GeneralRe: Positioning in file Pin
Monin D.11-Sep-06 9:24
Monin D.11-Sep-06 9:24 
AnswerRe: Positioning in file Pin
mostafa_pasha11-Sep-06 9:41
mostafa_pasha11-Sep-06 9:41 
QuestionSeprating client area in MDI application. Pin
mostafa_pasha11-Sep-06 8:20
mostafa_pasha11-Sep-06 8:20 
GeneralRe: Seprating client area in MDI application. Pin
Jun Du11-Sep-06 8:57
Jun Du11-Sep-06 8:57 
GeneralRe: Seprating client area in MDI application. Pin
mostafa_pasha11-Sep-06 9:23
mostafa_pasha11-Sep-06 9:23 

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.