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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

Import and export DLL files

YA_10963798
14-Alexandrite

Import and export DLL files

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. 

ACCEPTED SOLUTION

Accepted Solutions

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.

View solution in original post

4 REPLIES 4

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.

Thank you that is helpful

Is that strictly true? I understood that there were non-executable DLLs that could store data; an example might be a resource DLL.

 

https://learn.microsoft.com/en-us/windows/win32/dlls/using-shared-memory-in-a-dynamic-link-library

 

https://learn.microsoft.com/en-us/windows/win32/dlls/using-thread-local-storage-in-a-dynamic-link-library

 

https://en.wikipedia.org/wiki/Dynamic-link_library

 

I haven't done any Windows programming for a long time, so I'm all too ready to admit my understanding is incorrect.

 

Stuart

YA_10963798
14-Alexandrite
(To:StuartBruff)

Thank you Stuart, 

I will check these resource.

Announcements

Top Tags