|
물론 헬프를 보면 다르지만, nil과 NULL이 비슷해보여 썼는데 에러를 못잡겠어요.
델파이 파스칼소스를 빌더 C++소스로 바꾸고 있거든요. 이런 경우엔 어떻게 해야하죠?
도와주세요 고수맨~
델파이 소스
var
ImageBitmap : array[0..3] of TBITMAP;
......
ImageBitmap[k] := TBitmap.Create;
if (ImageBitmap[k] = nil) then begin
ShowMessage('Error in creating bitmap :' + IntToStr(GerLastError()));
Exit;
end;
씨빌더 소스
Graphics::TBitmap ImageBitmap[4];
.....
Graphics::TBitmap *ImageBitmap = new Graphics::TBitmap();
if (ImageBitmap[k] == NULL)
{
ShowMessage("Error in creating bitmap :" + IntToStr(GerLastError()));
exit;
}
|