Re: DLL or OCX?
From: Saga (antiSpam_at_somewhere.com)
Date: 08/26/04
- Next message: Saga: "Re: Major, minor, revision, build"
- Previous message: Tim Baur: "Re: Major, minor, revision, build"
- In reply to: Marty: "DLL or OCX?"
- Next in thread: Karl E. Peterson: "Re: DLL or OCX?"
- Reply: Karl E. Peterson: "Re: DLL or OCX?"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 26 Aug 2004 15:01:15 -0500
A "normal"application is a standard EXE. The application uses OCXes
and DLLs, which are components. These are used by other apps, and are
not applications by themselves.
OCX - geared towards GUI components, like grids, textboxes, combos,
lists, and so on. So if you need a custom made user interface component,
make an OCX.
DLL - geared towards non-displayable components. If you need to do
some processing, having nothing to do with GUI components, then you
can place your code in a DLL.
Again... first you select the kind of app you want, like the Standard
EXE
mentioned above, on the form you place user interface (UI) components.
If
you need a UI component that is not available, then you make an OCX
that implements the component you want. A simple example. You need to
capture a special number that has to be captured in three textboxes.
This
number will be captured at various points in your app. So instead of
placing
three textboxes evryplace you need to capture this number, you build an
OCX
that contains these three textboxes, along with any validationor
preprocessing
code that is necessary. Once the OCX is built, you can insert it as many
times
as you need. The OCX by itself can't do much, but it can become an
important
support device in your app. Same with the DLL, except that the DLL only
contains code and will not be used as a UI component.
If your app needs to do some processing then you build code to do the
job.
If you see that this code will be used often in other projects, then you
can
make DLL and place the code there. Now all you have to do is reference
the DLL and it is ready to be used.
I hope this helps
Best of luck in your endeavors
Saga
"Marty" <reply@to.forum> wrote in message
news:3oqXc.46291$jZ5.41656@clgrps13...
> Hi,
>
> If my goal is to make my app as fast as possible should I use an OCX
or
> a DLL ?
>
> I'll make it as an OCX or a DLL and I don't know wich is faster. Is
> there one that, at run time, is independant from the application main
> thread? So it won't get delayed by the rest of the application?
>
> Thanks
>
> Marty
- Next message: Saga: "Re: Major, minor, revision, build"
- Previous message: Tim Baur: "Re: Major, minor, revision, build"
- In reply to: Marty: "DLL or OCX?"
- Next in thread: Karl E. Peterson: "Re: DLL or OCX?"
- Reply: Karl E. Peterson: "Re: DLL or OCX?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|