Click here to Skip to main content
15,906,816 members
Home / Discussions / Visual Basic
   

Visual Basic

 
Generalasp.net web tree view control problems Pin
Anonymous19-Jan-05 3:44
Anonymous19-Jan-05 3:44 
GeneralRe: asp.net web tree view control problems Pin
Dave Kreskowiak19-Jan-05 4:07
mveDave Kreskowiak19-Jan-05 4:07 
Generalvb6 Sub main() doesn't exist Pin
19-Jan-05 3:02
suss19-Jan-05 3:02 
GeneralRe: vb6 Sub main() doesn't exist Pin
Jim Matthews19-Jan-05 3:52
Jim Matthews19-Jan-05 3:52 
GeneralRe: vb6 Sub main() doesn't exist Pin
Dave Kreskowiak19-Jan-05 3:52
mveDave Kreskowiak19-Jan-05 3:52 
GeneralRe: vb6 Sub main() doesn't exist Pin
19-Jan-05 4:57
suss19-Jan-05 4:57 
GeneralRe: vb6 Sub main() doesn't exist Pin
Dave Kreskowiak19-Jan-05 5:34
mveDave Kreskowiak19-Jan-05 5:34 
GeneralRe: vb6 Sub main() doesn't exist Pin
rwestgraham30-Jan-05 18:57
rwestgraham30-Jan-05 18:57 
Dave Kreskowiak wrote:
There's your problem. ActiveX .DLL's don't user a Main. In order for this to work, you'll have to convert the project back to an .EXE. You can't use a Main in any .DLL's.

That is totally and utterly incorrect. A DLL MUST have a public class that can be created by an external user. HOWEVER it can still have a Sub Main. If so, Sub Main defines the entry point to the DLL.

You can have two startup settings for a VB DLL:

None:

The public class Initialize event provides the DLL entry point and this is the first code to run.

Sub Main:

You still have to have a public class to instantiate the dll. However, if you define Sub Main as the start up object, what happens is:

1) Your external client creates an class object in the dll.

2) In response to the request for the class object the dll FIRST executes all the code in Sub Main.

3) The dll then fires the requested class's Initialize event and returns the class object reference to the caller.

Now, what you CANNOT have in a VB DLL is a form as a startup object. Your options are "None" and "Sub Main".
GeneralIcon on first form of MDI Pin
Mad Doc's hairy belly19-Jan-05 1:13
Mad Doc's hairy belly19-Jan-05 1:13 
GeneralRe: Icon on first form of MDI Pin
Tom John19-Jan-05 1:43
Tom John19-Jan-05 1:43 
QuestionHow to Run DB Script file from VB.Net Pin
Rizwan Bashir19-Jan-05 0:53
Rizwan Bashir19-Jan-05 0:53 
GeneralHandling embbeded documents in IE from VBScript Pin
Emilio Guijarro19-Jan-05 0:20
Emilio Guijarro19-Jan-05 0:20 
GeneralVISUAL BASIC.NET Pin
Member 166535418-Jan-05 23:56
Member 166535418-Jan-05 23:56 
GeneralRe: VISUAL BASIC.NET Pin
Dave Kreskowiak19-Jan-05 2:22
mveDave Kreskowiak19-Jan-05 2:22 
GeneralUser Control in VB.NET Pin
kumthekar18-Jan-05 23:52
kumthekar18-Jan-05 23:52 
GeneralRe: User Control in VB.NET Pin
Rizwan Bashir19-Jan-05 0:31
Rizwan Bashir19-Jan-05 0:31 
GeneralHow raise event from User Control Pin
gaesquivel19-Jan-05 7:53
gaesquivel19-Jan-05 7:53 
GeneralRe: User Control in VB.NET Pin
GuruPandian21-Jan-05 3:41
GuruPandian21-Jan-05 3:41 
GeneralAccessing remote objects in VB.NET Pin
kumthekar18-Jan-05 23:37
kumthekar18-Jan-05 23:37 
Generalconvert IntPrt back to its original Object in VB.NET Pin
mujjusyed18-Jan-05 20:18
mujjusyed18-Jan-05 20:18 
GeneralRe: convert IntPrt back to its original Object in VB.NET Pin
Matt Philmon19-Jan-05 17:47
Matt Philmon19-Jan-05 17:47 
GeneralVB.NEt instance checking app Pin
TeleT3ch18-Jan-05 16:20
TeleT3ch18-Jan-05 16:20 
GeneralRe: VB.NEt instance checking app Pin
Christian Graus18-Jan-05 17:16
protectorChristian Graus18-Jan-05 17:16 
GeneralRe: VB.NEt instance checking app Pin
TeleT3ch19-Jan-05 2:37
TeleT3ch19-Jan-05 2:37 
GeneralRe: VB.NEt instance checking app Pin
rwestgraham30-Jan-05 19:39
rwestgraham30-Jan-05 19:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.