W
wind_2005
Unregistered / Unconfirmed
GUEST, unregistred user!
各位高人:
我写了一个函数如下:
long GetCallInfo(char *szWPassword, long *lCardType, char *szDllName)
{
AnsiString CallPWD, DLLName;
int CardType = 2;
CallPWD = "abc";
DLLName = "HHD";
StrCopy(szDllName , DLLName.c_str());
StrCopy(szWPassword , CallPWD.c_str());
*lCardType = CardType;
}
调用语句如下:
long rv;
char *sWPassword;
char *sDllName;
long CardType;
rv = GetCallInfo(sWPassword, &CardType, sDllName);
我想通过调用GetCallInfo,将两个字符串,一个长整型值从GetCallInfo中取出,
我这样调用对吗?
应该如何做?谢谢各位了!
我写了一个函数如下:
long GetCallInfo(char *szWPassword, long *lCardType, char *szDllName)
{
AnsiString CallPWD, DLLName;
int CardType = 2;
CallPWD = "abc";
DLLName = "HHD";
StrCopy(szDllName , DLLName.c_str());
StrCopy(szWPassword , CallPWD.c_str());
*lCardType = CardType;
}
调用语句如下:
long rv;
char *sWPassword;
char *sDllName;
long CardType;
rv = GetCallInfo(sWPassword, &CardType, sDllName);
我想通过调用GetCallInfo,将两个字符串,一个长整型值从GetCallInfo中取出,
我这样调用对吗?
应该如何做?谢谢各位了!