Skip to main content
14-Alexandrite
October 8, 2024
Solved

Import and export DLL files

  • October 8, 2024
  • 1 reply
  • 1234 views

Is it possible to import data from .dll file type and then exporting the results to .dll. ?

We are planing to have a library that multiple programs can use simultaneously and DLL is our best choice. 

Best answer by terryhendicott

DLL are not data files.  DLL are dynamically loaded library (hence DLL) that are executable code files.  The code within the DLL files can be used to read and write data to files of various types.  I would recommend binary data files for numbers.  The code in DLL's are loaded dynamically when Windows needs it.

 

DLL's can be purposly written for PTC Prime.  See help.

 

About Custom Functions
With custom functions, you can extend the functionality of PTC Mathcad Prime by writing your own customized functions. Your custom functions behave like PTC Mathcad Prime built-in functions. A custom function carries the Function label and can have many of the same features as PTC Mathcad Prime built-in functions, such as customized error messages, interruption, and exception handling in case of overflow and divide by zero. Custom functions are allowed to pass complex scalars, complex matrices, and string variable types. You can group a set of custom functions in a Dynamic Link Library (DLL). A DLL that groups several custom functions is called an extension.

1 reply

21-Topaz II
October 8, 2024

DLL are not data files.  DLL are dynamically loaded library (hence DLL) that are executable code files.  The code within the DLL files can be used to read and write data to files of various types.  I would recommend binary data files for numbers.  The code in DLL's are loaded dynamically when Windows needs it.

 

DLL's can be purposly written for PTC Prime.  See help.

 

About Custom Functions
With custom functions, you can extend the functionality of PTC Mathcad Prime by writing your own customized functions. Your custom functions behave like PTC Mathcad Prime built-in functions. A custom function carries the Function label and can have many of the same features as PTC Mathcad Prime built-in functions, such as customized error messages, interruption, and exception handling in case of overflow and divide by zero. Custom functions are allowed to pass complex scalars, complex matrices, and string variable types. You can group a set of custom functions in a Dynamic Link Library (DLL). A DLL that groups several custom functions is called an extension.
14-Alexandrite
October 9, 2024

Thank you that is helpful