Re: calling function with dll files
- From: "Robert" <noone@xxxxxxxxxxx>
- Date: Tue, 27 Sep 2005 12:48:47 +0200
If you are using Visual Studio, you should have a tool called "Dependency
walker" installed (called "Depends" in the start menu, under Visual
Studio -> Tools)
Start it and open the DLL you are using (gsdkpcsc.dll)
Among other things, you should now see the exact function names. See if your
function declaration matches the entry you see in the dependency walker. If
not, try the wording from the dependency walker. Alternatively you can also
use the "ordinal" number (leftmost column) and write it like e.g. Declare
Function [...] Alias "#33", where 33 would be the decimal ordinal number of
the function you want.
Robert
"angela_q" <angela_quests@xxxxxxxxx> wrote in message
news:1127806527.154265.249450@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> this is my module declarations :
> Option Explicit
>
>
>
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@
> ' General Declaration
>
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@
>
> Declare Function OpenReader Lib "gsdkpcsc.dll" Alias "_OpenReader@0" _
> () As Integer ' open communication session with the card reader
>
> Declare Function cardConnect Lib "gsdkpcsc.dll" Alias "_CardConnect@12"
> _
> (ByVal port As Integer, ByVal Rdrname As String, ByVal nRdrLen As
> Integer) As Long
> ' open communication session with the card in the reader
>
> Declare Function CardDisconnect Lib "gsdkpcsc.dll" _
> Alias "_CardDisconnect@0" _
> () As Integer
> ' Closes communication session with the card in the reader
>
> Declare Function CloseReader Lib "gsdkpcsc.dll" Alias "_CloseReader@0"
> _
> () As Integer
> ' Closes communication session with the card reader
>
> Declare Function CardDetect Lib "gsdkpcsc.dll" Alias "_CardDetect@4" _
> (ByVal pcExplanation As String) As Integer
> ' Checks if card is in card reader
>
> Declare Function ResetCard Lib "gsdkpcsc.dll" Alias "_ResetCard@0" _
> () As Long
> ' Reset the card
>
> Declare Function GetError Lib "gsdkpcsc.dll" Alias "_GetError@0" _
> () As Integer
> ' returns information on last error that occured
>
> Declare Function SelJPNApp Lib "gsdkpcsc.dll" Alias "_SelJPNApp@0" _
> () As Integer
> ' select JPN to read JPN data
>
> Declare Function SelJPJApp Lib "gsdkpcsc.dll" Alias "_SelJPJApp@0" _
> () As Integer
> ' select JPJ to read JPJ data
>
> Declare Function SelIMMApp Lib "gsdkpcsc.dll" Alias "_SelIMMApp@0" _
> () As Integer
> 'Select IMM to read IMM data
>
> '*************************************************************************
> ' JPN section
> '*************************************************************************
>
> Declare Function JPN_OrgName Lib "gsdkpcsc.dll" _
> Alias "_JPN_OrgName@4" _
> (ByVal pbOrgName As String) As Integer
> 'original name in 150 bytes
>
> Declare Function JPN_MyKadName Lib "gsdkpcsc.dll" _
> Alias "_JPN_MyKadName@4" _
> (ByVal pbMyKadName As String) As Integer
> ' 3 lines of name stored in blocks 0f 30+30+20=80
>
> Declare Function JPN_KPTName Lib "gsdkpcsc.dll" _
> Alias "_JPN_KPTName@4" _
> (ByVal pbKPTName As String) As Integer
> ' KPTName is 40bytes , 2 lines of name stored in blocks of 20+20=40
>
> Declare Function JPN_IDNum Lib "gsdkpcsc.dll" _
> Alias "_JPN_IDNum@4" _
> (ByVal pbIDNum As String) As Integer
> ' ID number in 13bytes
>
> Declare Function JPN_Gender Lib "gsdkpcsc.dll" _
> Alias "_JPN_Gender@4" _
> (ByVal pbGender As String) As Integer
>
.
- References:
- calling function with dll files
- From: angela_q
- Re: calling function with dll files
- From: Robert
- calling function with dll files
- Prev by Date: Re: End is bad, mmkay?
- Next by Date: Print white on black
- Previous by thread: Re: calling function with dll files
- Next by thread: Re: calling function with dll files
- Index(es):
Relevant Pages
|