Solved

Need advice about ATL, COM ActiveX

Posted on 2000-03-15
2
270 Views
Last Modified: 2013-11-25
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
Comment
Question by:trillo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 2

Accepted Solution

by:
milenvk earned 50 total points
ID: 2621360
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
 
LVL 2

Author Comment

by:trillo
ID: 2625517
Thanks
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question