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. Exported functions in a dll

Exported functions in a dll

Scheduled Pinned Locked Moved C / C++ / MFC
c++csharpvisual-studioquestion
4 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.
  • R Offline
    R Offline
    Rajeshk123
    wrote on last edited by
    #1

    I have written WIN32 ( Non MFC ) dll using VC++ 6.0 visual studio. The exported functions are called by another application. This works correctly on my PC. I have copied the EXE and dll on another PC. The application runs without any errors but the values returned from the functions are not correct. Mostly the intialised values are returned (i.e. if boolean is initialised to TRUE , the it is only returned) Do I have to do something else so that functions behave correcly on all the machine ? rgds Rajesh

    M D 2 Replies Last reply
    0
    • R Rajeshk123

      I have written WIN32 ( Non MFC ) dll using VC++ 6.0 visual studio. The exported functions are called by another application. This works correctly on my PC. I have copied the EXE and dll on another PC. The application runs without any errors but the values returned from the functions are not correct. Mostly the intialised values are returned (i.e. if boolean is initialised to TRUE , the it is only returned) Do I have to do something else so that functions behave correcly on all the machine ? rgds Rajesh

      M Offline
      M Offline
      melwyn
      wrote on last edited by
      #2

      make sure the proper dll's is called. You may have the dll in more than 1 place.

      1 Reply Last reply
      0
      • R Rajeshk123

        I have written WIN32 ( Non MFC ) dll using VC++ 6.0 visual studio. The exported functions are called by another application. This works correctly on my PC. I have copied the EXE and dll on another PC. The application runs without any errors but the values returned from the functions are not correct. Mostly the intialised values are returned (i.e. if boolean is initialised to TRUE , the it is only returned) Do I have to do something else so that functions behave correcly on all the machine ? rgds Rajesh

        D Offline
        D Offline
        dudepdx
        wrote on last edited by
        #3

        Copy your dll in the same folder as exe just so that your latest dll will be loaded or else search and delete all the other copies of dll.

        R 1 Reply Last reply
        0
        • D dudepdx

          Copy your dll in the same folder as exe just so that your latest dll will be loaded or else search and delete all the other copies of dll.

          R Offline
          R Offline
          Rajeshk123
          wrote on last edited by
          #4

          Thanks, But still I am having same problem. I tried putting message Box in the dll function. But it seems that the value of the variable in the dll function itself is 'intialised or 0 value' on the other PC and is correct on my PC. O.S. is Win2k on both PCs. Thanks and rgds Rajesh:)

          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