third party DLL register error

adiazramadiazram Member Posts: 6
Hi Everybody.

I have a little trouble about third party DLL.

We need to process credit card payments, the bank IT area send me a dll file and some VB6 sample code ; when i tried to register with regsvr32 i have next error: C:\windows\system32\BankPinPinPad.dll was loaded, but the DllRegisterServer entry point was not found; also i try with regasm File.dll.... and the file is not a .net valid file.

The code in a module in VB look like this:

Public Declare Function VB_prepareDevice Lib "BankPinPad.dll" _
(ByVal pinpadType As String, ByRef inputMap As Variant, ByRef excep As Variant) As Integer

Public Declare Function VB_releaseDevice Lib "BankPinPad.dll" _
(ByRef excep As Variant) As Integer

{more declaration code}

to use :

'Init pinpad
cr% = VB_prepareDevice("NURIT293", config, Err)

If cr <> 0 Then
processError
Exit Sub
End If

{more code...}

The sample on VB works fine, in nav, i keep trying

Some idea to use the .dll?

Thanks in advance

Comments

  • garakgarak Member Posts: 3,263
    Components are registered and unregistered by calling the procedures DllRegisterServer and DllUnregisterServer exported by the component. This is what regsvr32 does, and you can do the same. If you know the name of the DLL (or OCX) when the program is compiled you can do this with a Declare statement.
    Private Declare Function DllRegisterServer Lib "MyControl.dll" () As Long
    Result = DllRegisterServer
    

    The return value is zero for success.

    For more informations, connect the developer of this dll
    Do you make it right, it works too!
Sign In or Register to comment.