Hi,
I am doing C programming on Windows.
I have an application that uses two DLLs. I want the application and the DLLs to generate a single log file.
I open the log file in the application and then pass the file pointer to the DLLs. However, in the DLLs, when I do fprintf with the file pointer, the application crashes with an access violation.
Is it not possible to share file pointers between DLLs and applications?
Regards,
Dhruv
I am doing C programming on Windows.
I have an application that uses two DLLs. I want the application and the DLLs to generate a single log file.
I open the log file in the application and then pass the file pointer to the DLLs. However, in the DLLs, when I do fprintf with the file pointer, the application crashes with an access violation.
Is it not possible to share file pointers between DLLs and applications?
Regards,
Dhruv