We help IT Professionals succeed at work.

custom controls

sa9813
sa9813 asked
on
244 Views
Last Modified: 2010-04-15
I'm using borland c++ 5.0, I guess it works something like this in vc++ to, I have noticed that I can use custom controls in the resource editor when I create dialogs. How are these controls implemented. When trying to add controls I have to add a path to a .dll so I guess they are implemented in a .dll but what I wonder is how...any good resource on the net or does someone have an easy explanation? Maybe an example?
Comment
Watch Question

Commented:
A Custom Control is an ActiveX Control that is an OCX and an OCX is a DLL with some special functions.
For example to use such a DLL you don't need to have the .H file because all information about the functions and how to call them is inside the OCX.

Using an OCX with VC++ - I don't know BC - you don't need the path to a DLL.
Using MFC and Class wizard you only have to add a member variable to the dialog class. Class wizzard then will create a wrapper class for the DLL(OCX)

You can use the wrapper functions to call the functions inside the Control

Author

Commented:
a custom control does not have to be a active x, there are other types of custom controls..or?

Commented:
I don't know other kinds of Custom Controls.

There also are common controls for file,printer, color dialogs and so on.

This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.