[C++-sig] using windows api functions

2009-11-07 Thread blackmet blackmet
Hello, World!))) I'm try to generate pyd file, which simple should create one window, and it's necessary to use windiws api functions. I just take example from msdn: #include // Global variable HINSTANCE hinst; // Function prototypes. //int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int); B

Re: [C++-sig] using windows api functions

2009-11-07 Thread Stefan Seefeld
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:

Re: [C++-sig] using windows api functions

2009-11-07 Thread blackmet blackmet
2009/11/7 Stefan Seefeld > 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/bo

Re: [C++-sig] using windows api functions

2009-11-07 Thread Stefan Seefeld
On 11/07/2009 09:58 AM, blackmet blackmet wrote: 2009/11/7 Stefan Seefeld > 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__

Re: [C++-sig] using windows api functions

2009-11-07 Thread blackmet blackmet
Thanks, Stefan. Sorry for my stupid question. ___ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-sig

Re: [C++-sig] Iterators for heterogeneous container

2009-11-07 Thread troy d. straszheim
Thomas Daniel wrote: BOOST_PYTHON_MODULE(vegetables) { class_("Garden") .def("get_potatoes", &Garden::get_potatoes) .def("get_tomatoes", &Garden::get_tomatoes) ; class_("TomatoIter") .def("__iter__", &TomatoIter::get_next) ; } That at least compiles - unlike all

[C++-sig] connecting library

2009-11-07 Thread blackmet blackmet
Hi, everyone. Prompt me please, how can I connect extern library to bjam. For example: connect libd3d9.a from mingw package. Thankful in advance. ___ Cplusplus-sig mailing list Cplusplus-sig@python.org http://mail.python.org/mailman/listinfo/cplusplus-s

Re: [C++-sig] Iterators for heterogeneous container

2009-11-07 Thread Thomas Daniel
troy d. straszheim wrote: Thomas Daniel wrote: BOOST_PYTHON_MODULE(vegetables) { class_("Garden") .def("get_potatoes", &Garden::get_potatoes) .def("get_tomatoes", &Garden::get_tomatoes) ; class_("TomatoIter") .def("__iter__", &TomatoIter::get_next) ; } That a

Re: [C++-sig] connecting library

2009-11-07 Thread troy d. straszheim
blackmet blackmet wrote: Hi, everyone. Prompt me please, how can I connect extern library to bjam. For example: connect libd3d9.a from mingw package. The wrong list I think, asking on you are. -t ___ Cplusplus-sig mailing list Cplusplus-sig@p