Solved

Some ActiveX Questions. . .

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

776 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