Solved

How to place Delphi Button on VC++ CDialog?

Posted on 2000-03-09
3
269 Views
Last Modified: 2010-04-04
I'm trying to use Delphi GUI components wrapped up in a DLL from my VC++ application.

I've managed to get a Delphi Form to show up on the VC++ app, but was not able to get a Delphi button onto my VC++ CDialog box.

I get an access violation when I do this:
(In the Delphi DLL)
  TheButton = new TButton( ParentWindow );

where ParentWindow is the CDialog's m_hWnd member;

Anyone got some example code?

Chris
0
Comment
Question by:chrisyap
  • 2
3 Comments
 

Author Comment

by:chrisyap
ID: 2599800
Umm...I'm actually using C++ Builder, not Delphi for this one... they're so similar it slipped my mind there.
0
 
LVL 4

Accepted Solution

by:
Radler earned 200 total points
ID: 2620506
Hi chrisyap.

I believe that the most easy way is make a activex, see how make one using Delphi documentation.
After this import the activex and use like a component control at VC++.

Good luck, Radler.
0
 

Author Comment

by:chrisyap
ID: 2626404
Hi Radler,

Have since been able to do what I wanted. I already knew I could do it with ActiveX, which might be the way to go.

Thanks,
Chris
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

948 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

22 Experts available now in Live!

Get 1:1 Help Now