Original Post
Hi, in my program, I have a main thread doing underline logic and another thread logs decisions of logic to reduce the performance impact of file writing. However my problem is How can I pass my string of message from the main thread to log thread? I was trying to use PostThreadMessage, but the parameter in the PoastThreadMessage only takes a pointer, which mean I have to use "new" to create my string and delete it in a different thread. Any suggestion will be appreciated.