Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pointer to application
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Pointer to application
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01388098
Message ID:
01388098
Views:
86
Hi,

Can I use a pointer to the application function in VFP?

I use bszip.dll to zip files. This .dll has a function zCompressFiles that has the following VBA syntax:
Declare Function zCompressFiles Lib "bszip.dll" _
      (ByVal TempDir As String, _
       ByVal Password As String, _
       ByVal CompressionMethod As Long, _
       ByVal ResetArchiveAttribute As Byte, _
       ByVal SpanSize As Long, _
       ByVal Comment As String, _
       ByVal RTInfoFunc As Long) As Long
Description of the RTInfoFunc is as follows:
RTInfoFunc- pointer to the application function, which will be called periodically (after 1 sec) from
'          the library to show runtime information, for example some kind of progress bar.
'          Within this function, application can call zGetRunTimeInfo or zCancelOperation.
'          If nil, no runtime information will be available.
'          In VB5+, this may be called by using AddressOf in the call, in VB4 set to nil.
Can I use this in my VFP application to report on the progress of zip process?
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Next
Reply
Map
View

Click here to load this message in the networking platform