Skip to main content
6-Contributor
Jun 28, 2021 10:42 AM UTC
Solved

Error in ExecuteFunction after successful LoadProToolkitDll

Hi,

 

I am trying to call the toolkit function from VB api as per example given in article CS252032.

DLL loaded but ExecuteFunction throws pfcExceptions::XToolkitNotFound error.

 

Can anyone success in this method. Please guide.

14-Alexandrite
Jun 28, 2021 11:06 AM UTC

Use #define EXPORT extern "C" __declspec(dllexport) instead of PRO_TK_DLL_EXPORT.

Due to name mangling you might get not found error:

Refer: https://stackoverflow.com/questions/1314743/what-is-name-mangling-and-how-does-it-work

 

2 replies

14-Alexandrite
Jun 28, 2021 11:06 AM UTC

Use #define EXPORT extern "C" __declspec(dllexport) instead of PRO_TK_DLL_EXPORT.

Due to name mangling you might get not found error:

Refer: https://stackoverflow.com/questions/1314743/what-is-name-mangling-and-how-does-it-work

 

Translate
6-Contributor
Jun 28, 2021 11:26 AM UTC

Hi Syalagudri,

 

Thanks for the solution.

Translate