Solved

Creating OCX for use in Excel etc.

Posted on 2002-04-28
4
143 Views
Last Modified: 2010-04-04
Does anyone have any good references on writing OCX's in Delphi?

I am trying to write an OCX control that I can then use in Excel.  I thought it'd be easy.  I follow the basic process of ...
1. Create VCL control
2. Wrap as an ActiveX control
3. Register it
... but the control does not appear in the list when I do an "Insert | Object" in Excel.

Any ideas?

(p.s. Using D6)
0
Comment
Question by:Hamlet081299
4 Comments
 
LVL 44

Expert Comment

by:bruintje
ID: 6976811
Hi Hamlet,

reading from what you did it should work like that

maybe you've to choose insert object and then do a search for the component

why it doesn't appear in the list i don't know, but i use a control in an excel application that was registered on the PC and was not visible in the list of objects. i looked on disk and added it that way and it worked just fine

HTH:O)Bruintje
0
 
LVL 9

Expert Comment

by:ginsonic
ID: 6977392
listening
0
 
LVL 5

Author Comment

by:Hamlet081299
ID: 6979076
Okay ... I've figured out where I'm going wrong.

It's the way I was trying to insert the object.

Using the menu "Insert | Object" does not work, but instead do this...

1. View | Toolbars | Control Toolbox

2. Click on the "More Controls" button.

3. Select the control.

I'll leave this question here for others who are struggling with this one.
0
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
ID: 6979121
200 points refunded, items closed by moving it to the PAQ at zero points where it will help others.  Thanks for posting the solution you discovered on your own.
Moondancer - EE Moderator
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

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

Suggested Solutions

Title # Comments Views Activity
Communication Between RC4 Delphi <-> PHP 3 123
Help on project with Soap 10 57
Convert GUI app into console app for Win32 Env 5 109
firemonkey keyboard covers the controls 1 37
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

840 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