new to dll files
-
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.
-
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.
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.