LiveJournal Tags:
pb c 参数对应 MICROSOFT PB(16Bit) PB(32Bit)
Bool Boolean Boolean
Char* Ref string Ref String
Colorref Uint Ulong
Dword Uint Ulong
Handle Uint Ulong
Hdc Uint Ulong
Hfile Uint Ulong
Hinstance Uint Ulong
Hwnd Uint Ulong
Int Int Int
Lparam Uint Ulong
Lpbyte Ref Int Ref Long
Lpdword Ref Uint Ref Ulong
Lpfiletime Ref Time Ref Time
Lpint Ref Int Ref Long
Lpstr,Lpststr Ref String Ref String
Lpvoid Ref Structstruct_inst Ref Struct struct_inst
Mcierror Long Long
Lpstr,Lpststr Ref String Ref String
Lpvoid Ref Structstruct_inst Ref Struct struct_inst
Pbyte Ref Int[#] Ref Long[#]
Short Int Int
Structure Ref Struct struct_inst Ref Struct Struct_inst
Uint Uint Uint
Void** SUBROUTINE SUBROUTINE
Word Int Ulong
pb能使用的必须是标准winapi即pasical 压栈顺序
- 制作dll文件时 需要stdcal
- 在函数中加入winapi
eg:
DLLIMPORT WINAPI int CI_MACForPb(
long nFunction,
unsigned char *pEntity,
unsigned char *pInData,
unsigned long nInLength,
unsigned char *pMAC,
unsigned long *pnMACLength
)
posted on 2009-05-14 20:48
小晖 阅读(1741)
评论(0) 编辑 收藏