I would like to know how can I export a function so I can use it in other programming language?
I want to use the dll functions in unmanaged programming language.
What can I do?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You will need to run regasm.exe with the
/tlbcommand against your .NET assembly and then reference the output type library (tlb) from C++.I’ve done this many times before and it can be a pain, especially when you go to deploy it. I recommend using the
/codebaseswitch, which tells the registry where to find your .NET assembly when its classes are instantiated in a COM context. That makes it easy to find in the registry and tweek it as necessary.