typedef struct tagRECIPINFO
{
char strNo[32];
char strName[32];
char strCompany[64];
} RECIPINFO;
extern "C" _declspec(dllexport) int SendFax(LPSTR domain, LPSTR server,
int nProtocol, LPSTR user,
LPSTR sender, LPSTR subject,
LPSTR pLogo, int nCover,
RECIPINFO *pRecip, UINT uRecip,
char** ppFiles, UINT nFiles);
이것을 어떻게 변환해서 쓰나요???
> {
> char strNo[32];
> char strName[32];
> char strCompany[64];
> } RECIPINFO;
type
tagRecIPInfo = record
strNo: array[0..31] of Char;
strName: array[0..31] of Char;
strCompany: array[0..64] of Char;
end;
TRecIPInfo = tagRecIPInfo;
PRecIPInfo = ^tagRecIPInfo;
PPChar = ^PChar;
>
> extern "C" _declspec(dllexport) int SendFax(LPSTR domain, LPSTR server,
> int nProtocol, LPSTR user,
> LPSTR sender, LPSTR subject,
> LPSTR pLogo, int nCover,
> RECIPINFO *pRecip, UINT uRecip,
> char** ppFiles, UINT nFiles);
function SendFax(Domain, Server: PChar;
nProtocol: Integer; User, Sender, Subject, pLogo: PChar;
nCover: Integer; pRecIP: PRecIPInfo;
uRecIP: DWord; ppFiles: PChar; nFiles: DWord): Integer; stdcall;
이렇게 하면 되지 않을 까요.. 만일 pRecIP가 절대 nil로 보낼일이 없다면
function SendFax(Domain, Server: PChar;
nProtocol: Integer; User, Sender, Subject, pLogo: PChar;
nCover: Integer; var RecIP: TRecIPInfo;
uRecIP: DWord; ppFiles: PPChar; nFiles: DWord): Integer; stdcall;
이렇게 하셔도 좋고....
아 ppFiles는 확실하지 않군요. C원본에서 2중포인터로 되어있길래......