Hello everyone.
Below, is an included VBA version (Visual Basic should work too)
I didn't realize that my previous
vmath.dll would not work w/ VBA
or VB for that matter. Sorry for the grief. To make up for this,
I have included the source code for VBA (MS Access version)
I do not have Visual Basic, though I do have VB version 3, it's
actually 16bit version. I didn't think it worth it, being that we
are all 32bit ready. And, based on my understanding, Office 97's
VBA is 32bit ready. So, I went with this approach, and it's not
such a bad idea after all. I can now test VB against my Delphi
apps.
Ok, so here is the code snipplet as well as the VBA app for MS Access.
Play around with it to get an understanding of how it works.
Remember, these functions are not included w/ VBA, hence my "v" behind
the funcitons ie, vMin etc.
Enter this in your Form1's Class:
---------------------------------
Code:
Option Compare Database
Option Explicit
Dim x As TextBox
Private Sub Min_Click()
Min.Caption = "Min ( " & vMin(Text1, Text2) & " )"
Text3 = Min.Caption
End Sub
Private Sub Max_Click()
Max.Caption = "Max ( " & vMax(Text1, Text2) & " )"
Text3 = Max.Caption
End Sub
Remember to substitute the drive/directory locatoins ie, "d:\vmath.dll"
with where ever you put the vmath.dll at.
Then, enter this in your Module:
--------------------------------
Code:
Option Compare Database
Option Explicit
Public Declare Function vMin Lib "d:\vmath.dll" (ByVal x As _
Integer, ByVal y As Integer) As Integer
Public Declare Function vMax Lib "d:\vmath.dll" (ByVal x As _
Integer, ByVal y As Integer) As Integer
An Office 97 (MS Access) version w/ modified
vmath.dll:
Download:
vmin-vmax.rar
Notes:
* don't mix the
vmath.dll w/ the previous one I posted. The
previous one will work w/ Delphi as is. It's only the newer one I
just posted on this thread, which is the one modified to work with
VB/VBA.
* The MS Access version (since I chose not to install VB 3.0) just
demonstrates the usage in this enviornment. I'm gonna assume that
VB users will be able to use code above w/ modified DLL (above) w/ out
any issues. So, even if you don't have Delphi, but most probably
Office 97 or higher, you should be able to try out this Excercise
anyways (if not, for curiousity purposes)
* I could have changed the newer DLL version name, but that would of
ment for me to change all the source codes, and the VBA as well. So,
at best, I thought to *.RAR the file, and then you could just copy
THAT DLL file to ANOTHER location on your hard drive (so not to
confuse yourself or the app)
Remember, all this, in reference to trying to find/devise a way to
develop DLL's for use w/ AVIsynth (even vdub, if possible) and other
apps too, but more important, AVIsynth. I've learned, that nothing
is impossible, as long as you believe so, else, in some experiences,
..the opposite. But, I'm hoping to spir up sparks in some of yous,
that have programming (hacking) experience. It doesn't have to be
perfect either. ..can be a wrapper DLL or something. Ok, enough said.
VB: Visual Basic
VBA: Office 97's MS Access
That should be it, for you VB/VBA users
-vhelp