Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 280
  • Last Modified:

How to place Delphi Button on VC++ CDialog?

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
chrisyap
Asked:
chrisyap
  • 2
1 Solution
 
chrisyapAuthor Commented:
Umm...I'm actually using C++ Builder, not Delphi for this one... they're so similar it slipped my mind there.
0
 
RadlerCommented:
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
 
chrisyapAuthor Commented:
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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now