[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

using .NET framework Component through the Dialog Editor

I am able to use all the COM components(Drag and Drop) using the Dialog editor on my MFC project using the Visual Studio .NET

But when i customize my toolbox to add .NET Framwork Components, i see the controls  added but they are "greyed out" on the Dialog editor. Hence I am unable to use any .NET Framework Component.

Please help me regarding this issue. How do i get the .net components to work?

Thanks

0
hari4130
Asked:
hari4130
1 Solution
 
AlexFMCommented:
You can do this only in managed C++ application. .NET components require .NET framework and managed host program. Create managed C++ Windows Forms application and use these components.
0
 
hari4130Author Commented:
The MFC project I have is already in the "Unmanaged form". I migrated this code from VC++6.0 to VC++ .NET.

In order to make my whole project(60 cpp files) to managed form, I would have to rewrite a large portion of the code right ??\

Is there any other way for me to use the .NET Components ? Or Do i have to stick to the COM Components only.

Please Advise..........

Thanks
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now