I have an application that loads “aaa.dll”. “aaa.dll” loads two other dlls “bbb.dll” and “ccc.dll”.
aaa.dll is a third party dll not written by myself. But bbb.dll and ccc.dll are written by me.
Is there any way for bbb.dll and ccc.dll to communicate with each other? Pointing to any resource will be very helpful.
Type of communication: I need to send a state as set or not from bbb.dll to ccc.dll.
Thanks everyone. LoadLibrary()/GetProcAddress did the trick. I wanted to ensure bbb.dll doesn’t load a second copy of ccc.dll. Also Interprocess Communication seems to be overkill for what I needed was in-process communication.
Thanks everyone again.
ccc.dll should export a ‘SetState’ function. bbb.dll could then call said function whenever it needs to. You’ll need to link bbb.dll to ccc.dll, either statically or via LoadLibrary/GetProcAddress.