Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 1
    Thnks a lot. It gave me some idea, however I am not 100% sure how to implement it in C. "Have a function in your DLL that the .exe can call, passing in a function pointer to your Log function. Inside the DLL, store that function pointer and use it when you need to log things." Could u plz write a code snippet for better understanding Commented Sep 13, 2011 at 15:58
  • @Shanty: added some example code. Probably won't work as-is with dynamic linking - depends on your platform, but you'll get the idea. (Works just fine if compiled statically.) Commented Sep 13, 2011 at 16:09
  • @Shanty: If this answer solved your problem, accept it. Reputation is the currency you spend to get answers on SO. Commented Sep 13, 2011 at 18:11