third party DLL register error
adiazram
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
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
0
Comments
-
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 dllDo you make it right, it works too!0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 250 Dynamics CRM
- 102 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions