C++转DELPHI代码,在线等待..

PrettyMurphy 2005-05-15 01:36:19
帮忙转成DELPHI代码:

class __declspec(dllimport) CEndUseApp
{
public:
CEndUseApp(void);
virtual ~CEndUseApp(void);

void* m_Ves;

virtual UINT EndUseApp( GR_EVENT* pEvent);
virtual UINT EndError( GR_EVENT* pEvent);
protected:
void GrFlush(void);
void GrGetScreenInfo(GR_SCREEN_INFO *sip);
GR_COLOR GrGetSysColor(int index);

GR_WINDOW_ID GrNewWindow(GR_WINDOW_ID parent, GR_COORD x, GR_COORD y,
GR_SIZE width, GR_SIZE height, GR_SIZE bordersize,
GR_COLOR background, GR_COLOR bordercolor);
void GrDestroyWindow(GR_WINDOW_ID wid);
GR_WINDOW_ID GrNewPixmap(GR_SIZE width, GR_SIZE height, void * addr);

GR_GC_ID GrNewGC(void);
GR_GC_ID GrCopyGC(GR_GC_ID gc);
void GrGetGCInfo(GR_GC_ID gc, GR_GC_INFO *gcip);
void GrDestroyGC(GR_GC_ID gc);
void GrSetGCForeground(GR_GC_ID gc, GR_COLOR foreground);
void GrSetGCBackground(GR_GC_ID gc, GR_COLOR background);
void GrSetGCUseBackground(GR_GC_ID gc, GR_BOOL flag);
void GrSetGCMode(GR_GC_ID gc, int mode);
void GrSetGCFont(GR_GC_ID gc, GR_FONT_ID font);

GR_REGION_ID GrNewRegion(void);
GR_REGION_ID GrNewPolygonRegion(int mode, GR_COUNT count, GR_POINT *points);

void GrMapWindow(GR_WINDOW_ID wid);
void GrUnmapWindow(GR_WINDOW_ID wid);
void GrMoveWindow(GR_WINDOW_ID wid, GR_COORD x, GR_COORD y);
void GrResizeWindow(GR_WINDOW_ID wid, GR_SIZE width, GR_SIZE height);

void GrGetWindowInfo(GR_WINDOW_ID wid, GR_WINDOW_INFO *infoptr);
void GrSetWMProperties(GR_WINDOW_ID wid, GR_WM_PROPERTIES *props);
void GrGetWMProperties(GR_WINDOW_ID wid, GR_WM_PROPERTIES *props);
GR_FONT_ID GrCreateFont(GR_CHAR *name, GR_COORD height,
GR_LOGFONT *plogfont);
void GrSetFontSize(GR_FONT_ID fontid, GR_COORD size);
void GrSetFontRotation(GR_FONT_ID fontid, int tenthsdegrees);
void GrSetFontAttr(GR_FONT_ID fontid, int setflags, int clrflags);
void GrDestroyFont(GR_FONT_ID fontid);
void GrGetFontInfo(GR_FONT_ID font, GR_FONT_INFO *fip);
GR_WINDOW_ID GrGetFocus(void);
void GrSetFocus(GR_WINDOW_ID wid);
void GrClearArea(GR_WINDOW_ID wid, GR_COORD x, GR_COORD y, GR_SIZE width,
GR_SIZE height, GR_BOOL exposeflag);

void GrSelectEvents(GR_WINDOW_ID wid, GR_EVENT_MASK eventmask);

void GrLine(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x1, GR_COORD y1,
GR_COORD x2, GR_COORD y2);
void GrPoint(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y);
void GrPoints(GR_DRAW_ID id, GR_GC_ID gc, GR_COUNT count,
GR_POINT *pointtable);
void GrRect(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y,
GR_SIZE width, GR_SIZE height);
void GrFillRect(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y,
GR_SIZE width, GR_SIZE height);
void GrPoly(GR_DRAW_ID id, GR_GC_ID gc, GR_COUNT count,
GR_POINT *pointtable);
void GrFillPoly(GR_DRAW_ID id, GR_GC_ID gc, GR_COUNT count,
GR_POINT *pointtable);
void GrEllipse(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y,
GR_SIZE rx, GR_SIZE ry);
void GrFillEllipse(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x,
GR_COORD y, GR_SIZE rx, GR_SIZE ry);
void GrArc(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y,
GR_SIZE rx, GR_SIZE ry, GR_COORD ax, GR_COORD ay,
GR_COORD bx, GR_COORD by, int type);
void GrArcAngle(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y,
GR_SIZE rx, GR_SIZE ry, GR_COORD angle1,
GR_COORD angle2, int type); /* floating point required*/

void GrGetGCTextSize(GR_GC_ID gc, void *str, int count, int flags,
GR_SIZE *retwidth, GR_SIZE *retheight,GR_SIZE *retbase);

void GrArea(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y,
GR_SIZE width,GR_SIZE height,void *pixels,int pixtype);

void GrBitmap(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y,
GR_SIZE width, GR_SIZE height, GR_BITMAP *imagebits);

void GrDrawImageBits(GR_DRAW_ID id,GR_GC_ID gc,GR_COORD x,GR_COORD y,
GR_IMAGE_HDR *pimage);

void GrDrawImageFromFile(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x,
GR_COORD y, GR_SIZE width, GR_SIZE height,
char *path, int flags);

GR_IMAGE_ID GrLoadImageFromFile(char *path, int flags);

void GrDrawImageFromBuffer(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x,
GR_COORD y, GR_SIZE width, GR_SIZE height,
void *buffer, int size, int flags);

GR_IMAGE_ID GrLoadImageFromBuffer(void *buffer, int size, int flags);

void GrDrawImageToFit(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x,
GR_COORD y, GR_SIZE width, GR_SIZE height,
GR_IMAGE_ID imageid);

void GrFreeImage(GR_IMAGE_ID id);

void GrGetImageInfo(GR_IMAGE_ID id, GR_IMAGE_INFO *iip);

void GrText(GR_DRAW_ID id, GR_GC_ID gc, GR_COORD x, GR_COORD y,
void *str, GR_COUNT count, int flags);

void GrGetSystemPalette(GR_PALETTE *pal);
void GrSetSystemPalette(GR_COUNT first, GR_PALETTE *pal);
void GrFindColor(GR_COLOR c, GR_PIXELVAL *retpixel);
void GrCloseWindow(GR_WINDOW_ID wid);
void GrSetScreenSaverTimeout(GR_TIMEOUT timeout);
void GrSetBackgroundPixmap(GR_WINDOW_ID wid, GR_WINDOW_ID pixmap,
int flags);

void GrSetPortraitMode(int portraitmode);

GR_WINDOW_ID GrNewWindowEx(GR_WM_PROPS props, GR_CHAR *title,
GR_WINDOW_ID parent, GR_COORD x, GR_COORD y,
GR_SIZE width, GR_SIZE height, GR_COLOR background);
void GrDrawLines(GR_DRAW_ID w, GR_GC_ID gc, GR_POINT *points,
GR_COUNT count);
GR_BITMAP * GrNewBitmapFromData(GR_SIZE width, GR_SIZE height, GR_SIZE bits_width,
GR_SIZE bits_height, void *bits, int flags);
GR_WINDOW_ID GrNewPixmapFromData(GR_SIZE width, GR_SIZE height,
GR_COLOR foreground, GR_COLOR background, void * bits,
int flags);
};
...全文
161 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
PrettyMurphy 2005-05-17
  • 打赏
  • 举报
回复
哪找阿。。。。
xjb2001 2005-05-17
  • 打赏
  • 举报
回复
做出来的DLL 要转换,从 VC的什么COFF格式到BORLAND的一个格式

BORLAND 有这个工具的;

但是我记得BORLAND的那个工具好像会弄出个什么问题;

你去网上下个DLL转换的工具吧;

很容易找的
godear 2005-05-16
  • 打赏
  • 举报
回复
project->import type lib
beyondtkl 2005-05-16
  • 打赏
  • 举报
回复
VC DLL導出的類 不能給delphi使用。。
PrettyMurphy 2005-05-16
  • 打赏
  • 举报
回复
哦,试试看....多谢两位

16,749

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 语言基础/算法/系统设计
社区管理员
  • 语言基础/算法/系统设计社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧