Go Premium for a chance to win a PS4. Enter to Win

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

Need advice about ATL, COM ActiveX

Hi!

I'm developing an App in VB. I used also VB to make some user controls (ActiveX) based on Windows classes (Edit, Combo...).
This is what I tried.
1) I Made the controls and compile in a OCX. Results: The client that uses my OCX crashes (although it does not crash when debugging with a test App)
2) I added the controls as 'userControls' in my project. Results: Extra overhead, uses a lot of memory and it's not easy to port to other projects.

I decided to build these controls in VC++. I've been reading MSDN and articles about available technologies and i realize I have several options: using the ATL Wizard, MFC ActiveX Wizard...
What would you recommend? The only thing I must do is create controls, e.g a TextBox, based on the Windows' Edit class, and add some more custom properties?
Thanks
0
trillo
Asked:
trillo
1 Solution
 
milenvkCommented:
It really depends on your hands on experience with C++. In general developing ActiveX controls with MFC is easier compared to ATL, because you do not have to deal with so many internals of the COM programming and you can use MFC goodies to develop user interface. On the other hand ATL has lighter overhead and is more powerful if you want to implement custom interfaces. MFC wizard support is also closer to the VB terms of thinking when it comes to ActiveX objects.
I would sugges that you try to implement your control in MFC using the Class Wizard to add properties and methods to your control.
0
 
trilloAuthor Commented:
Thanks
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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