dgoulston
Hasn't Got A Clue
- Local time
- Today, 05:02
- Joined
- Jun 10, 2002
- Messages
- 403
ok i am trying to use a dll to decrypt some data. this is what i have soo far:
Option Compare Database
Declare Function DesConfigure Lib "c:\#\dndes.dll" ( EncrFlag As Integer, ChainType As Integer)
Declare Function DesDecrypt Lib "c:\#\dndes.dll" (ByVal InputBuf As String, ByVal OutputBuf As String)
'----------------------------------------------------------------------------------
Function decrypt()
Dim EncrFlag, ChainType As Integer
Dim InputBuf, OutputBuf As String
Dim tmp As String
ChainType = 0
EncrFlag = 0
OutputBuf = "AAAAAAAA"
InputBuf = "AAAAAAAA"
tmp = DesConfigure(EncrFlag, ChainType)
tmp = DesDecrypt(InputBuf, OutputBuf)
tmp = tmp
End Function
--------------------------------------------------------------------------
im gettin the run time error 49 "bad dll calling conversion"
desconfigure sets up the encryption and desdecrypt does the decrypting. it crashes at the tmp = DesConfigure(EncrFlag, ChainType) line, its being run from a macro just for testing purposes, as have never had to ues external dll's before
any more info needed i will be glad to provide..
thanks for the help
DAL
Option Compare Database
Declare Function DesConfigure Lib "c:\#\dndes.dll" ( EncrFlag As Integer, ChainType As Integer)
Declare Function DesDecrypt Lib "c:\#\dndes.dll" (ByVal InputBuf As String, ByVal OutputBuf As String)
'----------------------------------------------------------------------------------
Function decrypt()
Dim EncrFlag, ChainType As Integer
Dim InputBuf, OutputBuf As String
Dim tmp As String
ChainType = 0
EncrFlag = 0
OutputBuf = "AAAAAAAA"
InputBuf = "AAAAAAAA"
tmp = DesConfigure(EncrFlag, ChainType)
tmp = DesDecrypt(InputBuf, OutputBuf)
tmp = tmp
End Function
--------------------------------------------------------------------------
im gettin the run time error 49 "bad dll calling conversion"
desconfigure sets up the encryption and desdecrypt does the decrypting. it crashes at the tmp = DesConfigure(EncrFlag, ChainType) line, its being run from a macro just for testing purposes, as have never had to ues external dll's before
any more info needed i will be glad to provide..
thanks for the help
DAL
Last edited: