Re: How to use CopyFileEx() function in VB .NET
- From: Petar Atanasov <ppa_info@xxxxxxx>
- Date: Tue, 22 May 2007 12:08:10 +0300
Petar Atanasov wrote:
tailochik wrote:I have a VB6 project that call CopyFileEx with ProgressRoutine to display the progress. The code is like this
'Copy the file to the destination folder
lpCallBack = AddressOf CopyProgressCallback
CopyFileEx strSourcePath & strFileName, strDestnPath & strFileName, lpCallBack, 0&, False, GC_CopyFileRestartable
Then I converted the project to VB .NET and the statement AddressOf doesn't return the memory address of the CopyProgressCallback function. Is there any what I could pass the value of lpCallBack to CopyFileEx in VB .NET? Thanks
hmmm, make a delegate for CopyProgressCallback...
I don't think you can make it directly as it was in VB6.
Regards,
Petar Atanasov
http://a-wake.net
Anyway,
It's better to refresh your code and use ProgressBar Class
http://msdn2.microsoft.com/en-us/library/system.windows.forms.progressbar.aspx
HTH,
Petar Atanasov
http://a-wake.net
.
- References:
- Re: How to use CopyFileEx() function in VB .NET
- From: Petar Atanasov
- Re: How to use CopyFileEx() function in VB .NET
- Prev by Date: Re: How to use CopyFileEx() function in VB .NET
- Next by Date: Re: XP System Retore won't let me even make a new point
- Previous by thread: Re: How to use CopyFileEx() function in VB .NET
- Next by thread: Re: XP System Retore won't let me even make a new point
- Index(es):
Relevant Pages
|