Solved

Some ActiveX Questions. . .

Posted on 2000-03-08
1
215 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
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…
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…
Suggested Courses

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