Skip to main content
1-Visitor
May 3, 2017
Question

Using 'Custom Function' to call external functions (from a DLL)

  • May 3, 2017
  • 1 reply
  • 1235 views

Hello,

  I followed the examples with creating 'Custom Functions' from the MathCad help documentation with success.

I tried to extend the capabilities by calling external DLL functions from a  'Custom Function' (no success). I have the .h file available (with function prototypes).

1 reply

23-Emerald IV
May 3, 2017

Could it be that you're trying to link your 64-bit DLL to the 32-bit TDSteam32.lib, and that the C-linker does not like that?

Are you sure that the prototype of function StmTP is defined in one of the .h files you include? (I guess it should be defined in TSteamProto.h)

Does it work, or behave differently, if you uncomment the prototype definition for StmTP in your callStmTable.C file?

Luc