Skip to main content
6-Contributor
June 28, 2021
Solved

Error in ExecuteFunction after successful LoadProToolkitDll

  • June 28, 2021
  • 1 reply
  • 1761 views

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.

Best answer by syalagudri

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

 

1 reply

14-Alexandrite
June 28, 2021

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

 

6-Contributor
June 28, 2021

Hi Syalagudri,

 

Thanks for the solution.