Код: Выделить всё
void Test2(const std::wstring& wstrSource)
{
wprintf(L"Test2: %s\n", wstrSource.c_str());
}
Код: Выделить всё
%traits_swigtype(_CharT);
Код: Выделить всё
/* File : example.i */
%module example
%{
#include "example.h"
%}
%include std_wstring.i
%include "example.h"
Я искал в Google и Stackoverflow, но не нашел результатов. Как исправить эту ошибку?
Справка SWIG по использованию STL
Подробнее здесь: https://stackoverflow.com/questions/786 ... nsion-code
Мобильная версия