i need to instantiate com object which is .dll and on local machine in visual c++,i know that it can be done by using CoCreateInstance("clsid") ,but i am confused about declaration.so can anyone explain all steps involved? for late binding as well as early binding
- is any import/inclusion required
- how to declare com object ?
- any other steps required before createinstance (e.g CoInitialize?)
or provide any specific reference involving step by step code