Page 1 of 1

ComLib_PB4

Posted: Tue Sep 12, 2006 2:07 am
by ts-soft
This Lib based on the Lib from aXend, updated for use with PB4

Removed: (not required in PB4)
- Uni2Ansi(unicodestr.l)
- Ansi2Uni(ansistr.s)

Available:
CreateObject(ProgID.s) ; Creates COM object from ProgID
ReleaseObject(object.l) ; Releases Object from memory

This Lib works in ASCII and UNICODE-Mode!

some small examples added
source included

Download (5,5 KB)

Posted: Tue Sep 12, 2006 4:43 am
by ts-soft
Extra Example (separat download)
Using AutoItX3 as ActiveX.dll

Requires ComLib_PB4

Download AutoItX3 example (260 KB)

Posted: Tue Sep 12, 2006 1:48 pm
by Kiffi
Hello Thomas,

VERY GOOD! Thanks a lot! Image

Trying immediately to use it with my MSXML-Library...

Greetings ... Kiffi

Posted: Tue Sep 12, 2006 6:11 pm
by GedB
ts-soft,

You rule! 8)

Posted: Thu Sep 21, 2006 3:26 am
by burthold
I'm trying to get this to work with ADO and it is driving me to drink.

Has anyone gotten this to work with ADO 2.6 or better?

Wes

Posted: Fri Sep 22, 2006 1:27 am
by burthold
Well, I can get a conneciton and issue a sql statement to do an insert but record sets aren't working.

I went back to 3.94 and the example works but not much else.

So, some of the changes between 3.94 and 4 have changed something fundamental.

I just don't know what else to do. The documentation is completely useless for purebasic.

I ordered the book hopefully it will help me out.

Wes

Posted: Fri Sep 22, 2006 2:04 pm
by Intrigued
Thanks for sharing. I'm lost without a Help file. Did you have plans on creating one. I know they are a bugger to do.

TIA

Posted: Fri Sep 22, 2006 2:21 pm
by ts-soft
@Intrigued
Help for com? No
I don't speak good english and i think the 2 functions a really clear, it's the
same syntax like VBScript or JScript.
See the examples, it's allways the same

For create Interfaces you can use the OLE/COM Interface-Genrator by S. Möbius.
http://www.purebasic.fr/english/viewtopic.php?t=23370

For using of Variant Types you find examples in the ScriptContol
http://www.purebasic.fr/german/viewtopi ... iptcontrol
There is a includefile for Variants.

I hope this helps a bit

regards
Thomas

Posted: Fri Sep 22, 2006 4:50 pm
by Shannara
The problem is, the interface in that thread to the script control is incomplete ... are you planning on adding the ability for program procedures be accessed from the scripts via script control?

Posted: Fri Sep 22, 2006 4:54 pm
by ts-soft
I think the missing InterFaces not usefull in other programming languages.
I have no idea to use it. It's all for the scripting languages itself

regards
Thomas

Posted: Fri Sep 22, 2006 7:43 pm
by Intrigued
ts-soft wrote:@Intrigued
Help for com? No
I don't speak good english and i think the 2 functions a really clear, it's the
same syntax like VBScript or JScript.
See the examples, it's allways the same

For create Interfaces you can use the OLE/COM Interface-Genrator by S. Möbius.
http://www.purebasic.fr/english/viewtopic.php?t=23370

For using of Variant Types you find examples in the ScriptContol
http://www.purebasic.fr/german/viewtopi ... iptcontrol
There is a includefile for Variants.

I hope this helps a bit

regards
Thomas
Thank you Thomas. :)

Posted: Wed Jan 31, 2007 12:36 am
by ts-soft
small bugfix, the buffer for unicode was 1 byte to short :wink:

Posted: Wed Jan 31, 2007 3:49 am
by JCV
thanks! :D