cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

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

syelike
1-Newbie

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

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 1
LucMeekes
23-Emerald III
(To:syelike)

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

Top Tags