Creating Custom ActiveX Controls in Visual C++
CoderSource.net
Creating Custom ActiveX Controls in Visual C++ - Article by shours
Level: BeginnerType: Article
Rating: 4Page: 3 of 3

Date: 1/21/2006 12:00:00 AM

Environment: Windows, Visual Studio

Now!!! Build the project.

And run-it. You will be ask for an exacutable to play the ActiveX. Let’s use the ActiveX Control Test Container

In the ActiveX Control Test Container click “insert new control” from Edit menu and choose from the list our ActiveX (named “EvolActiveXExample1 Control”). You will be seeing a window like this:

From Control menu, “Invoke methods” will bring you to this window.

By changing the Parameter Value to 2 then clicking Set Value and Invoke, you will notice that the background color of the ActiveX has changed.

When you double click the left button you will be seeing in the bottom of the screen:

EvolActiveXExample1 Control: Click

Notes for advanced readers!!!

Using regedit search “EvolActiveXExample1 Control” in the registry. Find for example the uuid. Now compare the uuid with the ones in EvolActiveX.odl.

For examples I have found this 395B…. This uuid is unique, so yours will be different. One information kept in registry is the path to the ocx. To learn more about creating an application that use custom ActiveX controls read this article: http://www.codersource.net/published/view/304/using_custom_activex_control_in_mfc.aspx

By: Dragos BREZOI.


Attachments

Project Files Evol ActiveX Demo

1 2 3

You Can Rate this Article, if you are Logged In      
 

More Links from CoderSource.net:

 
Refer to a Friend:

Your Details:

Name:     e-mail:

Friend Details:

Name:    e-mail:    


MENU
Home
MFC 
C++
.Net
WIN32
Programming
Forum
My Articles
Add to Google
Add to My Yahoo!
Welcome to Codersource.Net Login | Register | Faq  

SEARCH
Google
 

NOTES:


Thanks for visiting our CoderSource.net. This site will be improved with more articles. Interested visitors can also submit their articles through the Submit Article link.Your article will also be published after due consideration by the editor. 

© Copyright 2003. All rights on content reserved by CoderSource.net. Contact    About Us