PC Review


Reply
Thread Tools Rate Thread

Class Library - What is Entry Point?

 
 
Erik Jensen
Guest
Posts: n/a
 
      31st Jul 2003
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
 
Reply With Quote
 
 
 
 
Willy Denoyette [MVP]
Guest
Posts: n/a
 
      31st Jul 2003
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.


 
Reply With Quote
 
Michael Lang
Guest
Posts: n/a
 
      31st Jul 2003
In general the entry point is where the application starts when it runs,
such as a static "Main" method.

[STAThread]
static void Main()
{
... code to run application ...
}

For details, see:
http://msdn.microsoft.com/library/de...bjectfield.asp

Michael Lang, MCSD

"Erik Jensen" <(E-Mail Removed)> wrote in message
news:034e01c3578a$479275f0$(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Create Entry Point in Class Library Herfried K. Wagner [MVP] Microsoft VB .NET 4 17th Nov 2008 05:12 PM
entry point _GetIUMS@4 could not be located in the dynamic link library MSART.DL BigSeven Windows XP General 3 6th Feb 2004 06:45 AM
the procedure entry point could not be located in the dynamic link library MsoCFU.dll. Komputer Geek Windows XP Beta Help and Support 0 29th Sep 2003 09:47 AM
Entry Point Not Found (dynamic link library) (KERNEL32.dll) Denny Coiro Windows XP General 2 30th Aug 2003 11:24 AM
Procedure Entry Point / Dynamic Link Library michelle Microsoft Windows 2000 Applications 1 8th Jul 2003 01:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:18 AM.