Calling .NET DLLs

For all your non-technical questions.
Post Reply
marlonguerios
Posts: 7
Joined: Wed Jun 14, 2006 2:36 am

Calling .NET DLLs

Post 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
CandiceJones
Posts: 904
Joined: Thu Dec 22, 2005 7:03 pm
Contact:

Post 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.
Candice Jones
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
marlonguerios
Posts: 7
Joined: Wed Jun 14, 2006 2:36 am

Post by marlonguerios »

Thank you.
skibbs
Posts: 56
Joined: Thu Apr 27, 2006 5:06 pm
Location: Redmond, WA
Contact:

Re: Calling .NET DLLs

Post 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.
marlonguerios
Posts: 7
Joined: Wed Jun 14, 2006 2:36 am

Re: Calling .NET DLLs

Post 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
Post Reply