Hello,

I am hoping someone can give me some advice on a visual studio program I need to write. (I assume this is the right place to post).

I have to wrote a program that displays a dialog box with three edit controls where I can enter the string of ciphered text, another to see the result of the cipher string and the final to enter the cipher code. There is also to be two buttons on the dialog box to execute the encipher and decipher operations.

We have also being given an algorithm for generating random numbers.

Now, of course, building the dialog box is no problem, and I have been able to do a few simple things with the buttons ...you know, like adding two figures in the boxes together etc., just to make sure things are working.

But now, I just don't know what I need to do with this algorithm. Can I use the same algorithm for cipher and decipher ...For example, if I open the code for say the Cipher button do I enter the code under 'public:' (?) and if I do, will the same code work for cipher and decipher?

I hope I am making sense here.

Thanks in advance for any advice you can give me.

Seán