Re: Anyone used MS BITS COM API with Delphi ?

From: Adrian (arwallis_at_blueyonder.co.uk)
Date: 10/15/03


Date: 15 Oct 2003 07:02:44 -0700


"Sudheer GN [MSFT]" <sudheer@online.microsoft.com> wrote in message news:<utO2$wRjDHA.2248@TK2MSFTNGP12.phx.gbl>...
> Hi,
> You can generate the type library from bits.idl file which is part of
> Platform SDK.
> You may find the following article useful
> Using Windows XP Background Intelligent Transfer Service (BITS) with Visual
> Studio .NET
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/WinXP_BITS.asp
>
> --
> Sudheer GN
> Microsoft, BITS
>
> This posting is provided "As Is" with no warranties, and confers no rights.
> Use of included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
>
> BITS SDK:
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/bits/bits/bits_start_page.asp
> BITS White-paper:
> http://www.microsoft.com/windows.netserver/docs/BITS.doc
> BITS FAQ:
> http://microsoft.com/technet/treeview/default.asp?url=/technet/itcommunity/Newsgroups/BITS_FAQ.asp
> BITS Known Issues:
> http://support.microsoft.com/default.aspx?scid=kb;en-us;331716
>
>
> "XP User" <xpusr@hotmail.com> wrote in message
> news:c1313573.0310070748.41cef77f@posting.google.com...
> > BITS newsgroup is microsoft.public.windows.backgroundtransfer
> > CCing that group
> >
> > "Peter Stensones" <pete.stensones@apdcomms.co.uk> wrote in message
> news:<3f8278f7@newsgroups.borland.com>...
> > > I wish to utilise Microsoft's BITS (Background Intelligent Transfer
> Service)
> > > API to provide "Auto Update" type functionality in my programs, and
> whilst
> > > the MSDN documentation of the COM API is clear and concise, it doesn't
> seem
> > > to indicate where I can get the type library from.
> > >
> > > Has anyone done this with Delphi (D6 Enterprise) ? Can you point me at
> the
> > > file I need to import? I'm developing on XP Pro SP 1 and will probably
> be
> > > deploying on this and 2000 Server.

Hello, I installed the full VS.NET onto a test computer and
successfully created the BITS.TLB. I've added this as a reference in
VB6 which appears to expose the methods/functions etc okay..... But
when I the following :

Dim test As New BackgroundCopyManager.BackgroundCopyManager
Private Sub Form_Load()
     test.GetJob
End Sub

It generates this error : "Variable uses an automation type not
supported in Visual Basic"...

...Is there any way to fix this or is the TLB unusable in VB6?

Many thanks
Adrian



Relevant Pages

  • Re: DirectShow Filter Graph Manager usage In VB or VC++
    ... in Platform SDK, ... please giv me a Direct Show COM Component Rapper ... The best resources for VB6 are on Geraint's site (see my Links page through ...
    (microsoft.public.win32.programmer.directx.audio)
  • Re: API Return codes
    ... >I know they are in platform SDK, but I wonder isn't there other place where ... because I don't wish to download the SDK. ... Help file - typically Win32SDK.hlp ... That should have come with your VB6 ...
    (microsoft.public.vb.winapi)
  • Re: API Return codes
    ... >I know they are in platform SDK, but I wonder isn't there other place where ... because I don't wish to download the SDK. ... Help file - typically Win32SDK.hlp ... That should have come with your VB6 ...
    (microsoft.public.dotnet.languages.vb)