ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> cpp-sig
cpp-sig
Re: [C++-sig] using windows api functions
by Blackmet Blackmet other posts by this author
Nov 7 2009 6:58AM messages near this date
Re: [C++-sig] using windows api functions | Re: [C++-sig] using windows api functions
2009/11/7 Stefan Seefeld <seefeld@[...].ca> 

>  On 11/07/2009 08:43 AM, blackmet blackmet wrote:
> 
> >
> > c:/boost_1_40_0/boost/python/make_function.hpp:103: error:
> > invalid conversion from `int (*)(HINSTANCE__*, HINSTANCE__*, CHAR*, int)'
> > to `int (*)(HINSTANCE__*, HINSTANCE__*, CHAR*, int)'
> > c:/boost_1_40_0/boost/python/make_function.hpp:103: error:
> > initializing argument 1 of `boost::mpl::vector5<T0, T1, T2, T3, T4>
> > boost::python::detail::get_signature(RT (*)(T0, T1, T2, T3), void*)
> > [with RT = int, T0 = HINSTANCE__*, T1 = HINSTANCE__*, T2 = CHAR*, T3 =
> > int]'
> >
> 
>  That is a confusing error message, isn't it. I seem to recall having seen
>  similar errors in the past, though I don't recall what caused it. Can you
>  show the declaration of the function that you are attempting to wrap ? Could
>  it be that it is using non-standard calling conventions (stdcall, fastcall,
>  or some such), causing the compiler to detect a mismatch, without being able
>  to report a clear error message ?
> 
>  It is quite simple:

BOOST_PYTHON_MODULE(_winmain)
{
using namespace boost::python;
def("WinMain", WinMain);

}
Thread:
Blackmet Blackmet
Stefan Seefeld
Blackmet Blackmet
Stefan Seefeld
Blackmet Blackmet

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved