I have a C ++ program, and it has the appearance of a plug-in structure: when the program starts, it looks for a DLL in the plug-in folder with certain exported function signatures, such as:
void InitPlugin(FuncTable* funcTable);
Then the program will call the function in the dll to initialize and pass the function pointers to the dll. From this moment, the dll can talk to the program.
I know that Cython allows you to call a C function in Python, but I'm not sure if I can write Cython code and compile it in dll so that my C ++ program can initialize it. Sample code will be great.
source share