首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

jnative调用 dll有关问题,如何避免struct ,怎么办呢

2012-08-07 
jnative调用 dll问题,如何处理struct ,怎么处理呢?c++中有定义:unsigned long CALLBACK LoginServer(unsig

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 分可用分!

热点排行