Archived Forum Post

Index of archived forum posts


Using NexTarFile Event in VB6 code

Jul 22 '15 at 08:19

I use version of ActiveX Chilket library (ChilkatAx-9.5.0-win32.dll).

When I try to get in my code the NextTarFile Event of a Chilkat.Tar object I get the error:

Function marked as restricted or uses a type not supported in Visual Basic

The call is made like this one (I've readed documentation before):

Private Sub mObjTar_NextTarFile(ByVal path As String, ByVal fileSize As Long, ByVal isDirectory As Long, skip As Long)
        ' my code
End Sub

Is this event not callable in VB6?


I'd try with the latest version - I recall a similar issue with another method in another Chilkat class in an older version of the library, so there's a good chance it has been fixed. If it still fails, then Chilkat will have to update it as I believe the solution would require a recompile.

Here's the thread describing the same error message...ULONG used instead of LONG


I'd try to install the last version but the problem is the same. I think we must wait Chilkat solution.