Sign in to follow this  
Followers 0
tpedley

Adding Multiple DINT's in a DB

1 post in this topic

i have a DB with 365 DINT's in it. i want to write a function that will allow me to add groups of them together into a single dint. lets say i want to add the first 7 DINT's together into a single DINT. not too hard, can do it in ladder in a few seconds. But i need to ADD all of them together, or some of them together. all the DINT's i will be adding together are consecutive, so this is built for pointers and indirect offsetting. did i mention that i don't know how to do either of these things? i don't do anything in STL, but i am willing to learn, as it seems like this would be useful in the future for other things. if anyone has some kind of example of how to make a little function that i can call with a start location, a length and a result, that would be fantastic. any and all help will be appreciated.

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