|
viewObject: IViewObject;
sourceDrawRect : TRect;
sourceDrawRect := Rect(0,0, 100, 100);
viewObject.Draw(DVASPECT_CONTENT, 1, nil, nil, self.Handle,
sourceBitmap.Canvas.Handle, @sourceDrawRect, nil, nil, 0);
위의 델파이 코드를 빌더로 변환하였는데 에러가 나네요.
Draw 함수의 @sourceDrawRect 를
TRect sourceDrawRect;
sourceDrawRect = Rect(0,0, 100, 100);
viewObject->Draw(DVASPECT_CONTENT, 1, NULL, NULL, this->Handle,
sourceBitmap->Canvas->Handle, &sourceDrawRect, NULL, NULL, 0);
위와 같이 호출하면 아래 에러가 발생합니다.
Cannot convert 'tagRECT *' to 'const _RECTL *'
TRect 인자를 어떻게 넘겨줘야 하나요?
감사합니다.
|