Showing results for 
Search instead for 
Did you mean: 

How to load a c# dll?


I have an NX dll written in c++ which has to make use of an external dll written in c#. How do I go about it? Is there anything I should be taking care of while creating the c# dll?


I tried using the UF_load_library method which did not work. It said, unexpected error while loading dll.


Re: How to load a c# dll?

Siemens Phenom Siemens Phenom
Siemens Phenom

This is a non-trivial process, but it can be done.  Search the NX Open Programmer's Guide for this headline:


Calling Common API from Legacy Open C Applications


That page contains pretty detailed information about setting this up.  It ist written to doemonstrate calling NX Open .Net functions from an Open C program, but your .Net code could be unrelated to NX, presumably.