Example Requirements

Show in webframe

When compiling the C/C++ examples, include the following in your project:

  1. The following macros are used in all of the LEAD WIC-Enabled C/C++ Codec samples. When testing the files, include these macros in a common header file.
                                The following macros are used in all of the LEAD WIC-Enabled C/C++ Codec samples. 
                                When testing the files, include these macros in a common header file.
                        
                        #define IFS(fn)                 \
                        {                               \
                            if (SUCCEEDED(hr))          \
                            {                           \
                                hr = (fn);              \
                            }                           \
                        }
                
                        #define RELEASE_INTERFACE(pi)   \
                        {                               \
                            if (pi)                     \
                            {                           \
                                pi->Release();          \
                                pi = NULL;              \
                            }                           \
                        }
                
                        #define DELETE_POINTER(p)       \
                        {                               \
                            if (p)                      \
                            {                           \
                                delete p;               \
                                p = NULL;               \
                            }                           \
                        }
                        
    
  2. Include the following header file in your C/C++ examples project.The examples use this CString imlementation.
     Include the following header file in your C/C++ examples project.The examples use this CString imlementation.
                        
                        #include <atlstr.h>
                        
    

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.