I have a very simple function in c++:
int sum(int a, int b) { return a+b; }

I want to be able to use this simple function in excel. I googled this problem and there is a lot of material available but they are way more complex at this point for me to make complete sense of. So, I want to just do this simple exercise and build upon it in terms of complexity.

Can anyone give me a link to such a simple exercise or give me steps, etc. I am using visual studio 2010.

PS: Sorry I did not use code blocks since I am using my work computer and the server blocks code posting.