Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
4
Erster Beitrag:
vor 8 Jahren, 5 Monaten
Letzter Beitrag:
vor 8 Jahren, 5 Monaten
Beteiligte Autoren:
Piet van Zanten, Gus, Andres Sanchez

WD12 Component vs Library (What should I use ?)

Startbeitrag von Andres Sanchez am 23.04.2009 23:12

Hi Everyone:

I know this is being covered in the WinDevCon 2009, but I cannot wait.

Anyone using components or Libarary, to encapsulate a specific set of routines, that I probably want in every of my projects, and I would like it to be quick and easy to add to a project?

Anyone knows the difference between components and libraries ?

Thanks

Andres Sanchez

Antworten:

Hi Andres,

I have used libraries before components were introduced and never stopped using them.
I love the simplicity of the concept, so I never bothered to look into components.
Libraries are simple, just load and unload them as needed. They can contain anything you want.
As I understand components are more suitable for sharing between different applications and commercial sharing between developpers.

Regards,
Piet


von Piet van Zanten - am 24.04.2009 12:16
Hello Piet:
I think the same..However, I was wondering how "easy" would be selecting the components (windows, reports, etc) to be included into each library when the project has more than 100 elements..
I mean, each time you create the library you will go through a table in order to select which components to include...And you need to go through each component in order to check it if you want it included. Do you found a better way to do this?
Thanks

Gus

von Gus - am 24.04.2009 16:22
Hi Gus,

I use different folders for different libraries. In the selection window you can easily select all files from one folder (scroll to the right and sort on the physical file location)
For the executable I select everything that is in the root. For the different libraries I use the .wdu file and edit it if necessary. I wrote a small application to "clean up" and sort the .wdu files.
I regret that PCsoft kind of abandonned the library concept in favor of the component. As I said, I would prefer some kind of batch library generation based on a script.

Regards,
Piet


von Piet van Zanten - am 24.04.2009 16:47
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.