Saturday, April 18, 2009

COM,OLE,ActiveX

Component Object Model is something always makes me fascinate how things in the background can be complicated. Its nice to be able to show a component in VC++, VB, as well as expose to anyother scripting language like Javasciript, VBScript or even for that matter Perl, Python etc. I think java is also included with some tweaking. Now that is something called alnguage independent implementation. Though I have studied but I am incapable of writing a full tutorial out here as its tooooooooo complicated for even me to understand so why disillusion some reader. I will better point it to the original tutorials. Each time I read a tutorial it looks different from the previous. Thats just because this can be created in a number of ways as days pass by these ways also becomes more. But fortunately .NET has come and diverted most of the people's attention so not many ways are being developed these days.

So here is the reference to tutorials these links will help me as well in future, because whatever you learn here takes 2 days to read, 3 days to understand and 4 days to forget all the previous activities starting on day one. :-)

In pure and basic C.
http://www.codeproject.com/KB/COM/com_in_c1.aspx
http://www.codeproject.com/com/com_in_c2.asp
http://www.codeproject.com/com/com_in_c3.asp
http://www.codeproject.com/com/com_in_c4.asp
http://www.codeproject.com/com/com_in_c5.asp
http://www.codeproject.com/com/com_in_c6.asp
http://www.codeproject.com/com/com_in_c7.asp
http://www.codeproject.com/com/com_in_c8.asp

Now in little better readable c++.
http://www.codeproject.com/com/comintro.asp
http://www.codeproject.com/com/comintro2.asp

Did you read those, I am sure you will say phew ........ I also said so only to know that it was just the beginning.
Our verymuch beloved exportable interface(with a front visible canvas) is ActiveX.
Doing same in java will need us to write Applet which ofcourse apart from java no one else can eb use. But microsoft does things in a big way and here it goes
ActiveX in a very RAW form written in pure C++. Well ask anyone if they have heard ActiveX without MFC and ATL. damn! u didnt hear. Well i guess everybody fears that it will be so big that it cannot be done.But someone has the guts and here it comes :
http://spec.winprog.org/
http://spec.winprog.org/captcom/journal3/
http://spec.winprog.org/captcom/journal3/page2.html