在下面的程序中,我收到以下错误:
error C2143: syntax error : missing ';' before '->'
error C2143: syntax error : missing ';' before '->'
任何猜测我做错了什么?
#include "stdafx.h"
#include <stdio.h>
#using <system.drawing.dll>
using namespace System;
using namespace System::Drawing;
int main()
{
Image^ newImage = Image::FromFile( "SampImag.jpg" );
// Create parallelogram for drawing image.
Point ulCorner = Point(100,100);
Point urCorner = Point(325,100);
Point llCorner = Point(150,250);
array<Point>^ destPara = {ulCorner,urCorner,llCorner};
// Create rectangle for source image.
Rectangle srcRect = Rectangle(50,50,150,150);
GraphicsUnit units = GraphicsUnit::Pixel;
// Draw image to screen.
//Graphics1 = new Graphics();
Graphics->DrawImage( newImage, destPara, srcRect, units );
return 0;
}