كيف يمكن استخراج functions List مع المعرفات (parameters)
#7
file.h
إقتباس : bool closeNT();
void close();
bool truncateNT();
void truncate();

file.pas
إقتباس :var
closeNT: function: Bool cdecl {$IFDEF WIN32} stdcall {$ENDIF};
var
close: procedure cdecl {$IFDEF WIN32} stdcall {$ENDIF};
var
truncateNT: function: Bool cdecl {$IFDEF WIN32} stdcall {$ENDIF};
var
truncate: procedure cdecl {$IFDEF WIN32} stdcall {$ENDIF};

هذا خطا
ايضا class
كود :
class VDFileStream : public VDFile, public IVDRandomAccessStream { private: VDFileStream(const VDFile&); const VDFileStream& operator=(const VDFileStream& f); public: VDFileStream() {} VDFileStream(const char *pszFileName, uint32 flags = nsVDFile::kRead | nsVDFile::kDenyWrite | nsVDFile::kOpenExisting) : VDFile(pszFileName, flags) {} VDFileStream(const wchar_t *pwszFileName, uint32 flags = nsVDFile::kRead | nsVDFile::kDenyWrite | nsVDFile::kOpenExisting) : VDFile(pwszFileName, flags) {} VDFileStream(VDFileHandle h) : VDFile(h) {} ~VDFileStream(); const wchar_t *GetNameForError(); sint64 Pos(); void Read(void *buffer, sint32 bytes); sint32 ReadData(void *buffer, sint32 bytes); void Write(const void *buffer, sint32 bytes); sint64 Length(); void Seek(sint64 offset); };

كود :
var VDFileStream: function(const _1: VDFILE&): PRIVATE: cdecl {$IFDEF WIN32} stdcall {$ENDIF}; var operator=: function(const f: VDFILESTREAM&): CONST cdecl {$IFDEF WIN32} stdcall {$ENDIF}; var VDFileStream: var function: UBLIC: cdecl {$IFDEF WIN32} stdcall {$ENDIF}; var VDFileStream: function(const pszFileName: PChar; VDFile(pszFileName: UINT32 FLAGS = NSVDFILE::KREAD | NSVDFILE::KDENYWRITE | NSVDFILE::KOPENEXISTING) :; _3: FLAGS): Integer cdecl {$IFDEF WIN32} stdcall {$ENDIF}; var VDFileStream: function(const pwszFileName: PWCHAR_T; VDFile(pwszFileName: UINT32 FLAGS = NSVDFILE::KREAD | NSVDFILE::KDENYWRITE | NSVDFILE::KOPENEXISTING) :; _3: FLAGS): Integer cdecl {$IFDEF WIN32} stdcall {$ENDIF}; var VDFileStream: function(h: VDFILEHANDLE): Integer cdecl {$IFDEF WIN32} stdcall {$ENDIF}; var ~VDFileStream: function: Integer cdecl {$IFDEF WIN32} stdcall {$ENDIF}; var GetNameForError: var function: CONST WCHAR_T cdecl {$IFDEF WIN32} stdcall {$ENDIF}; var Pos: function: SINT64 cdecl {$IFDEF WIN32} stdcall {$ENDIF}; var Read: procedure(buffer: Pointer; bytes: SINT32) cdecl {$IFDEF WIN32} stdcall {$ENDIF}; var ReadData: function(buffer: Pointer; bytes: SINT32): SINT32 cdecl {$IFDEF WIN32} stdcall {$ENDIF}; var Write: procedure(const buffer: Pointer; bytes: SINT32) cdecl {$IFDEF WIN32} stdcall {$ENDIF}; var Length: function: SINT64 cdecl {$IFDEF WIN32} stdcall {$ENDIF}; var Seek: procedure(offset: SINT64) cdecl {$IFDEF WIN32} stdcall {$ENDIF};
الرد


الردود في هذا الموضوع
كيف يمكن استخراج functions List مع المعرفات (parameters) - بواسطة cargem - 19-08-2011, 06:14 PM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم