Avoiding a circular reference

  • Thread starter Thread starter Carl Ganz
  • Start date Start date
C

Carl Ganz

I have an EXE that calls a method in a DLL. This DLL runs an import
process and needs to provide feedback to a progress bar on a Form in
the EXE. I can set a reference to the DLL from the EXE so the EXE can
call the import method but a circular reference is caused when I
attempt to set a project reference to the EXE project from the DLL
project. I now have a DLL which cannot get a reference to the Form in
the EXE to update the progress bar. The import methods needs to be in
a DLL as it will be called by other apps

There's probably something simple I'm missing here. Does anyone have
any ideas on this?

Thanks

Carl
 
I have an EXE that calls a method in a DLL. This DLL runs an import
process and needs to provide feedback to a progress bar on a Form in
the EXE. I can set a reference to the DLL from the EXE so the EXE can
call the import method but a circular reference is caused when I
attempt to set a project reference to the EXE project from the DLL
project. I now have a DLL which cannot get a reference to the Form in
the EXE to update the progress bar. The import methods needs to be in
a DLL as it will be called by other apps

There's probably something simple I'm missing here. Does anyone have
any ideas on this?

Thanks

Carl

Raise a progress event from the dll. let the clients handle it...
 
Back
Top