Click here to Skip to main content
15,906,463 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hello All,
Greate techonology using dll for big project implementation but so hard to implement with lots of milestone problem.

New morning my new DLL problem!!!!
__________________________________________________________________________________

As i implemented dll fro compilation some code.
Like i create a .cpp and .h file as per user selection and compile i with GNUIM g++ and c++ compiler.
Things work greate!!!
but problem arised when i consern Progressbar.
That is As compilation progress i increase progressbar as per compilation files.
but compilation has saparate maitain dll so how i increase progress bar of main calling project as per compilation of files in DLL project.
___________________________________________________________________________________
ALL related HELPS ,LINKS,CODE BLOCK are welcomes
Posted

 
Share this answer
 
Comments
[no name] 26-Mar-11 4:32am    
Thanks for reply but dude not that ways!! A deferent approch.
This is a problem of inversion of control, see http://en.wikipedia.org/wiki/Inversion_of_control[^].

In your case the problem is: you DLL provides some resource to be used in a host application. If your application is the only source of causality, you cannot solve your problem, because only your host application triggers a call. You need inverted situation: your DLL needs to call something which triggers the event presenting a step in the host's UI. The solution is a callback method. A class in a DLL should accept callback and call this callback (let's say "OnProgressStep"); a host application should provide a callback code.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900