Sign in to follow this  
Followers 0
radefeld

Return Type Of Double From A Custom Dll?

2 posts in this topic

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 updatable

2) used in other applications as well

So 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 all

Now... :)

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 criteria

I 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 :mellow:

Thanks in advance for all responses!

Radefeld

Share this post


Link to post
Share on other sites



if u wish to use long instead of double...may be u should look at this

Dll Calls


I believe we should all pay our tax with a smile. I tried - but they wanted cash!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0