Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How to place Delphi Button on VC++ CDialog?

Posted on 2000-03-09
3
Medium Priority
?
279 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 400 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

719 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