|
|
The BITS component is essentially a C++ application that exposes COM methods
for the application to hook into. It is not .NET ready. You need to do the
following;
Step 1
Take the idl file and use the MIDL compiler
(http://msdn.microsoft.com/library/default.asp?url=/library/en-us/midl/midl/using_the_midl_compiler_2.asp)
to produce the type library.
Step 2
Take the resultant type library file and create a .NET assembly using the
Type Library Importer (tlbimp.exe -
msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrftypelibraryimportertlbimpexe.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cptools/html/cpgrftypelibraryimportertlbimpexe.asp)
Step 3
In your VB.NET project add a reference to the type library and all the
methods should now be exposed to .NET.
See
msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/WinXP_BITS.asp">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwxp/html/WinXP_BITS.asp
for more info.
Easy when you know how.
Peter
<TDeveloperDotNET@xxxxxxxxxxx> wrote in message
news:1111178549.910626.292570@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Statto,
>
> How did you create the VB .NET wrapper for BITS .idl 1.5?
>
|
|