COM Tutorial (work in progress)

Share your advanced PureBasic knowledge/code with the community.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

COM Tutorial (work in progress)

Post by freak »

I started this quite a while ago but my work on PB itself has taken most of my time lately,
so like many of my sideprojects this one drew the short straw.

Since it is unlikely that i get this finished anytime soon, and since a lot is going on
around the use of COM in PB lately, i release this as a "work in progress".
It is not finished, but still some of the sections are done and contain useful information.
The intention is to one day have a set of tutorials covering everything COM/PB
related from the basics to the very advanced stuff. (thats why this is called "Part 1")
I can really not make any promises on this though as it might take forever.

The tutorial is aimed at using the PB Interfaces to access COM objects,
but it should also be of use to those that just want to use ts-soft's library.

Get it here: http://freak.purearea.net/help/COMTutorial.pdf

Comments are welcome.
If you find any spelling mistakes you can keep them, but you may not sell them for profit ;)

btw, if somebody with good COM knowledge wants to continue my work, i can provide the LaTeX source for the tutorial.
quidquid Latine dictum sit altum videtur
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Re: COM Tutorial (work in progress)

Post by Dare »

freak wrote:If you find any spelling mistakes you can keep them, but you may not sell them for profit
:lol:


Thanks for this Freak!
Dare2 cut down to size
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

Great stuff. I'm going to read through it right now.

Thanks freak. 8)
I may look like a mule, but I'm not a complete ass.
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

Hi Freak!

Drop everything else! Do the "to do" bits!

This is great. Written at a level I can get my head around. I am only on page 8 of the doc and I have already had a couple of "aha" experiences.

Appreciate this big time.
Dare2 cut down to size
MrMat
Enthusiast
Enthusiast
Posts: 762
Joined: Sun Sep 05, 2004 6:27 am
Location: England

Post by MrMat »

Nice guide, thanks Freak!
Mat
rsts
Addict
Addict
Posts: 2736
Joined: Wed Aug 24, 2005 8:39 am
Location: Southwest OH - USA

Post by rsts »

Dare wrote:Hi Freak!

Drop everything else! Do the "to do" bits!

This is great. Written at a level I can get my head around. I am only on page 8 of the doc and I have already had a couple of "aha" experiences.

Appreciate this big time.
ditto - except the "Drop everything else!" part, if you're close to a 4.03 for windows :)

cheers
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 »

thanks fr34k
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

[Registered PB User since 2006]
[PureBasic 6.20][SpiderBasic 2.2]
[RP4 x64][Win 11 x64][Ubuntu x64]
Konne
Enthusiast
Enthusiast
Posts: 434
Joined: Thu May 12, 2005 9:15 pm

Post by Konne »

That is the best thing I ever read about COM. Wow, please replace the ToDo stuff.

Thx very much!
Apart from that Mrs Lincoln, how was the show?
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

You know what we need now, what with all these fab COM resources coming our way: a separate COM forum! :wink:

hehe.

(This is not my idea; Dare put me up to this! Well, at least I'm sure that he would have done given enough time! :twisted: )
I may look like a mule, but I'm not a complete ass.
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 »

@srod
We have a chance if egrid5.ocx was finished :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
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Post by srod »

ts-soft wrote:@srod
We have a chance if egrid5.ocx was finished :wink:
:lol:

It's not that I wouldn't know how to finish egrid5.ocx as it is more a case of not knowing where to start!

Besides, I'n not convinced actually creating ocx's is a worthwhile use of one's time. Sure it's very useful to be able to tap into the wealth of such controls lying around, but for me COM is more useful for mixing it with the Windows shell etc. Everything else can be done with good old PB and a moderate dose of sleeve rolling, brow beating, book trawling, and if that fails; MSDN etc.

Ah stuff it, I'll just ask netmaestro and sparkie! :wink:
I may look like a mule, but I'm not a complete ass.
techjunkie
Addict
Addict
Posts: 1126
Joined: Wed Oct 15, 2003 12:40 am
Location: Sweden
Contact:

Post by techjunkie »

Great stuff! and very professional looking! :D
Image
(\__/)
(='.'=) This is Bunny. Copy and paste Bunny into your
(")_(") signature to help him gain world domination.
Dare
Addict
Addict
Posts: 1965
Joined: Mon May 29, 2006 1:01 am
Location: Outback

Post by Dare »

srod wrote:You know what we need now, what with all these fab COM resources coming our way: a separate COM forum! :wink:

hehe.
:)

srod wrote:(This is not my idea; Dare put me up to this!)
:shock: Mind control works! :shock:


Actually I just instantiated an instance of "Nag_Freak_Incessantly" in the "WeWannaComBoard" class.


srod wrote:Ah stuff it, I'll just ask netmaestro and sparkie! :wink:
:lol:
Dare2 cut down to size
SFSxOI
Addict
Addict
Posts: 2970
Joined: Sat Dec 31, 2005 5:24 pm
Location: Where ya would never look.....

Re: COM Tutorial (work in progress)

Post by SFSxOI »

freak wrote: Comments are welcome.
If you find any spelling mistakes you can keep them, but you may not sell them for profit ;)
Darn! I had a buyer all lined up for the spelling mistakes too. :)

I learned more about COM from your tutorial then i've learned from reading the forums (except for your TODO parts :))...I sure wish you would continue its development. You have a good style, clean, straight forward and to the point, and from your writing its seems you have a natural gift for explaining things simply and helpfully. Please consider continuing this great (and for me - invaluable) tutorial.

Thank You freak :)
Post Reply