Quote:
|
Originally Posted by Warren
I tried to use API calls but I'm lost. Here is what I have so far.
|
Hi!
can you be a bit more specific, what does happen when you try to run this code?
There is a hell lot of what you can do wrong when calling a dll from vb, and the calling method highly differs depending on how the dll export was defined.
Besides that you declared GetFileSize and GetFileTime but the way you call does not nearly match their declaration and you will also need these api's if you want to complete your task:
Code:
Private Declare Function CreateFile Lib "kernel32" Alias "CreateFileA" (ByVal lpFileName As String, ByVal dwDesiredAccess As Long, ByVal dwShareMode As Long, lpSecurityAttributes As Long, ByVal dwCreationDisposition As Long, ByVal dwFlagsAndAttributes As Long, ByVal hTemplateFile As Long) As Long
Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As Long
Hope this gets you startet but i need a bit more info to really help ya!
Greetnx
The Mad Guy