Retrive COM Interfaces
-
Hello. I need to retrive a all Interfaces (methods) and propertyes from a certain COM object i dont know realy where to start... I'm there aren't many sources exept for some Object Browsers but no sources X|
-
Hello. I need to retrive a all Interfaces (methods) and propertyes from a certain COM object i dont know realy where to start... I'm there aren't many sources exept for some Object Browsers but no sources X|
Hi benjamin23, OLE/COM Object Viewer gives all inofrmation about the COM object. Go to "Type Library" and double click the COM object you want, it would show you the information about the interfaces/structures that COM object has... Hope this would help you... All the best ! Cheers, Vishal
-
Hello. I need to retrive a all Interfaces (methods) and propertyes from a certain COM object i dont know realy where to start... I'm there aren't many sources exept for some Object Browsers but no sources X|
Check ITypeInfo and ITypeLib interface documentation in MSDN for reading all information programatically from the type library. http://msdn.microsoft.com/library/en-us/automat/htm/chap9_49pv.asp[^]* * *
Have a great day ahead! Regards, Sohail Kadiwala (My Blog - http://blogs.wdevs.com/sohail/[^])
-
Check ITypeInfo and ITypeLib interface documentation in MSDN for reading all information programatically from the type library. http://msdn.microsoft.com/library/en-us/automat/htm/chap9_49pv.asp[^]* * *
Have a great day ahead! Regards, Sohail Kadiwala (My Blog - http://blogs.wdevs.com/sohail/[^])
The link has been verry userful, still leavme some cuestions: supose i have an instance of "Word.Application" I dont know if ".Visible" exists as a property or even a method, the same could happen to ".WebPagePreview" it's a method but my program doesnt know that i need to retrive the collection of methods and propertyes right before i create the object, this whay i can parse for example a .txt wich contains the methods to call or the variables to set.
-
The link has been verry userful, still leavme some cuestions: supose i have an instance of "Word.Application" I dont know if ".Visible" exists as a property or even a method, the same could happen to ".WebPagePreview" it's a method but my program doesnt know that i need to retrive the collection of methods and propertyes right before i create the object, this whay i can parse for example a .txt wich contains the methods to call or the variables to set.
Hmmm.. I think you are looking for invoking/calling a method or property dynamically. With this assumption, I think the following interface will help solve your problem - IDispatch IDispatch has a method called as GetIDsOfName to which you pass the name of method and it will return you an ID. Using this ID you call another method of IDispatch, namely, Invoke. For more details please check MSDN documentation for IDispatch and its methods. I hope this helps. Let me know if you are looking for anything other than what I assumed.* * *
Have a great day ahead! Regards, Sohail Kadiwala (My Blog - http://blogs.wdevs.com/sohail/[^])