0

Threading and text file read write

Hi I have one application executable which calls DLL.. DLL has one class having only pure virtual method which is implemented into derived class present into executable project. I am passing pointer of derived class object as function call argument which apparently pushes some messages to queue declared in derived class of executable exe project. This queue is shared resource for pushing data to it and pulling same data for display to user... both pushing and pulling from queue is done in two different threads. By some limitation, unable to pass DLL function with class object pointer... Hence entire threading is disturbed. So thought of passing text file path to the DLL as argument and now can't use queue as shared resource between two threads... Can this path of text file be considered as shared resource? Can I open again and again from DLL and exe ? Read from exe where last time it reached and just read a single line each time. DLL opening file will be for pushing data into text file..

27th Aug 2021, 1:57 PM
Ketan Lalcheta
Ketan Lalcheta - avatar
1 Odpowiedź
0
Feel free to share your views... Many thanks in advance
27th Aug 2021, 1:58 PM
Ketan Lalcheta
Ketan Lalcheta - avatar