Click here to Skip to main content
14,980,532 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I want to export an inherited class from CListCtrl (C++ MFC class) as ActiveX control. Is it possible? I read so many articles related to ActiveX but nothing useful for the same.

Please help
Posted
Updated 24-May-11 1:18am
v2

1 solution

it's certainly possible, take a look at http://msdn.microsoft.com/en-us/library/e73ffa52(v=vs.80).aspx[^]

You'd need to bolt your listctrl into a COleControl and use a COleControlModule instead of a CWinApp
   
Comments
GgAben 24-May-11 8:21am
   
can you suggest any sample code? i am not aware of the MFC related coding, i am a .NET programmer. Here i want to export a vc++ control and need to use it in .NET.
barneyman 24-May-11 18:49pm
   
have a look at http://www.codeproject.com/KB/buttons/mfc2ocx.aspx

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