DLL/ActiveX project template for VB .net Std ed ?

toad

New member
Joined
Dec 28, 2004
Messages
2
I have Visual Basic 2003 Standard Edition and to my surprise (ok, that wasnt *quite* the emotion) it does not have a template project for creating an ActiveX control or even a DLL project.

On another thread, superguru Derek Stone pointed out that it was easy to create the necessary equivalent project in the standard edition, but he left it as an exercise for the reader.

Does anyone know what project type I start with (not Win application, console app, or ASP .net app I assume, perhaps "Blank solution") ?
And then what are the various import/config files needed ?
You can inherit from System.Windows.Forms.UserControl so probably there is not too much code to write after initial setup ( :D ?)

Thanks in advance
Toad
 
You might want to look here. Also, you cant/wouldnt want to create ActiveX components in VS.NET. (altough you can make you .NET components COM visible)
 
Its pretty easy in principle. Basically, you make a Standard Project type (a WinExe is fine) and then Save and Exit out of the IDE. Then open up your MyApp.vbproj file using a Notepad (or any other text editor) and modify the line stating:
Code:
OutputType = "WinExe"
to read:
Code:
OutputType = "Library"
Then change the startup object from:
Code:
StartupObject = "MyApp.Form1"
to be:
Code:
StartupObject = ""
I would give this article a read, it looks like it covers it in very good detail: How to make a DLL with VB.NET Standard Edition (DevCity.net).

[Edit: Im too sloooooow. Even better that Derek has enabled a broad set of templates, wow....]
 
Wow, very cool. Derek is indeed the superguru. That looks like exactly what I wanted.

After installation, the two new project types (Class Library and Windows Control Libray) appear correctly.

But when I create a Windows Control Library project, I get a error:
"Object with program ID VsWizard.VsWizardEngine cannot be created"

Using the ancient art of Chi-Ting I saw the MS original projects use
VsWizard.VsWizardEngine.7.1
in their .vsz files. Just change Dereks Class Library.vsz and Windows Control Library.vsz to use that class instead
 
Last edited by a moderator:
Windows Service

Can anyone create a project file for windows services, or does that include too much to be added in manually? Ive been searching and searching but cannot seem to find it anywhere.
 
Back
Top