Questions tagged [com-interface]

33 questions
0
votes
0 answers

Why not have access to the element?

Here is my code: #import "C:\...\.....\....tlb" using namespace std; int main() { HRESULT hr = CoInitialize(NULL); _ApplicationPtr myApp("InDesign.Application"); DocumentPtr myDoc = myApp->ActiveDocument; SwatchesPtr mySwatches…
Nindzzya
  • 1
  • 4
0
votes
2 answers

How to get the detector information from the COM interface of VISSIM

How can I get the state of the detector from the COM interface of VISSIM?
Ben
  • 15
  • 4
-4
votes
2 answers

Effect of Deleting a com interface pointer

I am debugging a piece of code suspecting memory leaks in com objects. Structure of the code is something like below: Some method: Create a new instance of a com object into com smart ptr. Get its interface pointer, Addref and add it to a…
Ron
  • 24,175
  • 8
  • 56
  • 97
1 2
3