C++ API or MFC or Win32? ComboBox?

The code below is what I'm having problems with... The combobox part is getting me angry and i've searched everywhere, code guru, msdn, stackoverflow, daniweb... And I cant figure it out. Its for a game my friend plays. I play and quit on and off.. I decided to do a calculator for him..

Problem: Cannot figure out how to determine which item the person clicked in the combobox... I will post a picture of the program in the attachments and the project folder.

int tb1value;
Int32::TryParse(textBox1->Text,tb1value); //enclose this in an if to make your own error handling
int tb2value = tb1value+comboBox1->SelectedIndex+12;
//it doesn't matter what's in the box, just use the offset
textBox2->Text = tb2value.ToString();

Wow thats exactly what I wanted... saw that on a youtube video but the part I did not understand is the (tb1value+comboBox1->SelectedIndex+12;)... The selected index part is the piece of that line i dont understand..

I wanted it so that if they select the first option in the box, add 12.. if the second option add 13 if third add whatever.. does that do it for me? what does that selected index do? I know its if they select and option but does this apply to a specific option or all options in the combobox?

Would I do.. if (comboBox1.SelectedIndex == "Chaeldar (Lost City)") add 12? or 13? or 19? or whatever? (I know how to add to it)

If you have the first option selected (option 0) it returns 0 (total +12), second option (option 1) it returns 1 (total +13). Chaeldar would add a total of 12. Just make a form with a combobox on it and play around with it a little. You don't need the if statement like you have it because the box is agnostic to the actual contents, as long as you keep everything in the right order it's fine.

but does this apply to a specific option or all options in the combobox?

Oh, I thought that's what you wanted (to have the progression go by 1 each step). Ok. Well, make an array: cli::array<int> ^ pointsarr = {4,2,7,5,8,9,22}; and add pointsarray[comboBox1->SelectedItem] to your total instead.

Hi. so this is actually a continuation from another question of mine[Here](https://www.daniweb.com/programming/software-development/threads/506795/dynamically-add-values-into-datagridview-cell-from-listbox-vb2010) but i was advised to start a new thread as the original question …

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

Write a C program that should create a 10 element array of random integers (0 to 9). The program should total all of the numbers in the odd positions of the array and compare them with the total of the numbers in the even positions of the array and indicate ...