Implementing IDispatch::GetIDSOfNames
-
I need to implement IDispatch::GetIDSOfNames without creating type library, i.e. I need to return certain ID for certain name. How??
-
I need to implement IDispatch::GetIDSOfNames without creating type library, i.e. I need to return certain ID for certain name. How??
You must implement your version of GetIDsOfNames and correlate it with Invoke. Also you must implement the GetTypeInfoCount and GetTypeInfo to return E_NOTIMPL. And last, you should describe your interface as empty interface, derived from IDispatch. With best wishes, Vita
-
You must implement your version of GetIDsOfNames and correlate it with Invoke. Also you must implement the GetTypeInfoCount and GetTypeInfo to return E_NOTIMPL. And last, you should describe your interface as empty interface, derived from IDispatch. With best wishes, Vita
Yes, thanks, but can I ask some more about memory management. How to allocate memory in IDispatch::GetIDSOfNames implementation? (hich function is needed?)
-
Yes, thanks, but can I ask some more about memory management. How to allocate memory in IDispatch::GetIDSOfNames implementation? (hich function is needed?)
-
I do not see any problem with memory. GetIDSOfNames does not return any memory pointer. If you want to allocate the internal buffers's memory then you can use any strategy you want. With best wishes, Vita
Sorry, I thought I must allocate memory for rgDispId. Now all correct! P.S. Russian programmers answered me for the my last 4 questions. Hm...
-
Sorry, I thought I must allocate memory for rgDispId. Now all correct! P.S. Russian programmers answered me for the my last 4 questions. Hm...
Welcome on www.RSDN.ru, if you can read the Russian text. With best wishes, Vita
-
Welcome on www.RSDN.ru, if you can read the Russian text. With best wishes, Vita
Yeah... My nick is ADK there...