CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2000
    Posts
    1

    Using non-automation interfaces in VB

    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


  2. #2
    Join Date
    Jul 1999
    Posts
    145

    Re: Using non-automation interfaces in VB

    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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured