radefeld Posted March 31, 2006 Share Posted March 31, 2006 Hey all, Watching the forum for some time and have been able to answer my questions from previous posts, but now I have something that I just can't figure out! My goal is to create a custom DLL for all my calculations, so they can be 1) easily updatable2) used in other applications as wellSo far - I have been able to create a custom DLL © and compile it with Dev C++ version 4.9.9.2 and pass values back and forth (thanks layer and Josbe). I also created a really quick gui to test it allNow... The first thing I have encountered that I haven't been able to find an answer to or figure out, is how to receive a "double" from my calculator dll. I can pass 1 and 2, add them together and receive a 3 as an int, but I want to have the ability to send a 1.5 and a 2.1, add them together and receive a 3.6. Long term I would like to have the ability to pass the number of significant digits and have the returned value match my criteriaI would also like to have the ability to pass strings back and forth but using C I can't seem to get the right combination between str and char (it doesn't help that my c is so darn rusty...) I've already checked the examples that come with AutoIT, but I didn't see anything, Does anyone have any comprehensive examples of a custom DLL in either C or C++ that show all the options or things that can be done? I would be MUCH appreciative for a little bump on my development Thanks in advance for all responses!Radefeld Link to comment Share on other sites More sharing options...
kclteam Posted April 1, 2006 Share Posted April 1, 2006 if u wish to use long instead of double...may be u should look at thisDll Calls I believe we should all pay our tax with a smile. I tried - but they wanted cash! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now