<br><br><div class="gmail_quote">2011/11/18 Sergey Radionov <span dir="ltr"><<a href="mailto:rsatom@gmail.com">rsatom@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
#include<objsafe.h><br>
</blockquote>
Is MINGW32 has this header?<span class="HOEnZb"><font color="#888888"><br></font></span></blockquote><div>In my mingw this file exist, but have no CATID_SafeForScripting/CATID_SafeForScripting/CATID_InternetAware.<br><br>
so, I think, we can use you variant:<br><br>#ifdef __MINGW32__<br>#include <_mingw.h><br>#endif<br><br>#include <objsafe.h><br>
<br>#if defined(__MINGW64_VERSION_MAJOR) || defined (_MSC_VER)<br><br>#include <guiddef.h><br><br>#else /* ! __MINGW64_VERSION_MAJOR */<br><br>/*<br>** Widl generated code requires guiddef.h,<br>** which is not available under MinGW32<br>
*/<br>#undef GUID_EXT<br>#define GUID_EXT<br>#include <initguid.h><br><br>/*<br>** Mingw32 do not declare those<br>*/<br>/* CATID_InternetAware is declared as extern but not present in library */<br>DEFINE_GUID(CATID_InternetAware, \<br>
    0x0DE86A58, 0x2BAA, 0x11CF, 0xA2, 0x29, 0x00,0xAA,0x00,0x3D,0x73,0x52);<br>DEFINE_GUID(CATID_SafeForInitializing, \<br>    0x7DD95802, 0x9882, 0x11CF, 0x9F, 0xA9, 0x00,0xAA,0x00,0x6C,0x42,0xC4);<br>DEFINE_GUID(CATID_SafeForScripting, \<br>
    0x7DD95801, 0x9882, 0x11CF, 0x9F, 0xA9, 0x00,0xAA,0x00,0x6C,0x42,0xC4);<br>#endif /* __MINGW64_VERSION_MAJOR */<br><br> <br>Are you agree with me?<br><br></div><div></div><div></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<span class="HOEnZb"><font color="#888888">
<br>
-- <br>
With best wishes,<br>
Sergey Radionov<br>
</font></span></blockquote></div><br>