Re: WTL 9 and visual studio 2013 community edition

"Nenad Stefanović [email protected] [wtl]" <[email protected]> Sun, 7 Dec 2014 14:42:43 -0800
Newsgroups gmane.comp.windows.wtl
Message-ID <CAK3Hp+-HL=h7gJO+C1+ZgTNSz0y-Ld5RwGYScZpPjtf57d_mYA@mail.gmail.com>
--001a1135329c340ed40509a807e2
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Visual Studio 2103 Community Edition contains everything that is needed to
build WTL projects. No special settings are needed, other than adding WTL
include folder.

You need to change WINVER in atdafx.h to at least 0x0500 since ATL12 (that
comes with VS2013) assumes WINVER of 0x0500, but doesn't warn you if it's
not. HMONITOR is defined only for WINVER >- 0x0500.

Also note that for WTLExplorer you need to comment out two includes,
shlobj.h and shlguid.h, that were included before atlbase.h in atdafx.h.
They are not needed now.

Cheers,
Nenad


On Sun, Dec 7, 2014 at 6:42 AM, [email protected] [wtl] <
[email protected]> wrote:

>
>
> I've tried compiling a few of the WTL 9 sample applications with visual
> studio 2013 community edition.
>
> Since community edition reported to be a free version of professional,
> should this work?
>
> First line of compiler output:
>
> c:\program files (x86)\microsoft visual studio
> 12.0\vc\atlmfc\include\atlwin.h(2084): error C2065: 'HMONITOR' : undeclar=
ed
> identifier
>
> Express 2013 needed these hacks
> <https://barkingbogart.wordpress.com/2014/04/23/how-to-use-wtl-9-0-with-v=
isual-studio-express-2013/>,
> is the same needed for community edition?
>
>
>=20=20
>

--001a1135329c340ed40509a807e2
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable





<head>

<style type=3D"text/css">
<!--

/* start of attachment style */
       .ygrp-photo-title{
         clear: both;
         font-size: smaller;
         height: 15px;
         overflow: hidden;
         text-align: center;
         width: 75px;
       }
       div.ygrp-photo{
         background-position: center;
         background-repeat: no-repeat;
         background-color: white;
         border: 1px solid black;
         height: 62px;
         width: 62px;
       }

       div.photo-title=20
         a,
         div.photo-title a:active,
         div.photo-title a:hover,
         div.photo-title a:visited {
           text-decoration: none;=20
       }

       div.attach-table div.attach-row {
         clear: both;
       }

       div.attach-table div.attach-row div {
         float: left;
         /* margin: 2px;*/
       }

       p {
         clear: both;
         padding: 15px 0 3px 0;
	 overflow: hidden;
       }

       div.ygrp-file {
         width: 30px;
         valign: middle;
       }
       div.attach-table div.attach-row div div a {
         text-decoration: none;
       }

       div.attach-table div.attach-row div div span {
         font-weight: normal;
       }

       div.ygrp-file-title {
         font-weight: bold;
       }
 /* end of attachment style */
        -->
        </style>
        </head>
<html>
<head>
<style type=3D"text/css">
<!--
#ygrp-mkp {
  border: 1px solid #d8d8d8;
  font-family: Arial;
  margin: 10px 0;
  padding: 0 10px;
}

#ygrp-mkp hr {
  border: 1px solid #d8d8d8;
}

#ygrp-mkp #hd {
  color: #628c2a;
  font-size: 85%;
  font-weight: 700;
  line-height: 122%;
  margin: 10px 0;
}

#ygrp-mkp #ads {
  margin-bottom: 10px;
}

#ygrp-mkp .ad {
  padding: 0 0;
}

#ygrp-mkp .ad p {
  margin: 0;
}

#ygrp-mkp .ad a {
  color: #0000ff;
  text-decoration: none;
}
-->
</style>
</head>
<body>



<!-- |**|begin egp html banner|**| -->

<br><br>

<!-- |**|end egp html banner|**| -->


<div dir=3D"ltr"><div>Visual Studio 2103 Community Edition contains everyth=
ing that is needed to build WTL projects. No special settings are needed, o=
ther than adding WTL include folder.</div><div><br></div><div>You need to c=
hange WINVER in atdafx.h to at least 0x0500 since ATL12 (that comes with VS=
2013) assumes WINVER of 0x0500, but doesn&#39;t warn you if it&#39;s not. H=
MONITOR is defined only for WINVER &gt;- 0x0500.</div><div><br></div><div>A=
lso note that for WTLExplorer you need to comment out two includes, shlobj.=
h and shlguid.h, that were included before atlbase.h in atdafx.h. They are =
not needed now.</div><div><br></div><div>Cheers,<br></div><div>Nenad</div><=
div><br></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quot=
e">On Sun, Dec 7, 2014 at 6:42 AM, <a href=3D"mailto:[email protected]"=
>[email protected]</a> [wtl] <span dir=3D"ltr">&lt;<a href=3D"mailto:wt=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</span> wro=
te:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-=
left:1px #ccc solid;padding-left:1ex">


<u></u>









=20
<div style=3D"background-color:#fff">
<span>=C2=A0</span>


<div>
  <div>


    <div>
=20=20=20=20=20=20
=20=20=20=20=20=20
      <p></p><p style=3D"margin-top:0px;margin-bottom:1em;font-size:14px;ve=
rtical-align:baseline;font-family:Arial,&#39;Liberation Sans&#39;,&#39;Deja=
Vu Sans&#39;,sans-serif">I&#39;ve tried compiling a few of the WTL 9 sample=
 applications with visual studio 2013 community edition.</p><p style=3D"mar=
gin-top:0px;margin-bottom:1em;font-size:14px;vertical-align:baseline;font-f=
amily:Arial,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,sans-serif">Sin=
ce community edition reported to be a free version of professional, should =
this work?</p><p style=3D"margin-top:0px;margin-bottom:1em;font-size:14px;v=
ertical-align:baseline;font-family:Arial,&#39;Liberation Sans&#39;,&#39;Dej=
aVu Sans&#39;,sans-serif">First line of compiler output:</p><p style=3D"mar=
gin-top:0px;margin-bottom:1em;font-size:14px;vertical-align:baseline;font-f=
amily:Arial,&#39;Liberation Sans&#39;,&#39;DejaVu Sans&#39;,sans-serif">c:\=
program files (x86)\microsoft visual studio 12.0\vc\atlmfc\include\atlwin.h=
(2084): error C2065: &#39;HMONITOR&#39; : undeclared identifier</p><p><span=
></span></p><p style=3D"margin-top:0px;margin-bottom:1em;font-size:14px;ver=
tical-align:baseline;font-family:Arial,&#39;Liberation Sans&#39;,&#39;DejaV=
u Sans&#39;,sans-serif">Express 2013 needed=C2=A0<a rel=3D"nofollow" href=
=3D"https://barkingbogart.wordpress.com/2014/04/23/how-to-use-wtl-9-0-with-=
visual-studio-express-2013/" style=3D"margin:0px;padding:0px;vertical-align=
:baseline;color:rgb(74,107,130);background:transparent" target=3D"_blank">t=
hese hacks</a>, is the same needed for community edition?</p><p><span><br><=
/span></p><p></p>

    </div>
=20=20=20=20=20

=20=20=20=20
    <div style=3D"color:#fff;min-height:0"></div>


</div>



=20=20






</blockquote></div><br></div>




<!-- |**|begin egp html banner|**| -->

<br>


<br>

<!-- |**|end egp html banner|**| -->


<div width=3D"1" style=3D"color: white; clear: both;"/>__._,_.___</div>

=20=20=20=20=20=20
=20=20

=20=20=20=20
    <div id=3D"fromDMARC" style=3D"clear:both; margin-top: 10px;">
         <hr style=3D"height:2px ; border-width:0; color:#E3E3E3; backgroun=
d-color:#E3E3E3;">
         Posted by: =3D?UTF-8?Q?Nenad_Stefanovi=3DC4=3D87?=3D &lt;nenad2001=
@gmail.com&gt;         <hr style=3D"height:2px ; border-width:0; color:#E3E=
3E3; background-color:#E3E3E3;">
    </div>
<!-- Start Recommendations -->
<!-- End Recommendations -->



<!-- |**|begin egp html banner|**| -->

  <img src=3D"http://geo.yahoo.com/serv?s=3D97476590/grpId=3D488621/grpspId=
=3D1705006764/msgId=3D16691/stime=3D1417992166" width=3D"1" height=3D"1"> <=
br>

<!-- |**|end egp html banner|**| -->

=20=20
<!-- |**|begin egp html banner|**| -->

<br>



=20=20=20
=20=20=20=20=20
=20
        <!-- |**|begin egp html banner|**| -->
        <div id=3D"ygrp-vital" style=3D"background-color: #f2f2f2; font-fam=
ily: Verdana; font-size: 10px; margin-bottom: 10px; padding: 10px;">

        <span id=3D"vithd" style=3D"font-weight: bold; color: #333; text-tr=
ansform: uppercase; "><a href=3D"https://groups.yahoo.com/neo/groups/wtl/in=
fo;_ylc=3DX3oDMTJkamwwanFsBF9TAzk3MzU5NzE0BGdycElkAzQ4ODYyMQRncnBzcElkAzE3M=
DUwMDY3NjQEc2VjA3Z0bARzbGsDdmdocARzdGltZQMxNDE3OTkyMTY2" style=3D"text-deco=
ration: none;">Visit Your Group</a></span>

     <ul style=3D"list-style-type: none; margin: 0; padding: 0; display: in=
line;">
                                                    </ul>
  </div>


<div id=3D"ft" style=3D"font-family: Arial; font-size: 11px; margin-top: 5p=
x; padding: 0 2px 0 0; clear: both;">
  <a href=3D"https://groups.yahoo.com/neo;_ylc=3DX3oDMTJjdG85bjVwBF9TAzk3ND=
c2NTkwBGdycElkAzQ4ODYyMQRncnBzcElkAzE3MDUwMDY3NjQEc2VjA2Z0cgRzbGsDZ2ZwBHN0a=
W1lAzE0MTc5OTIxNjY-" style=3D"float: left;"><img src=3D"http://l.yimg.com/r=
u/static/images/yg/img/email/new_logo/logo-groups-137x15.png" height=3D"15"=
 width=3D"137" alt=3D"Yahoo! Groups" style=3D"border: 0;"/></a>
  <div style=3D"color: #747575; float: right;"> &bull; <a href=3D"https://i=
nfo.yahoo.com/privacy/us/yahoo/groups/details.html" style=3D"text-decoratio=
n: none;">Privacy</a> &bull; <a href=3D"mailto:wtl-unsubscribe@yahoogroups.=
com?subject=3DUnsubscribe" style=3D"text-decoration: none;">Unsubscribe</a>=
 &bull; <a href=3D"https://info.yahoo.com/legal/us/yahoo/utos/terms/" style=
=3D"text-decoration: none;">Terms of Use</a> </div>
</div>

<!-- |**|end egp html banner|**| -->

  </div> <!-- ygrp-msg -->

=20=20=20


  <br>

<!-- |**|end egp html banner|**| -->


<div style=3D"color: white; clear: both;"/>__,_._,___</div>
</body>

</html>

--001a1135329c340ed40509a807e2--