Bhavesh Vaghela wrote:
I am not able to find following equivalents of java in COM
:confused::confused: Java is a programming language, but COM is a technique that can be implemented in several languages e.g. C/C++, VB, Java etc. It doesn't make sense to compare those two.
Bhavesh Vaghela wrote:
Defining Constant fields
I don't get what you mean by that, but perhaps a look at some IDL documentation[^] would help.
Bhavesh Vaghela wrote:
Defining and calling parameterizing constructor
In COM you don't have a "constructor", you have a class factory that creates the instance which is created and called when the client calls ::CoCreateInstance(...). Technically you can have different constructors and edit the class factory to make use of them, but there's really no point. You should use persistent storage and monikers instead to let the server know how it should initialize itself.
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"High speed never compensates for wrong direction!" - unknown