0

Is this possible in C++ between two different projects ?

Hi Let's say I have a.sln which is exe project. Another is b.sln which generates DLL. I just call method from dll into exe and this is very much possible. What if I say that this method takes an object as argument and implementation in DLL sets passed object to global variable. Now control is back to exe project and after few functions call of exe project from exe, again I am calling another DLL function. Is this possible that now this DLL function implemented in DLL project use object stored in memory of last DLL function call from exe? Feel free to ask for clarification. Any pointer is helpful on this. Many thanks in advance...!

27th Aug 2021, 8:24 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
3 odpowiedzi
0
Yes , I am on visual studio IDE. And I have basic idea about the solution and project. I can definitely try implementing dummy solution with one DLL nd one exe .... My intention was to check if this (storing object from exe to DLL across different function calls ) is something some one has come across.... I was advised to implement such and I was sceptical that it would work... But yeah, will give a try.... One more question is about project and solution. In this case or any case , two different solutions for exe and DLL or single solution of two projects does not make any performance or functionality impact... Is this correct? It's just ease if we have one solution with two projects.... No other benifits of this approach... Correct ? And yes , thanks a lot for your help on this point.... To be honest , I have learnt many things from you on this logging design 😉
27th Aug 2021, 11:27 PM
Ketan Lalcheta
Ketan Lalcheta - avatar