Solved

Some ActiveX Questions. . .

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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
maxBlock challenge 30 142
format the code in java 6 101
Updating statistics with error notification email in SQL server 4 110
how to split multiple lines delimiter : 8 111
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
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…
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.

827 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