Re: compiler requires explicit cast?
horace <[email protected]> Thu, 2 Jul 2009 11:38:33 +0200
| Newsgroups | gmane.comp.python.pyrex |
|---|---|
| Message-ID | <[email protected]> |
--===============1661509471== Content-Type: multipart/alternative; boundary=001636c5acf8a9563c046db5cd88 --001636c5acf8a9563c046db5cd88 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Thu, Jul 2, 2009 at 9:39 AM, Greg Ewing <[email protected]>wrote: > horace wrote: > >> >> i will also try to find out if i can do something like -M with the visual >> c++ compiler. >> > > Actually, I meant -E (the one that outputs the results > of preprocessing). > i got it working: ctypedef void *PVOID ctypedef PVOID HANDLE ctypedef HANDLE HICON #ctypedef HANDLE HINSTANCE # doesn't work! ctypedef long HINSTANCE # does work! ctypedef HINSTANCE HMODULE argh... why didn't i simply experiment a bit with different types sooner instead of desperately looking for the correct HINSTANCE definition in the windows sdk. :) --001636c5acf8a9563c046db5cd88 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <br><br><div class=3D"gmail_quote">On Thu, Jul 2, 2009 at 9:39 AM, Greg Ewi= ng <span dir=3D"ltr"><<a href=3D"mailto:[email protected]">gre= [email protected]</a>></span> wrote:<br><blockquote class=3D"gmai= l_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0p= t 0pt 0.8ex; padding-left: 1ex;"> <div class=3D"im">horace wrote:<br> <blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, = 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <br> i will also try to find out if i can do something like -M with the visual c= ++ compiler.<br> </blockquote> <br></div> Actually, I meant -E (the one that outputs the results<br> of preprocessing).<font color=3D"#888888"><br> </font></blockquote></div><br><br><br>i got it working:<br><br>=A0=A0=A0 ct= ypedef void *PVOID<br>=A0=A0=A0 ctypedef PVOID HANDLE<br>=A0=A0=A0 ctypedef= HANDLE HICON<br>=A0=A0=A0 #ctypedef HANDLE HINSTANCE # doesn't work!<b= r>=A0=A0=A0 ctypedef long HINSTANCE # does work!<br> =A0=A0=A0 ctypedef HINSTANCE HMODULE<br><br><br><br>argh... why didn't = i simply experiment a bit with different types sooner instead of desperatel= y looking for the correct HINSTANCE definition in the windows sdk. :)<br> --001636c5acf8a9563c046db5cd88-- --===============1661509471== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline _______________________________________________ Pyrex mailing list [email protected] http://lists.copyleft.no/mailman/listinfo/pyrex --===============1661509471==--