Solved

Some ActiveX Questions. . .

Posted on 2000-03-08
1
221 Views
Last Modified: 2013-11-20
I have two questions conerning ActiveX programming. . .

1. I need an "=" operator for my control. How do I implement this?

2. I need to have an AddObject method in my control. How can I implement it to allow me to pass something like a CBitmap?

Thanks.
0
Comment
Question by:maknight
[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
1 Comment
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 total points
ID: 2597174
1. You cannot write an = operator for a control. COM does not allow operator overloading. In fact, COM does not have any operators.

2. CBitmap is not a COM object, which means you cannot easily pass it to COM. However, you can create a COM object whose purpose is to maintain a pointer to a CBitmap and whose job is to wrap around the CBitmap. I do not recommend you do this because there already is an interface that does something you want and it is called IPicture.
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

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

If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

615 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