Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

It's 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:

OutputType = "WinExe"

to read:

OutputType = "Library"

Then change the startup object from:

StartupObject = "MyApp.Form1"

to be:

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: I'm too sloooooow. Even better that Derek has enabled a broad set of templates, wow....]

Posting Guidelines

 

Avatar by Lebb

Posted (edited)

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

Edited by toad
Posted

Windows Service

 

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

  • 3 weeks later...
Posted
Can anyone create a project file for windows services' date=' or does that include too much to be added in manually? I've been searching and searching but cannot seem to find it anywhere.[/quote']

 

The links in the second to last post here:

 

http://www.dotnet247.com/247reference/msgs/58/292700.aspx

 

look promising.

 

:)

Please check the Knowledge Base before you post.

"Computers are useless. They can only give you answers." - Pablo Picasso

The Code Net

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...