First, make sure your project has a reference to System.Drawing.dll. Second, use either a using directive or a using declaration to bring the Bitmap type into scope, or fully qualify the typename:
// using directive
using namespace System::Drawing;
void load(Bitmap^ image)
{ ... }
// using declaration
using System::Drawing::Bitmap;
void load(Bitmap^ image)
{ ... }
// full qualification
void load (System::Drawing::Bitmap^ image)
{ ... }
Proposed as answer byildjarnSunday, December 21, 2008 8:21 AM
Marked as answer byRong-Chun ZhangMonday, December 22, 2008 9:01 AM