GetFree
September 5th, 2001, 04:54 PM
hi you all doing
i have a dll defined like this in access module
Public Declare Function GenerateLicenceID Lib "C:\Final\bin\vproc.dll" Alias "?GenerateLicenceID@@YA?AVCString@@V1@H@Z" (sBaseID As String, duration As Integer) As String
than i have a function that calls it in one of the forms
Dim SerKey As String
Dim UnKey As String
Dim sTerm As Integer
sTerm = [Term].Value
SerKey = [Lic_Key].Value
UnKey = GenerateLicenceID(SerKey, sTerm)
[Unlock_Key].Value = UnKey
but as i run it i get bad calling dll convention
i use the alias feature because that is how it is called after exporting it in c++
i have a dll defined like this in access module
Public Declare Function GenerateLicenceID Lib "C:\Final\bin\vproc.dll" Alias "?GenerateLicenceID@@YA?AVCString@@V1@H@Z" (sBaseID As String, duration As Integer) As String
than i have a function that calls it in one of the forms
Dim SerKey As String
Dim UnKey As String
Dim sTerm As Integer
sTerm = [Term].Value
SerKey = [Lic_Key].Value
UnKey = GenerateLicenceID(SerKey, sTerm)
[Unlock_Key].Value = UnKey
but as i run it i get bad calling dll convention
i use the alias feature because that is how it is called after exporting it in c++