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. C / C++ / MFC
  4. new to dll files

new to dll files

Scheduled Pinned Locked Moved C / C++ / MFC
csshelp
2 Posts 2 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.
  • S Offline
    S Offline
    Swatgod
    wrote on last edited by
    #1

    ok i am very new to working with dll files and just recently got a dll to compile and a program to compile and use the dll file. i made a program to test my dll, in my dll i got functions defined that have variables defined that are returned and than used in another function in the same dll file. what i was wondering was how i can return those variables and get them to be used cause after i got through first function the program crashes. not sure if its something to do with how i return the variables or not, if someone could help i would really appreciate it. the more you learn the less you know, no one is truely a master. cause the more you seek to be the master the less of a master you become.

    M 1 Reply Last reply
    0
    • S Swatgod

      ok i am very new to working with dll files and just recently got a dll to compile and a program to compile and use the dll file. i made a program to test my dll, in my dll i got functions defined that have variables defined that are returned and than used in another function in the same dll file. what i was wondering was how i can return those variables and get them to be used cause after i got through first function the program crashes. not sure if its something to do with how i return the variables or not, if someone could help i would really appreciate it. the more you learn the less you know, no one is truely a master. cause the more you seek to be the master the less of a master you become.

      M Offline
      M Offline
      Mike Danberg
      wrote on last edited by
      #2

      hey, just came across this. don't know if you've figured it out yet but I'll help you out anyway. Its hard for me to tell what is causing the problem without seeing some code, so I'll just give you a quick rundown of what you should be doing to make it run correctly. Some of this probably is obvious but I'll say it anyway. Make sure every function in the dll that you are going to use has the dll export and import statements in your dll and main app. Secondly, for what you are saying, this is how it should work. In the main application temp variable = 1st dll function(); 2nd dll function(temp variable); That's all there is to it.

      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