Link to home
Start Free TrialLog in
Avatar of sa9813
sa9813

asked on

custom controls

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?
Avatar of Norbert
Norbert
Flag of Germany image

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

Avatar of sa9813
sa9813

ASKER

a custom control does not have to be a active x, there are other types of custom controls..or?
I don't know other kinds of Custom Controls.

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

ASKER CERTIFIED SOLUTION
Avatar of 3rsrichard
3rsrichard

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial