-
Com
Hi,
I created one dll named test.dll using visual basic and registered using regsvr32.exe.
I used this dll in asp file as followed
set cls = server.createobject("test.class1")
and iam calling the methods using cls.methodname.
it is working fine. This is nothing COM
my doubt is what are queryInterface, AddRef and Release HOw do i use these in my applications.
If i were correct These methods will be automatically called by iis when create instance using server.createobject.
Is it possible to work directly with Queryinterface.
Thanks in advance.
-
VB does a good job of handling the COM interop for you so why would you want to do it yourself? There is no way to make direct calls to QueryInterface in native VB.
-
hi,
as long as u use VB u dun need to worry bout QueryInterface,AddRef,Release methods.The VB compilier tkaes care of all thez things.But in case u r the curious types u can take a look at thez intersting articles about IUnknown interface and the methods exposed by it and also the underlying concepts behind COM.
http://kandkconsulting.tripod.com/VB...g_tutorial.htm
http://www.geocities.com/branco_mede...ng/VB00002.htm
regds,
ashay