Class Library - What is Entry Point?

  • Thread starter Thread starter Erik Jensen
  • Start date Start date
E

Erik Jensen

I am trying to call a .NET c# class library with 2 methods
in it from InstallShield. I made a method to do a file
creation.

The installshield has taken 'void DLL_NAME::METHOD_NAME()'
as its call to the method. However it says my DLL has no
entry point.

My dll is arranged like this:

Namespace{

Class{

Method1
Method2

} //end class

}//end namespace

Can I add an entry point that that program wants. It
mentions exported methods, however, I see that word in
VC++ projects not c# projects.

Thanks
 
Erik Jensen wrote:
|| I am trying to call a .NET c# class library with 2 methods
|| in it from InstallShield. I made a method to do a file
|| creation.
||
|| The installshield has taken 'void DLL_NAME::METHOD_NAME()'
|| as its call to the method. However it says my DLL has no
|| entry point.
||
|| My dll is arranged like this:
||
|| Namespace{
||
|| Class{
||
|| Method1
|| Method2
||
|| } //end class
||
|| }//end namespace
||
|| Can I add an entry point that that program wants. It
|| mentions exported methods, however, I see that word in
|| VC++ projects not c# projects.
||
|| Thanks

You can't do this, C# doesn't export Method names.
In order to call C# methods you can:
- use COM interop
- C++.NET using managed extensions.

In your case you will have to write a wrapper DLL using C++ that exposes a C function to be called from installshield, those
functions can call your C# code using one of the aforementioned methods.

Willy.
 
Back
Top