ComLib_PB4

Developed or developing a new product in PureBasic? Tell the world about it.
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

ComLib_PB4

Post 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)
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

Extra Example (separat download)
Using AutoItX3 as ActiveX.dll

Requires ComLib_PB4

Download AutoItX3 example (260 KB)
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
User avatar
Kiffi
Addict
Addict
Posts: 1485
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Post by Kiffi »

Hello Thomas,

VERY GOOD! Thanks a lot! Image

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

Greetings ... Kiffi
User avatar
GedB
Addict
Addict
Posts: 1313
Joined: Fri May 16, 2003 3:47 pm
Location: England
Contact:

Post by GedB »

ts-soft,

You rule! 8)
burthold
New User
New User
Posts: 2
Joined: Tue Sep 19, 2006 4:42 pm

Post 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
burthold
New User
New User
Posts: 2
Joined: Tue Sep 19, 2006 4:42 pm

Post 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
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post 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
Intrigued - Registered PureBasic, lifetime updates user
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post 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?
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Intrigued
Enthusiast
Enthusiast
Posts: 501
Joined: Thu Jun 02, 2005 3:55 am
Location: U.S.A.

Post 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. :)
Intrigued - Registered PureBasic, lifetime updates user
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

small bugfix, the buffer for unicode was 1 byte to short :wink:
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

thanks! :D
Post Reply