spinettaro / delphi-event-bus

Delphi Event Bus (for short DEB) is an Event Bus framework for Delphi
Apache License 2.0
466 stars 110 forks source link

Error Undeclared TEventBusFactory #49

Closed conectvideo closed 3 years ago

conectvideo commented 3 years ago

Hi Guys,

I try use but error [dcc32 Error] EventBus.pas(272): E2003 Undeclared identifier: 'TEventBusFactory'

Show in unit Eventub

function GlobalEventBus: IEventBus; begin Result := TEventBusFactory.GlobalEventBus; end;

The error is on my project because i do a pompile from your samples and no show errors

wxinix commented 3 years ago

So you have EventBus.Core.pas on search path or part of the project?

On Wed, Dec 16, 2020 at 8:17 AM Mauricio Abreu notifications@github.com wrote:

Hi Guys,

I try use but error [dcc32 Error] EventBus.pas(272): E2003 Undeclared identifier: 'TEventBusFactory'

Show in unit Eventub

function GlobalEventBus: IEventBus; begin Result := TEventBusFactory.GlobalEventBus; end;

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/spinettaro/delphi-event-bus/issues/49, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABISKGDDYQBEBQSYVRI5BETSVCXOFANCNFSM4U57BKNA .

conectvideo commented 3 years ago

Yes

[cid:image001.png@01D6D396.637A1A70] [cid:image004.png@01D6D396.6BD69B30]

Enviado do Emailhttps://go.microsoft.com/fwlink/?LinkId=550986 para Windows 10

De: Wuping Xinmailto:notifications@github.com Enviado:quarta-feira, 16 de dezembro de 2020 10:25 Para: spinettaro/delphi-event-busmailto:delphi-event-bus@noreply.github.com Cc:Mauricio Abreumailto:conectsolutions@hotmail.com; Authormailto:author@noreply.github.com Assunto: Re: [spinettaro/delphi-event-bus] Error Undeclared TEventBusFactory (#49)

So you have EventBus.Core.pas on search path or part of the project?

On Wed, Dec 16, 2020 at 8:17 AM Mauricio Abreu notifications@github.com wrote:

Hi Guys,

I try use but error [dcc32 Error] EventBus.pas(272): E2003 Undeclared identifier: 'TEventBusFactory'

Show in unit Eventub

function GlobalEventBus: IEventBus; begin Result := TEventBusFactory.GlobalEventBus; end;

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/spinettaro/delphi-event-bus/issues/49, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABISKGDDYQBEBQSYVRI5BETSVCXOFANCNFSM4U57BKNA .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/spinettaro/delphi-event-bus/issues/49#issuecomment-746282014, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACIO2M2N4VPRLD52GEMB54LSVCYMNANCNFSM4U57BKNA.

wxinix commented 3 years ago

TEventBusFactory is defined in EventBus.Core.pas, if the compiler cannot find it, then you must have mixed old versions of event bus with the latest. Probably you might want to download the latest repo again.

conectvideo commented 3 years ago

Ok thanks its everything is ok now.

Enviado do Emailhttps://go.microsoft.com/fwlink/?LinkId=550986 para Windows 10

De: Wuping Xinmailto:notifications@github.com Enviado:quarta-feira, 16 de dezembro de 2020 10:44 Para: spinettaro/delphi-event-busmailto:delphi-event-bus@noreply.github.com Cc:Mauricio Abreumailto:conectsolutions@hotmail.com; Authormailto:author@noreply.github.com Assunto: Re: [spinettaro/delphi-event-bus] Error Undeclared TEventBusFactory (#49)

TEventBusFactory is defined in EventBus.Core.pas, if the compiler cannot find it, then you must have mixed old versions of event bus with the latest. Probably you might want to download the latest repo again.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/spinettaro/delphi-event-bus/issues/49#issuecomment-746304187, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ACIO2M2MUCCOXQTAO5SFQQTSVC2UJANCNFSM4U57BKNA.