Click here to Skip to main content
16,018,006 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am not sure about older VS versions, but VS2022 has option to enable 'ActiveX Controls' under Advanced features while creating the MFC application project.

I have an old C++ MFC app VS project.
Is there a way to know if the 'ActiveX Controls' option was selected while creating that particular project?

What I have tried:

I tried finding in property pages of the project; but unable to figure out anything.
Posted
Updated 25-Sep-22 21:39pm
Comments
Shao Voon Wong 25-Sep-22 23:10pm    
Check if AfxOleInit() and AfxEnableControlContainer() are called (for ActiveX controls enablement).

https://learn.microsoft.com/en-us/cpp/mfc/reference/ole-initialization?view=msvc-170
Saurabh Ashtaputre 27-Sep-22 5:43am    
Thanks Shao for the quick response.
The project in concern has AfxEnableControlContainer() called but not AfxOleInit().
What shall I depict from this?

1 solution

Create 2 projects with the wizard, but one with and one without 'ActiveX Controls' activated. Than you see the difference.
Shao is right, but in the resource file is also some silly macro value for that. And maybe some other linking settings.
 
Share this answer
 
Comments
Saurabh Ashtaputre 27-Sep-22 5:44am    
Thanks KarstenK.
I shall try the input given by you.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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