trichview.com

trichview.support




hi,translate this delphi code to c++builder code


Return to index


Author

Message

user8848

Posted: 05/06/2005 21:04:40


hi

   how are you,i delphi is poor,i use c++builder,please you help

translate this delphi code to c++ builder code,thank you very much.


function CreateGraphics(GraphicClass: TGraphicClass): TGraphic;

begin

  if GraphicClass=TBitmap then

    Result := TBitmap.Create

  else if GraphicClass=TMetafile then

    Result := TMetafile.Create

  else if GraphicClass=TIcon then

    Result := TIcon.Create

  else

  if GraphicClass=TGifImage then

    Result := TGifImage.Create

  else

  if GraphicClass=TPngObject then

    Result := TPngObject.Create

  else

  Result := GraphicClass.Create;

end;


=================

RV_CreateGraphics := CreateGraphics;





Powered by ABC Amber Outlook Express Converter