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 / .NET Framework / .NET SDK / September 2004

Tip: Looking for answers? Try searching our database.

BITS, DOT NET framework and Visual C++ 6

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gent - 01 Sep 2004 15:21 GMT
Does BITS (Background Intelligent Transfer Service) 1.5 require Dot
Net framework on the client side. From what I have read it seems like
Bits 2.0 needs the dot net framework but Bits 1.5 does not.

I am trying to write a wrapper for BITS(Background Intelligent
Transfer Service) to use in our VB 6 applications. At first I thought
about shelling out using bitsadmin.exe utility that comes with Bits
1.5 but then I ran into the problem of not being able to send
parameters (Such as transfer status) from the dos prompt back to my
application so I decided to go with C++. I have tried to run a few
examples available on Microsoft's website but they all require me to
include "bits.h" which I have not been able to find anywhere. Is the
Bits library available only for the Dot net environment/framework or
there is a file out there that can be used in Visual Studio C++ 6.

I have done some research on the internet and found out that there is
a wrapper available for Dot net but have not seen one out there for
Visual C++ 6 or any for VB 6. Has anyone tried to write an application
that uses BITS in a prior than Dot net development environment. Any VB
6 developpers out there that have written a wrapper that uses BITS.

Is there any advantages of using Dot Net instead of regular Visual
Studio 6?

Is the dot net framework required for using Bits on the client side?

Thank you for all your help and input.

Gent
Phil Wilson - 02 Sep 2004 22:11 GMT
There are BITS samples for generic VC++, but you need to get the Platform
SDK for Windows XP SP2, which was still in Beta when last I looked (so you
might need MSDN subscriber downloads). Bits.h is in the Include folder on
that version of the PSDK. If you're familiar with VC++ and COM, the VC++
samples are pretty straightforward. The .NET wrapper is easy for the end
user of the wrapper, but the interop layer that specifies the interfaces,
structs etc might be tedious if you're not familiar with pinvoke or interop
into COM interfaces with structs. I have prototyped uploads with .NET and a
wrapper, and also with C++, and I found the C++ is simpler because you're
not redefining all the structs and interfaces again in the wrapper. Swings
and roundabouts I guess.

....platformsdk.base might be a good place to ask BITS questions - I got
some help there.

I don't believe BITS by itself requires the .NET framework.
Signature

Phil Wilson
[MVP Windows Installer]
Defitive Guide to Windows Installer
http://www.amazon.com/exec/obidos/tg/detail/-/1590592972/104-7044380-4696760

> Does BITS (Background Intelligent Transfer Service) 1.5 require Dot
> Net framework on the client side. From what I have read it seems like
[quoted text clipped - 25 lines]
>
> Gent

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.