473,398 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Create an Entry Point in a DLL

Hi

I have developped a dll that I want to use in another program !
here is my code :

using System;
using System.Collections.Generic;
using System.Text;

namespace NameSpace
{
/// <summary>
/// Main Entry Point.
/// </summary>
public class MyClass
{
public static void Main(string[] args)
{ .... }

}
}

But how can I tell my class or function that it is entrypoint ????

many thx

Cedric Petter

Aug 16 '06 #1
2 6761
Cedric,

Why do you want to specify the entry point?

The entry point is used to indicate that is where the program is to
start when started in a new app domain. If you run this program in another
process or another app domain, then you don't have to know where the entry
point is, it will be handled automatically for you.

If you want to run it in the same app domain, then you really should
take the functionality of the other program and refactor it out into a
library, and access the functionality that way.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<bb****@gmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Hi

I have developped a dll that I want to use in another program !
here is my code :

using System;
using System.Collections.Generic;
using System.Text;

namespace NameSpace
{
/// <summary>
/// Main Entry Point.
/// </summary>
public class MyClass
{
public static void Main(string[] args)
{ .... }

}
}

But how can I tell my class or function that it is entrypoint ????

many thx

Cedric Petter

Aug 16 '06 #2
Nicholas

I need to specify the entry point cause I need to use my dll in a
installer !
and when I specify the dll, it ask me the entry point !

do you understand ??

many thx
Nicholas Paldino [.NET/C# MVP] a écrit :
Cedric,

Why do you want to specify the entry point?

The entry point is used to indicate that is where the program is to
start when started in a new app domain. If you run this program in another
process or another app domain, then you don't have to know where the entry
point is, it will be handled automatically for you.

If you want to run it in the same app domain, then you really should
take the functionality of the other program and refactor it out into a
library, and access the functionality that way.

Hope this helps.

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

<bb****@gmail.comwrote in message
news:11**********************@i3g2000cwc.googlegro ups.com...
Hi

I have developped a dll that I want to use in another program !
here is my code :

using System;
using System.Collections.Generic;
using System.Text;

namespace NameSpace
{
/// <summary>
/// Main Entry Point.
/// </summary>
public class MyClass
{
public static void Main(string[] args)
{ .... }

}
}

But how can I tell my class or function that it is entrypoint ????

many thx

Cedric Petter
Aug 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: intl04 | last post by:
How do I create a data input form in Access that is external to the Access database to which it's connected (if that's possible, which I believe it is)? For example, if someone clicks on an Access...
6
by: SamIAm | last post by:
Hi am creating a email application that needs to mail out a very large amount of emails. I have created a multithreaded c# application that using message queuing. I have created a threadpool of 5...
3
by: Dennis Vansickle | last post by:
Hi all. I'm working with the Tao OpenGL libraries for C# but ran into a problem getting a function to work. What I've done is: // Set current context Wgl.wglMakeCurrent(hDC, hRC);
2
by: filbennett | last post by:
Hi Everyone, I'm generally unfamiliar with Access form design, but have programmed Cold Fusion applications for a couple of years. I'd like to build a data entry form in Access that allows the...
5
by: TC | last post by:
I'm using VB.NET 2005. I need to create a DLL containing a function F(). A VB.NET application will reference the DLL by using a Declare statement. Declare Function F Lib "Foo.dll" (ByVal Woo As...
4
by: etuncer | last post by:
Hello All, I have Access 2003, and am trying to build a database for my small company. I want to be able to create a word document based on the data entered through a form. the real question is...
10
by: Lung.S.wu | last post by:
Hi all, It is a history question. Recently, I read the book "C A reference manual, third edition". In this book, it list all C language keyword, and one is "entry". I know it is omitted from...
18
by: Angus | last post by:
Hello We have a lot of C++ code. And we need to now create a library which can be used from C and C++. Given that we have a lot of C++ code using classes how can we 'hide' the fact that it is...
5
by: Christiano Donke | last post by:
Plz.. I intend to share a class library though network. This library is gonna be called by a VB6 project. I've found out that a late file-based binding on vb6 is the easiest way to bind it......
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.