Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
2
Erster Beitrag:
vor 3 Jahren, 5 Monaten
Letzter Beitrag:
vor 3 Jahren, 5 Monaten
Beteiligte Autoren:
Arie

WD19 - EnumSubElement in external component not supported?

Startbeitrag von Arie am 15.01.2015 20:59

Hi,
I'm using an external component (one from myself) in a project.
Whenever I use the EnumSubElement(sWindow) function an exception is thrown, saying it needs a window or report as the parameter

Apparently it doesn't see the objects of the external component. It only works if I use a windowname of the main executable.

The help doesn't say anything about this, so I guess right now it it just not supported (waiting for PCSoft to confirm that).
Anyone seen this before and maybe found a workaround?

Antworten:

Re: WD19 - Solved - EnumSubElement in external component not supported?

FYI
You can set the "access rights" of the component somewhere in the component description.
Then you can choose between different operating modes.

"the component will NOT access the datafiles, windows, pages and reports of the client project"
"the component will access the datafiles of the client project"
"the component will access the datafiles, windows, pages and reports of the client project"

The last option solved my issue.

I get the idea about these operating modes, but did not test them all to get the ins and outs.
In my case the client project (which loads the component) is just a simple start-application, checking for updates of my component.
This starter-app doesn't have and analysis and uses no datafiles.
The component holds everything I need. It is more or less the executable we all now of, but in a component-jacket.

von Arie - am 20.01.2015 20:58
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.