1. Back: Help wrapping a dll

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

new topic     » topic index » view message » categorize

2. Re: Back: Help wrapping a dll

> 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)

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu