Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2002.07.18;
Скачать: CL | DM;

Вниз

глючит ICQ API   Найти похожие ветки 

 
GrayFox   (2002-07-04 23:15) [0]

вызываю ICQAPICall_GetVersion(Version), и потом появляется exception. version у меня integer.

к тому же ICQAPICall_GetFullUserData(ICQUser,Version);
возврщает ник пользователя начиная со 2 символа, т.е вместо "Zett" выдает "ett", остальные ее данные не проверял


 
GrayFox   (2002-07-05 02:42) [1]

type
tICQUser=record
UIN: integer;
FloatWindow: HWND; //the handle of the "Float" window if the user is floating.
IP: integer;
Nickname: string[20];
FirstName: string[20];
LastName: string[20];
Email: string[100];
City: string[100];
State: string[100];
Country: integer; //the user"s country code.
CountryName: string[100]; //the user"s country name.
HomePage: string[100]; //the user"s homepage.
Age: integer; //the user"s age
Phone: string[20]; //the user"s phone.
Gender: byte;
HomeZip: integer; //the user"s zip code.
// Version 1.0001
StateFlags: integer;
end;

pICQUser=^tICQUser;

var
ICQUser: pICQUser;



 
GrayFox   (2002-07-05 02:44) [2]

другие параметры: с каждым следующим параметром отображается начиная со след номера, например имя уже начиная со второго символа, вместо "vanya" идет "nya"


 
GrayFox   (2002-07-05 14:26) [3]

в офиц документе тип расписан так

BSICQAPI_User

typedef struct
{
int m_iUIN;
HWND m_hFloatWindow;
int m_iIP;
char m_szNickname[20];
char m_szFirstName[20];
char m_szLastName[20];
char m_szEmail[100];
char m_szCity[100];
char m_szState[100];
int m_iCountry;
char m_szCountryName[100];
char m_szHomePage[100];
int m_iAge;
char m_szPhone[20];
BYTE m_bGender;
int m_iHomeZip;

// Version 1.0001

int m_iStateFlags;

} BSICQAPI_User;


This the data structure contains the user information held by ICQ Client.

m_iUIN - the user’s ICQ #.
m_hFloatWindw - the handle of the “Float” window if the user is floating.
m_iIP - the user’s IP address.
m_szNickname - the user’s nickname.
m_szFirstName - the user’s first name.
m_szLastName - the user’s last name.
m_szEmail - the user’s email address.
m_szCity - the user’s city.
m_szState - the user’s state.
m_iCountry - the user’s country code.
m_szCountryName - the user’s country name.
m_szHomePage - the user’s homepage.
m_iAge - the user’s age.
m_szPhone - the user’s phone.
m_iGender - the user’s gender. The codes are : 0 - Not Specified, 1 - Female, 2 - Male.
m_iHomeZip - the user’s zip code.

m_iStateFlags – get one of the following values :

BICQAPI_USER_STATE_ONLINE 0
BICQAPI_USER_STATE_CHAT 1
BICQAPI_USER_STATE_AWAY 2
BICQAPI_USER_STATE_NA 3
BICQAPI_USER_STATE_OCCUPIED 4
BICQAPI_USER_STATE_DND 5
BICQAPI_USER_STATE_INVISIBLE 6
BICQAPI_USER_STATE_OFFLINE 7




 
Skier ©   (2002-07-05 14:34) [4]

>GrayFox

Замени все строчки в записи на символьные массивы.
Т.е. Замени
Nickname: string[20] на
Nickname: array [1..20] of char;

и так далее...


 
GrayFox   (2002-07-05 14:42) [5]

Помогло, большое спасибо!



Страницы: 1 вся ветка

Текущий архив: 2002.07.18;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.009 c
1-58223
Loco
2002-07-06 19:53
2002.07.18
Формы


7-58339
Reket
2002-04-22 11:14
2002.07.18
Как перехватить поток данных идущих через LPT порт?


1-58083
Guerrillero Che
2002-07-08 11:26
2002.07.18
Освобождение памяти ?


1-58082
Wetnose
2002-07-08 08:15
2002.07.18
Delphi+Java


3-57965
wHammer
2002-06-24 11:55
2002.07.18
Снова Paradox