problem in query interface
-
hi, i am writting UT code to test my module class it uses some com dll which is having dependencies with some hardware thats why its not registered in my local system. now i want to use interface having in that dll for that i am creating my own stub for that interface. now the problem is i am not able to query my interface CLSID of my interface is not in registry so please any one let me know what i will do to register CLSID of that interface? also if is there any other way to implement please let me know thanks, ashish chandrakar
-
hi, i am writting UT code to test my module class it uses some com dll which is having dependencies with some hardware thats why its not registered in my local system. now i want to use interface having in that dll for that i am creating my own stub for that interface. now the problem is i am not able to query my interface CLSID of my interface is not in registry so please any one let me know what i will do to register CLSID of that interface? also if is there any other way to implement please let me know thanks, ashish chandrakar
Have a look at the appropriate documentation[^]. You generally create a DllRegisterServer[^] entry point in your DLL and use regsvr32[^] to register it.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
hi, i am writting UT code to test my module class it uses some com dll which is having dependencies with some hardware thats why its not registered in my local system. now i want to use interface having in that dll for that i am creating my own stub for that interface. now the problem is i am not able to query my interface CLSID of my interface is not in registry so please any one let me know what i will do to register CLSID of that interface? also if is there any other way to implement please let me know thanks, ashish chandrakar
You cannot use a COM component unless it is registered on the system.
«_Superman_» I love work. It gives me something to do between weekends.
-
hi, i am writting UT code to test my module class it uses some com dll which is having dependencies with some hardware thats why its not registered in my local system. now i want to use interface having in that dll for that i am creating my own stub for that interface. now the problem is i am not able to query my interface CLSID of my interface is not in registry so please any one let me know what i will do to register CLSID of that interface? also if is there any other way to implement please let me know thanks, ashish chandrakar
Google for "Registration-Free COM" you will find lots of information, mostly by microsoft. The "trick" is done by using manifests and activation contexts. :)