Solved

How to place Delphi Button on VC++ CDialog?

Posted on 2000-03-09
3
272 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

860 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