Home > other >  Python call DLL, c interface parameters of string and map do
Python call DLL, c interface parameters of string and map do

Time:09-28

Interface function following
# ifdef EXPORT_HELLO_DLL
# define HELLO_API __declspec (dllexport)
# the else
# define HELLO_API __declspec (dllimport)
# endif
# include & lt; String>
# include & lt; Map>
Struct A
{
STD: : string STR.
}
Extern "C"
{
HELLO_API int IntAdd (STD: : string, map}

Like c + + DLL code, the interface parameters have a map, vector, a string in c + + to some things, such as Python at the time of call DLL, how should pass parameters?

CodePudding user response:

Yes, this problem can you solve it
  • Related