473,387 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

EnvDTE.DTEClass.LaunchWizard Method

I have a Wizard project I'm working on to create a solution, add projects to the
solution, yadda yadda. Now I'm trying to add classes/modules using the .vsz
wizard file. I tried using the AddFromTemplate method of the ProjectItems
collection, but that only accepts .vb or .vbproj files (so far). It does not
accept the vbproj. Not only that, when I use AddFromTemplate, it doesn't change
the template values in the template, just copies the file to the destination
directory and adds it to the project. The [! ...] vals are left intact!

So, I'm left with using the LaunchWizard method. Fine, used it before...but not
for adding items. I am getting a ComException when I execute the following code:

Dim contextParams As Object() = { _
EnvDTE.Constants.vsWizardAddItem, _
Project.Name, _
Project.ProjectItems, _
Me.LocalPath, _
"common.vb", _
"C:\Program Files\Microsoft Visual Studio .Net 2003\Vb7", _
True _
}

Try
.DTE.LaunchWizard(templatePath & "Module.vsz", contextParams)
Catch Ex As Exception
MsgBox(Ex.Message)
End Try

I believe it is because of the third contextParam item. The Project.ProjectItems
collection. In the MSDN documentation, that parameter is supposed to be a
"pointer" to the Project.ProjectItems object. So, how do I go about doing that?

Thanks in advance...

Mythran
Nov 21 '05 #1
0 986

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Richard | last post by:
I am using Visual Basic Express (May release) and I am trying to create a solution programatically. How do I do this? I know I need to use the AddFromTemplate but how do I determine the path to the...
0
by: Jindrich Hora | last post by:
This code is in MSDN as example for attach to active instance EnvDTE.DTE. (example in C#) EnvDTE.DTE myDTE = (EnvDTE.DTE)...
2
by: Christina Androne | last post by:
Hi Has anybody encountered this: EnvDTE.DTE env = new EnvDTE.DTE(); raises this exception: {"COM object with CLSID {3C9CFE1E-389F-4118-9FAD-365385190329} is either not valid or not...
0
by: amit | last post by:
I am using the ENVDTE object of dot net for a tool creation for Find and replace like tool. this works fine during debug mode but gives problems when u run it outside the development environment....
0
by: Mythran | last post by:
I have a Wizard project I'm working on to create a solution, add projects to the solution, yadda yadda. Now I'm trying to add classes/modules using the .vsz wizard file. I tried using the...
1
by: Mythran | last post by:
I seem to have found a bug in the AddFromTemplate method of the ProjectItems object. I'm asking that someone can double-check/verify this bug before I submit it. I created a wizard (the vsz...
3
by: Allen Anderson | last post by:
due to some installer problems, I need to ship envdte.dll and put it on a client machine briefly during the install of one of my controls. Does anyone know if ms restricts the redistribution of...
0
by: ramesh | last post by:
Hi, When is use LaunchWizard(..) i am getting ""The process cannot access the file because it is being used by another process." Exception. Can anybody explain me how to resolve this. Ramesh
3
by: Dean Slindee | last post by:
I would like to count lines in a project using code in a VB form. Need EnvDTE as an Imports statement. Can this be done? If so, I would then recode the following into VB: foreach...
0
by: Gerrit Beuze | last post by:
Hi all, I'd like to get at the real underlying type when using the EnvDTE.Debugger Currently I do this: EnvDTE.Thread thread = dte.Debugger.CurrentThread; foreach (StackFrame frame in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.