Click here to Skip to main content
15,887,302 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi - I am writing a (activex mfc c++) and use it in a (dialog box mfc c++) in (visual studio 2010).

- in first try , i added one DISPATCH_METHOD like : void firstfunc();
in (activex mfc c++) and i added (activex mfc c++) in container (dialog box mfc c++) by resource designer and used firstfunc() in dialog box very easy.

- in second try, i added another DISPATCH_METHOD link : void secondfunc();
in (activex mfc c++) and i had Forecast for use this function in container (dialog box mfc c++) like fistfunc() , but it was not exist in container (dialog box mfc c++).

-My question is = how can i force the visual studio to refresh (IDispatch wrapper class) for adds my changes in the activex to (IDispatch wrapper class)?

What I have tried:

I rename activex control and Added it again in Container(dialog box mfc c++) and (IDispatch wrapper class) was generated again.
but i don't think it be a good solution for force refresh the wrapper class.
Posted
Updated 24-Apr-16 23:51pm

1 solution

I found a stupid solution for this problem.
In .vcxproj file you can see lines below:

<pre lang="HTML"> <projectextensions>
<visualstudio>
<userproperties resource_file="MyApp.rc" _x007b_c2569ef0-cf7b-494c-9526-5058e1dd9465_x007d_="CMyctrl1" />
</visualstudio>
</projectextensions></pre>

and you must delete
_x007B_C2569EF0-CF7B-494C-9526-5058E1DD9465_x007D_="CMyctrl1"

and you must delete activeX control from gui .
and you must delete variable of activeX control and delete wrapper.
and you must compile ActiveX and Add it in Gui and create variable for it by wizard.


after create variable by wizard you can see wrapper re generated again.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900