Solved

How to place Delphi Button on VC++ CDialog?

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

706 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

15 Experts available now in Live!

Get 1:1 Help Now