View Single Post
Old Jan 18th, 2007, 11:42 AM   #7
VBuser
Newbie
 
Join Date: Jan 2007
Posts: 3
Rep Power: 0 VBuser is on a distinguished road
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 *'
VBuser is offline   Reply With Quote