Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Extensibility / June 2004

Tip: Looking for answers? Try searching our database.

Querying Service from a Custom Wizard

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Cyril Mathey - 20 Jun 2004 17:32 GMT
Hello,

I am implementing a custom Wizard thorugh the IDTWizard interface.
Within the code of my wizard, I need to use a service provided by my VSIP
package.

I have not yet been able to figure out how to do this. The only reference
that is provided to the root object of the automation model (DTE), and I
wonder how a can use it to query a service. I have also tried to implement
IObjectWithSite so that I can get hold of a service provier, but it seems
that the wizard is not sited (is it?).

My wizard is a custom wizard, that it it is not invoked directly by VS such
as a New Project or New Item wizard. I call the wizard with DTE.LaunchWizard
method.

I'll appreciate if anyone has an idea to solve this issue ....

Thanks a lot.

--
Cyril
Cyril Mathey - 20 Jun 2004 18:25 GMT
Hello again,

I realize that I have messed up in my explanation and that it makes the
question silly.
The wizard *can* be invoked by VS as a "New XXX" wizard.
If I invoke the wizard myself through DTE.LaunchWizard, I can obviously pass
a ServiceProvider as a context param.

However, if VS calls the wizards, I cannot do this directly.

However, I think I have found the solution: I just need to chain two wizards
and have my wizard called with the appropriate context params.

--
Cyril

> Hello,
>
[quoted text clipped - 18 lines]
> --
> Cyril
Adam Friedman - 22 Jun 2004 02:49 GMT
FWIW, the DTE object can be cast to an IOleServiceProvider as well (works
for me using the definition from
Microsoft.VisualStudio.OLE.Interop.IServiceProvider).

> Hello again,
>
[quoted text clipped - 36 lines]
> > --
> > Cyril
Cyril Mathey - 23 Jun 2004 09:29 GMT
Hello Adam,

This is nice to know.
Thanks a lot.

--
Cyril

> FWIW, the DTE object can be cast to an IOleServiceProvider as well (works
> for me using the definition from
[quoted text clipped - 46 lines]
> > > --
> > > Cyril

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.