Thread: DLL Help

  1. #1
    Registered User
    Join Date
    Apr 2007
    Posts
    28

    DLL Help

    I have a dll that I wrote a few years ago... and I cannot find the source for it.
    How do I figure out what function parameters are...?

    I can view the JNI calls... but I'm not sure what the parameters are, or more specifically the order I need to send the parameters.

    Any guidance ??

    -Deb

  2. #2
    Registered User OnionKnight's Avatar
    Join Date
    Jan 2005
    Posts
    555
    I think you're out of luck. As far as I know C functions only get stored with their name, C++ functions are little more helpful as they're also stored with the sum of it's arguments size in bytes.

  3. #3
    Registered User
    Join Date
    Apr 2007
    Posts
    28
    Is there a way to open the dll to see what the function takes for parameters?

    I found a program to give me the names of the funtions, but that's about it.

    (

  4. #4
    Registered User OnionKnight's Avatar
    Join Date
    Jan 2005
    Posts
    555
    You could open the file with a program such as Dependency Walker. The reason you didn't get more than the names of the functions is because the DLL contains nothing more than that.
    You sure you don't have anything like an import library? That would be more useful.

  5. #5
    Registered User
    Join Date
    Apr 2007
    Posts
    28
    I just have the dll and a few files that I created the dll from. I don't have all of them.
    Switching computer, years ago, blah, blah, and I apparently didn't copy the entire
    directory.

    I'll look into Dependency Walker...

    What does it mean to decompile a dll then?
    A dll only has names of functions?

  6. #6
    Registered User OnionKnight's Avatar
    Join Date
    Jan 2005
    Posts
    555
    No not just the names, it has the code for the functions too of course, probably some other stuff, but not the size of your arguments let alone the types. Decompiling a DLL might be worth doing, if you have some knowledge of assembly. C calls functions by pushing the arguments onto the stack in reverse order, the function then pops the stack for the arguments. By studying how your functions pops the stack you might gain some insight on the arguments.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. non-MFC DLL with MFC app question.
    By Kempelen in forum Windows Programming
    Replies: 10
    Last Post: 08-20-2008, 07:11 AM
  2. dll communicating between each other
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-17-2005, 02:20 AM
  3. DLL and std::string woes!
    By Magos in forum C++ Programming
    Replies: 7
    Last Post: 09-08-2004, 12:34 PM
  4. Using class with DLL
    By greg2 in forum C++ Programming
    Replies: 2
    Last Post: 09-12-2003, 05:24 AM
  5. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 05:29 AM