Avoiding a circular reference

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
 
T

Tom Shelton

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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top