日期:2014-05-20  浏览次数:20621 次

jnative调用 dll问题,如何处理struct ,怎么处理呢?
c++中有定义:

unsigned long CALLBACK LoginServer(unsigned long handle, const ServerParam *pServerParam);

#pragma pack(1) // 单字节对齐
struct ServerParam
{
const char *pszServer;
unsigned short usPort;

};



如果用jnative调用的LoginServer的时候,如何来处理呢
谢谢了

------解决方案--------------------
回帖是一种美德!每天回帖即可获得 10 分可用分!