Solved

Some ActiveX Questions. . .

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Folder Comparison 12 52
ORA-01403: no data found 43 83
while loop over for loop 7 79
MaxSpan challenge 9 67
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…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now