typedef struct tagPfile Pfile;
typedef struct tagConItem ConItem;
struct ListItem
{
char *strName[5];
char StrValue[512];
ConfigItem *configItem;
};
struct tagConItem
{
char name[512];
char *label[5]
ListItem *listItems; //上面定义的结构体
Pfile *profile;
};struct tagPfile
{
char name[512];
int langCount;
char *langName[5];
int type;
ConItem *configItems;
};C++ Builder 调用原型
int DLL_CALLTYPE praseXmlFile(char *FilePath,Pfile *profile); 可以用
如何用Delphi 调用
我定义的类型对应为
char StrValue[512]=============StrValue:arrayp[1..512] of char;
char *label[5] 这种不知如何对应
我试了很久 一直报错
typedef struct tagConItem ConItem;
struct ListItem
{
char *strName[5];
char StrValue[512];
ConfigItem *configItem;
};
struct tagConItem
{
char name[512];
char *label[5]
ListItem *listItems; //上面定义的结构体
Pfile *profile;
};struct tagPfile
{
char name[512];
int langCount;
char *langName[5];
int type;
ConItem *configItems;
};C++ Builder 调用原型
int DLL_CALLTYPE praseXmlFile(char *FilePath,Pfile *profile); 可以用
如何用Delphi 调用
我定义的类型对应为
char StrValue[512]=============StrValue:arrayp[1..512] of char;
char *label[5] 这种不知如何对应
我试了很久 一直报错
解决方案 »
- 本人学DELPHI 十天了!想问大家个超傻的问题!PrintDBGridEh是怎么用的~!今天内结帖!
- ? 关于OpenGL 贴纹理的问题 ?
- FTP自動上傳,為什麼一段時間後就聯接失敗,提示"software caused connection abort"?
- 唉......我真失败啊
- 怎么在dbgird的字段中做关联?
- ADOConnection 的问题
- TreeView節點上圖標的交換
- 指针、指针变量
- AdoQuery 无法为更新定位行。一些值可能已经在最后一次读取后已更改。
- 是不是我的问题太难了,没有人回答?
- 我的服务器电脑是xp系统,已经设置了dcom配置,但是其他电脑还是启动不了客户端,请高手帮我,很急
- Delphi7中调用.NET--WebService问题HTTPS
试试这样
array [1..5] of pchar;
ArrayChar=array[0..5] of TempChar5;
ArrayChrP=^ArrayChar;
我这样对应的 能读出数据来 但是还是会报错
{
int titleId;
double duration;
ChapterInfo *chapterInfos;
}PlayTitleInfo;typedef struct PlayerHandle{
int (*playerHandle)(struct PlayingReport *playingReport);
} PlayerHandle;这种怎么调用的 函数指针的
struct tagPfile
{
char name[512];
int langCount;
char *langName[5];
int type;
ConItem *configItems;
};
中的这个 ConItem *configItems;
在D中应该定义为 一个结构体 tagConItem 的数组吧? 但是是不定长的
这个在D中怎么处理