PC Review


Reply
Thread Tools Rate Thread

Avoiding a circular reference

 
 
Carl Ganz
Guest
Posts: n/a
 
      30th Apr 2008
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
 
Reply With Quote
 
 
 
 
Tom Shelton
Guest
Posts: n/a
 
      30th Apr 2008
On 2008-04-30, Carl Ganz <(E-Mail Removed)> wrote:
> 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...

--
Tom Shelton
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help avoiding a circular reference =?Utf-8?B?VGVkIE1ldHJv?= Microsoft Excel Worksheet Functions 2 6th Jul 2007 05:26 PM
Avoiding circular reference between two forms in separate projects? Kylarean Microsoft Dot NET Framework Forms 1 25th Jun 2007 11:22 AM
adding on to an existing total & avoiding a circular reference blo =?Utf-8?B?YnVrdGk=?= Microsoft Excel Misc 1 22nd Apr 2007 10:26 AM
Macro avoiding circular reference =?Utf-8?B?S2FuZ2EgODU=?= Microsoft Excel Worksheet Functions 3 15th Jun 2005 03:04 AM
Avoiding circular reference on formula Chuck W Microsoft Excel Misc 4 22nd Feb 2005 02:52 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:07 PM.