G
Guest
I've created a windows class library project in MS Visual Studio Beta1. When
I try to run the project, I get a popup with this:
A project with an Output Type of Class Library cannot be started directly.
In order to debug this project, go to the Debugging tab under Configuration
Settings in Project Properties, and set the Start Action to Start External
Program or Start URL.
Does this mean DLLs can only be debugged or started via some other EXE that
calls a particular function in the DLL?
I do have another project with only a form for calling the DLL. It has two
buttons: One to instantiate the object (DLL) and another to invoke a method
in it. The entire code is:
Option Explicit Off
Public Class Form1
Private mailobj As TestSaveEmail.Form1
Private Sub instantiate_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles instantiate.Click
mailobj = New TestSaveEmail.Form1
mailobj.SaveEmail()
End Sub
End Class
The error message in the above code is
'SaveEmail' is not a member of 'TestSaveEmail.Form1'.
SaveEmail is the DLL I'm trying to call. The function within it is
SaveMessage() with no parameters. How do I make it a member to the above?
Thanks,
Brett
I try to run the project, I get a popup with this:
A project with an Output Type of Class Library cannot be started directly.
In order to debug this project, go to the Debugging tab under Configuration
Settings in Project Properties, and set the Start Action to Start External
Program or Start URL.
Does this mean DLLs can only be debugged or started via some other EXE that
calls a particular function in the DLL?
I do have another project with only a form for calling the DLL. It has two
buttons: One to instantiate the object (DLL) and another to invoke a method
in it. The entire code is:
Option Explicit Off
Public Class Form1
Private mailobj As TestSaveEmail.Form1
Private Sub instantiate_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles instantiate.Click
mailobj = New TestSaveEmail.Form1
mailobj.SaveEmail()
End Sub
End Class
The error message in the above code is
'SaveEmail' is not a member of 'TestSaveEmail.Form1'.
SaveEmail is the DLL I'm trying to call. The function within it is
SaveMessage() with no parameters. How do I make it a member to the above?
Thanks,
Brett