[C++-sig] Re: Using boost for both embedding and extending.

Brett Calcott brett.calcott at paradise.net.nz
Mon May 26 10:28:28 CEST 2003


>
> CString DLEPRinterface::GetMenuEntry()
> {
> return _T("The menu entry");
> }


GetMenuEntry() returns a CString. Boost.Python has no builtin converters for
this class. i.e. It does not know how to make a CString into a
python-object.

Try changing it to a std::string or a just a char const *const.

BTW, I can't see a try/catch statement -- are you sure it is dumping core,
or is it just raising an exception you don't catch?

Cheers,
Brett









More information about the Cplusplus-sig mailing list