Page 1 of 1
Calling .NET DLLs
Posted: Tue Jun 20, 2006 4:03 am
by marlonguerios
Hello,
I'm evaluatig InstallAware and we are about to buy it.
I would like to know whether it is possible to call .NET DLL developed in C#. I have two DLL that I need to call to validate the userkey and to encrypt the password provided by the user. It is not working though.
If there is a way to do that, please tell me how I could accomplish it.
Thanks in advance,
Marlon
Posted: Tue Jun 20, 2006 4:50 am
by CandiceJones
Hi Marlon!
If your .NET DLLs can be called by standard Win32 applications, InstallAware can call them too, using the Call DLL Function command. Just make sure your DLL supports stdcall.
Posted: Tue Jun 20, 2006 10:54 am
by marlonguerios
Thank you.
Re: Calling .NET DLLs
Posted: Wed Jul 05, 2006 5:03 pm
by skibbs
marlonguerios wrote:Hello,
I'm evaluatig InstallAware and we are about to buy it.
I would like to know whether it is possible to call .NET DLL developed in C#. I have two DLL that I need to call to validate the userkey and to encrypt the password provided by the user. It is not working though.
If there is a way to do that, please tell me how I could accomplish it.
Thanks in advance,
Marlon
You can wrap them in a .NET COM wrapper, then create a Win32 C++ DLL that uses COM interop to load the .NET COM wrapper and voila you have access to your existing .NET libraries from IA.
Re: Calling .NET DLLs
Posted: Thu Jul 06, 2006 7:20 am
by marlonguerios
skibbs wrote:marlonguerios wrote:Hello,
I'm evaluatig InstallAware and we are about to buy it.
I would like to know whether it is possible to call .NET DLL developed in C#. I have two DLL that I need to call to validate the userkey and to encrypt the password provided by the user. It is not working though.
If there is a way to do that, please tell me how I could accomplish it.
Thanks in advance,
Marlon
You can wrap them in a .NET COM wrapper, then create a Win32 C++ DLL that uses COM interop to load the .NET COM wrapper and voila you have access to your existing .NET libraries from IA.
Hello,
Do you have any example of that? Actually I have redeveloped my c# dll in c++ but I am getting a little different behavior. So, if you I can use the original dll, it would better.
Thanks,
Marlon