Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. COM
  4. using a dll to read an smart card

using a dll to read an smart card

Scheduled Pinned Locked Moved COM
helpcsharpcomquestion
3 Posts 2 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    javadadabi
    wrote on last edited by
    #1

    hello every body i have some dlls writen to communicate with a smart card reader. there is a problem when i want to add this dlls as a refrence to vb.net. but with vb6 it could be imported an i saw there functions.unfortunately when i call this functions an error pups up "there is no entery point" i tried to use dllexport app to read out some data about it. Function Name : DllCanUnloadNow Filename : SmartRD.dll Type : Exported Function ================================================== Function Name : DllGetClassObject Type : Exported Function ================================================== Function Name : DllRegisterServer Type : Exported Function ================================================== Function Name : IAcs38RD::SCConnect Type : COM Method ================================================== Function Name : IAcs38RD::SCDisconnect Type : COM Method ================================================== as you see some functions are exported functions an some com objects.what should i do to define an entery point for using this functions? thanks

    J B 2 Replies Last reply
    0
    • J javadadabi

      hello every body i have some dlls writen to communicate with a smart card reader. there is a problem when i want to add this dlls as a refrence to vb.net. but with vb6 it could be imported an i saw there functions.unfortunately when i call this functions an error pups up "there is no entery point" i tried to use dllexport app to read out some data about it. Function Name : DllCanUnloadNow Filename : SmartRD.dll Type : Exported Function ================================================== Function Name : DllGetClassObject Type : Exported Function ================================================== Function Name : DllRegisterServer Type : Exported Function ================================================== Function Name : IAcs38RD::SCConnect Type : COM Method ================================================== Function Name : IAcs38RD::SCDisconnect Type : COM Method ================================================== as you see some functions are exported functions an some com objects.what should i do to define an entery point for using this functions? thanks

      J Offline
      J Offline
      javadadabi
      wrote on last edited by
      #2

      I found the solution. sometimes some dlls can not be added as a refrence in a .net language but for another is possible.suppose we have a dll that written in vb6.its possible to add it as a refrence in c#.net but there is no way to add it in vb.net. the solution is that we add dll as a refrence in C#,define a class to determine first dll functions,subs and arguments. now we have a exported dll that is useable in any .net language. I can read from smart card but it seems strings was combined with some salt.how can i pull out the pure string from a solution?

      1 Reply Last reply
      0
      • J javadadabi

        hello every body i have some dlls writen to communicate with a smart card reader. there is a problem when i want to add this dlls as a refrence to vb.net. but with vb6 it could be imported an i saw there functions.unfortunately when i call this functions an error pups up "there is no entery point" i tried to use dllexport app to read out some data about it. Function Name : DllCanUnloadNow Filename : SmartRD.dll Type : Exported Function ================================================== Function Name : DllGetClassObject Type : Exported Function ================================================== Function Name : DllRegisterServer Type : Exported Function ================================================== Function Name : IAcs38RD::SCConnect Type : COM Method ================================================== Function Name : IAcs38RD::SCDisconnect Type : COM Method ================================================== as you see some functions are exported functions an some com objects.what should i do to define an entery point for using this functions? thanks

        B Offline
        B Offline
        Brandon X12000
        wrote on last edited by
        #3

        You may need to create and use a system driver, since you are trying to access hardware. Just throwing out a suggestion, that you may need to do.

        Simple Thanks and Regards, Brandon T. H. Programming in C and C++ now, now developing applications, services and drivers (and maybe some kernel modules...psst kernel-mode drivers...psst). Many of life's failures are people who did not realize how close they were to success when they gave up. - Thomas Edison

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups