Well its not a console appliction, its a windows form app. And if u look at the VB code at the top, the calcButton event at the for loop, by trying to write the same thing with c++ code, it gives errors
int hours
for(hours=1; hours<=50; hours++)
{
this->HoursListBox->Items->Add(hours);
} it gives error C2664: c:\Documents and Settings\fe\My Documents\Visual Studio Projects\Payroll\Form1.h(366): error C2664: 'System::Windows::Forms::ListBox::ObjectCollection::Add' : cannot convert parameter 1 from 'int' to 'System::Object __gc *'