Re: calling function with dll files

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
>


.



Relevant Pages

  • Re: Recogniton of card readers
    ... When the card reader is initially plugged in,the cursor ... Open the Content Type drop window ... Repair for Camera (or card reader) Autoplay window March ...
    (microsoft.public.windowsxp.photos)
  • Re: Canon SD450 not recognized
    ... I do have access to a USB card ... Repair for Camera (or card reader) Autoplay window March ... With a card reader you may see multiple drives, ...
    (microsoft.public.windowsxp.photos)
  • Ascii Import/Export for SD card and Emulator
    ... and the same situation when using an emulator. ... when you put the source text files on an SD card ... as a string on the stack, waiting for translation help, ... isn't UserRPL. ...
    (comp.sys.hp48)
  • Re: PCMCIA Wireless setup problem with ZyXEL G-100 Card
    ... Luca Natali wrote: ... i am new with FreeBSD but even if it's just my first week of use, ... It seemed more like Intersil Prism but the use of the string ... everything seemed OK but when i plug the PCMCIA card into the laptop... ...
    (comp.unix.bsd.freebsd.misc)
  • Re: Recogniton of card readers
    ... When the card reader is initially plugged in,the cursor ... Choose....Properties / Autoplay tab. ... Repair for Camera (or card reader) Autoplay window ...
    (microsoft.public.windowsxp.photos)