mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2002
Posts: 270
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 270
Hi, i have not much idea at all how to use COM Objects, but i need one for what i am doing, i managed to get one opebned with the right dll, but from there i am stuck, i was getting a bit of help from a fried, but he only had experience with it in Vb, not mirc, and this is what e said he used in vb:

after the com was opened:

strText_Unicode = Conv.vUTF8toUni(strText_UTF8)

so i guess that Text_Unicode and Text_UTF8 are probable preset variables in his vb program, but we werent able to convert a workin replica of how it works t mIRC, so basically what its supposed to do is, send some text to the dll i guess, and have it turned into UTF-8 FROM UNICODE, or the other way around, but like i said, we werent able to work it out, so if someone could help me out with this, it would be greatfully appreciated smile


dll ---> var.vdll
Com Name ---> Test
Progid ---> Vvar.VStr

Joined: Dec 2002
Posts: 270
N
Fjord artisan
OP Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 270
well i think i pretty much figured it out, thanks anyway smile

$com(name,vUTF8toUni,3,bstr,%text)

returns a value 1 or 0 depending on success status, then $com(name).result,

it works that way, is that the right way tho, or is there a better way that i am missing?

Joined: Jan 2003
Posts: 2,125
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,125
You got it, that's the proper way.


Link Copied to Clipboard