/[winpt]/trunk/PTD/wptJPG.cpp
ViewVC logotype

Diff of /trunk/PTD/wptJPG.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 31 by twoaday, Fri Sep 30 10:10:16 2005 UTC revision 32 by twoaday, Mon Oct 24 08:03:48 2005 UTC
# Line 39  Line 39 
39    
40  #include "wptJPG.h"  #include "wptJPG.h"
41    
42  #define HIMETRIC_INCH 2540  #define HIMETRIC_INCH   2540
43  #define ERROR_TITLE "CJPG Error" /* Error Title (Related To This Class)...*/  #define ERROR_TITLE     "CJPG Error"
44    
45  #define out_of_core() do { \  #define out_of_core() do { \
46          MessageBox (NULL, "Can not allocate memory", ERROR_TITLE, MB_OK|MB_ICONSTOP); \          MessageBox (NULL, "Can not allocate memory", ERROR_TITLE, MB_OK|MB_ICONSTOP); \
# Line 157  CJPG::LoadPictureData (BYTE *pBuffer, in Line 157  CJPG::LoadPictureData (BYTE *pBuffer, in
157    
158      if (CreateStreamOnHGlobal (hGlobal, TRUE, &pStream) == S_OK) {      if (CreateStreamOnHGlobal (hGlobal, TRUE, &pStream) == S_OK) {
159          HRESULT hr;          HRESULT hr;
160          hr = OleLoadPicture (pStream, nSize, FALSE, IID_IPicture, (LPVOID *)&m_IPicture);          hr = OleLoadPicture (pStream, nSize, FALSE, IID_IPicture,
161                                 (LPVOID *)&m_IPicture);
162          if (hr == E_NOINTERFACE) {          if (hr == E_NOINTERFACE) {
163              MessageBox (NULL, "IPicture interface is not supported", ERROR_TITLE, MB_OK|MB_ICONSTOP);              MessageBox (NULL, "IPicture interface is not supported",
164                            ERROR_TITLE, MB_OK|MB_ICONSTOP);
165              return FALSE;              return FALSE;
166          }          }
167          else { /* S_OK */          else { /* S_OK */

Legend:
Removed from v.31  
changed lines
  Added in v.32

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26