toad Posted December 28, 2004 Posted December 28, 2004 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 Quote
*Experts* mutant Posted December 28, 2004 *Experts* Posted December 28, 2004 You might want to look here. Also, you can't/wouldn't want to create ActiveX components in VS.NET. (altough you can make you .NET components COM visible) Quote
Mike_R Posted December 28, 2004 Posted December 28, 2004 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....] Quote Posting Guidelines Avatar by Lebb
toad Posted December 28, 2004 Author Posted December 28, 2004 (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 December 28, 2004 by toad Quote
azebiak Posted January 3, 2005 Posted January 3, 2005 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. Quote
mark007 Posted January 23, 2005 Posted January 23, 2005 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. :) Quote Please check the Knowledge Base before you post. "Computers are useless. They can only give you answers." - Pablo Picasso The Code Net
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.