1. Back: Help wrapping a dll
- Posted by Grape Vine <g__vine at hotmail.com> Jun 25, 2001
- 477 views
Finely i got moved and a phone and net access. Ug. Now on to wrapping dll's. its icqmapi.dll, Anyone with icq should have it in there icq dir BOOL WINAPI ICQAPICall_SetLicenseKey(char *pszName, char *pszPassword, char *pszLicense); is what i need to code, tho i have no clue how to make the correct sequences in Eu, Can anyone point me in the right dir? Grape Vine 13728824
2. Re: Back: Help wrapping a dll
- Posted by martin.stachon at worldonline.cz Jun 26, 2001
- 493 views
> Now on to wrapping dll's. > > its icqmapi.dll, Anyone with icq should have it in there icq dir > > BOOL WINAPI ICQAPICall_SetLicenseKey(char *pszName, char *pszPassword, > char *pszLicense); > > is what i need to code, tho i have no clue how to make the correct > sequences in Eu, Can anyone point me in the right dir? > > Grape Vine > 13728824 It seems you need pointers to zero-terminated strings. I'd declare the function as {C_POINTER,C_POINTER, C_POINTER}, and then call it with name = allocate_string("Neo") pass = allocate_string("Matrix") licence = allocate_string("123-456") ret = c_func(ICQAPICall_SetLicenseKey, {name, pass, licence}) free(name) free(pass) free(licence) I didn't test it so I can say whetever it works. Hope this will help you. btw. Isn't ICQ API already wrapped? I think I've seen such thing in the archive. (I cannot check it now)