Results 1 to 5 of 5

Thread: watch what parameters are pasted to dll

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2007
    Posts
    6

    watch what parameters are pasted to dll

    Hello all. I've got a DLL and EXE that was written (in VB I think) a long time ago. I've been asked to find out how the whole thing goes together in hopes of updating it to .NET. I can register the DLL and can get the parameter names and types that it wants but what I'm putting in isn't generating any out put (its a function with a string return). I'm wondering if there is anything out there that would let me see what the original program is sending in to the dll. I've tried to search google but all it gives me is decompiler type stuff that only outputs to assembly which isn't helping. My hacker skills are a bit lacking these days it seems.

    Thanks for any input.

    Stephen

  2. #2
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: watch what parameters are pasted to dll

    It's possible you are using it incorrectly. Recheck the parameters it wants and make sure VB is sending the correct type and you are receiving the output in the correct type variable.


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2007
    Posts
    6

    Re: watch what parameters are pasted to dll

    I am passing in the right types. Hard to mess up (int,int,long,optional string) as string. I'm just not sure what the original programmer had for those values.

    In the database he has id columns that match the variable names for the int,int,long but those values don't seem to return what I expect. That's why I would like to find out what is getting passed in.

    It's not like I'm dead in the water and I have a good idea as to what is returned but would like to be sure.

    Stephen

  4. #4
    PowerPoster
    Join Date
    Jan 2008
    Posts
    11,074

    Re: watch what parameters are pasted to dll

    I know you think the DLL was written in VB but maybe it was written in C/C++. Integers are different in VB as they are in C/C++. Also, you need to know how the DLL wants it's parameters sent; ByVal or By ByRef. Strings could also be handled differently. Why don't you see for sure if it's a VB or a C/C++ DLL. Without having a copy of it I really can't tell you how to deal with it nor do I know what you can do to find out what it wants.


    Anything I post is an example only and is not intended to be the only solution, the total solution nor the final solution to your request nor do I claim that it is. If you find it useful then it is entirely up to you to make whatever changes necessary you feel are adequate for your purposes.

  5. #5

    Thread Starter
    New Member
    Join Date
    Sep 2007
    Posts
    6

    Re: watch what parameters are passed to dll

    Thanks for your help. I was looking at the whole program again and it wasn't done in VB. It's in File Maker Pro. What version I don't know. I really shouldn't spend a bunch of time on this as I could rewrite the functions from scratch faster. So unless there is a fairly easy answer to just watching from the OS what parameters are that are passed then its really not worth to much effort.

    Thanks again for your help.

    Stephen

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width