I have got a requirement to add a new display method in activex. I have added that and modified the .odl. When I debugged the activex using ActiveXtestContainer, it is found that the new method is displaying fine but the control is not coming to the new method when invoked..All other existing methods were working..I have randomly given the id as 30 as uptil 29 was allocated. The code sample of the way I have tried is given..
When I checked the folder it is found that, the tlb, and res files have been created and it was by midl /mktyplib203.
Can any body help to figure out what is wrong and why its not debugging the new method added..Did I miss any thing..
Thanks In advance..
//test.odl : part of added code in .odl
[id(30)] boolean newmethod(BSTR var1,BSTR var2, BSTR var3, BSTR var4, BSTR var5);
//testpgm.cpp : part of added code in cpp
DISP_FUNCTION(testcontrl, "newmethod", newmethod, VT_BOOL, VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR)
BOOL testpgm::newmethod(LPCTSTR var1,LPCTSTR var2,LPCTSTR var3,LPCTSTR var4,LPCTSTR var5)
//testpgm.h : part of added code in h
dispidnewmethod = 30L