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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Calling DLL in vc

Calling DLL in vc

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++security
3 Posts 3 Posters 0 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
    jijoaresseriljose
    wrote on last edited by
    #1

    hi all, I have a dll file named wpdes32.dll for DES encryption/decryption. I need to call this in Vc++ , i couldn't create .def file for this and only know the declaration of functions. How can i call this in vc++?? thanks and regards jijo jijo jose

    C L 2 Replies Last reply
    0
    • J jijoaresseriljose

      hi all, I have a dll file named wpdes32.dll for DES encryption/decryption. I need to call this in Vc++ , i couldn't create .def file for this and only know the declaration of functions. How can i call this in vc++?? thanks and regards jijo jijo jose

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      You can use LoadLibrary[^] to load the dll and then use GetProcAddress[^] to get a specific function (you need to know its name and prototype)

      1 Reply Last reply
      0
      • J jijoaresseriljose

        hi all, I have a dll file named wpdes32.dll for DES encryption/decryption. I need to call this in Vc++ , i couldn't create .def file for this and only know the declaration of functions. How can i call this in vc++?? thanks and regards jijo jijo jose

        L Offline
        L Offline
        Laxman Auti
        wrote on last edited by
        #3

        If that DLL is ATL COM then with the help of #import directive you can get its methods by creating the instance of the DLL. Knock out 'T' from CAN'T , You 'CAN' if you think you 'CAN' :cool:

        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