PDA

Click to See Complete Forum and Search --> : ICQ API Functions


leontro
Aug 11th, 2000, 05:32 AM
Hi everyone,

I want to send a message to someone. I know in their ICQMAPI.dll there is two functions related:

1)ICQAPICall_SendExternal
2)ICQAPICall_SendMessage

I tried them several times but in fact i want to do the stuff externally (via ICQAPICall_SendMessage). Here my code:

declarations:
________________________________________________
Public Declare Function ICQAPICall_SetLicenseKey Lib "ICQMapi.dll" _
(ByVal pszName As String, ByVal pszPassword As String, ByVal pszLicense As String) As Boolean
Public Declare Function ICQAPICall_SendExternal Lib "ICQMapi.dll" _
(ByVal iUIN As Long, pszExternal As String, pszMessage As String, bAutoSend As Byte) As Boolean
________________________________________________

command button:
________________________________________________
Call ICQAPICall_SetLicenseKey("xxx", "xxx", "xxxxxxxxxxxxxxxx")
Call ICQAPICall_SendExternal(11111111, "Form1", "Some Message", 1)
________________________________________________


*)The first problem is the ICQAPI_SendMessage function works but the characters sent are totally wrong

*)The second and the most important problem is the ICQAPI_SendExternal function does not work. In fact I don't know the usage of this function parameters. I tried lots of thing to *pszExternal section but didn't work. Here below the C++ usage of it

C++ Code:
________________________________________________
BOOL WINAPI ICQAPICall_SendExternal(int iUIN, char *pszExternal, char *pszMessage, BYTE bAutoSend);
________________________________________________

Now please help about this stuff especially the ICQAPICall_SendExternal

ysa1441
Jun 2nd, 2003, 08:43 AM
i have the same problem!!
please, someone help!