Click to See Complete Forum and Search --> : Using non-automation interfaces in VB


Dave Carter
February 7th, 2000, 03:56 AM
Is it possible to use non-automation COM interfaces from VB?

More specifically, I would like to use the ITask interface of the Microsoft Task Scheduler from VB.

Any help, would be greatly appreciated.

Cheers

Mikesc
October 1st, 2000, 11:54 PM
I've been trying to do the same thing myself. The solution is pretty complicated and I have yet to start working on it but...
The trick to getting at these interfaces is writing your own type library. VB and VC++ come with their own type library compilers to let you do this but you'll have to learn IDL or ODL. The interface should have a corresponding implementation that you'll need to designate as a co-class in your type library.

For more info see the Hardcore VB web site and download the code. The guy doesn't give any examples for the ITask interface but he does provide code for using some of the shell interfaces.

Also www.vbaccelerator.com has some info on type libraries.

Good luck