delphi调用VC函数据(含有找指针)(200分)

  • 主题发起人 liangxiao
  • 开始时间
L

liangxiao

Unregistered / Unconfirmed
GUEST, unregistred user!

//tabledefine.H
#ifndef TABLEDEFINE_H_
#define TABLEDEFINE_H_

//总表属性
typedef struct TOP_TABLE
{
char cSerial;
char cProp;
char *strName;
}top_table;
/talbeinfo.h
#include "tabledefine.h"
#include "tablemodule.h"

VC函数据
//以下关于表格属性
extern "C" _declspec (dllexport)
int DestroyTopTable(top_table *head);
在DELPHI中调用VC++函数,怎么调,记录指针怎么表示

 
type top_table=record
cSerial:Char;
cProp:Char;
strName:pChar;
end;
function DestoryTopTable(var Head:Top_Table):Integer;external'xxx.dll';


 
顶部