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 >> C++-sig
C++-sig
[C++-sig] Some patches to make the "Automatic PyUnicode to 'const char*'" possible, and make __stdcall function bindable
by Lijun Qin other posts by this author
Aug 18 2003 9:04AM messages near this date
[C++-sig] Re: using msvc lib in python | Re: [C++-sig] Re: Some patches to make the "Automatic PyUnicode to 'const char*'" possible, and make __stdcall function bindable
Hi,

I have some patches to make the "Automatic PyUnicode to 'const char*'"
possible (please see
http://mail.python.org/pipermail/c++-sig/2003-August/004997.html for
details) and make the export of '__stdcall' function possible.
In addition to the changes in the boost.python source, the file
<boost/type_traits/detail/is_mem_fun_pointer_impl.hpp>  also need to changed
to add some lines to match the (__stdcall T::*) functions, many lines in
this file seemed were generated by the compile through defining something I
don't known, maybe Mr. David Abrahams can make these changes (it exists in
another library)

#ifdef BOOST_MEM_FN_ENABLE_STDCALL
template <class R, class T > 
struct is_mem_fun_pointer_impl<R (__stdcall T::*)() >  {
BOOST_STATIC_CONSTANT(bool, value = true); };
...
...
lots of lines similar to this

...

#endif

Lijun Qin
http://www.solidshare.com

---------------------------------------------------------------------------
p.s.
Use the convert_unicode_policy like this:
.def("SetWindowText", convert_unicode_policy<some_other_policy_you_needed<> 
> ())
Then you can pass both PyString and PyUnicode to your method, without the
explicit str() call.
Attachments:
patch.txt
unicode_converter.h
unknown3

Thread:
Lijun Qin
Lijun Qin
David Abrahams

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