G
Guest
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
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