| Версия для печати темы
Нажмите сюда для просмотра этой темы в оригинальном формате |
| Форум программистов > C/C++: COM/DCOM/ActiveX/ATL/CORBA > Get ProgID or CLSID if i have only p to some IDisp |
| Автор: vippavlo 29.10.2007, 14:16 | ||
| Извините, что на англ, а то писал на англ форуме... не захотелос переводить How i can get ProgID or CLSID if i have only pointer to some IDispatch interface. For example: CComPtr< ISome > spSome; I was trying to do the next:
But it doesn't work in variant, when i have in type lib more then 1 coclass I can to do this using type lib, but i want to find another way for solving this problem. If it's exists — please tell? how i can to do this |
| Автор: zkv 29.10.2007, 16:15 |
| Автор: vippavlo 29.10.2007, 16:45 | ||
Я его задал, кто может прочитать, тот прочитаєт ;) Добавлено через 3 минуты и 55 секунд I was receive a proposition to use IProvideClassInfo, but not all objects implement this interface. I need reliable method wich will be suitable for all objects! Please, help!!!! |
| Автор: Cycle 2.12.2007, 17:52 |
| Судячи з опису інтерфейсу IDispatch в MSDN, то ніяк. Извините что не на русском. |