I'm pretty sure this has been asked before, but I couldn't find it when I searched for it. How do I return a string the same way any other windows api function does it (such as GetSystemDirectory)?

I need to pass a buffer to the dll and have the dll fill the buffer. How can I do this in vc++?

(As you can probably tell, I'm just learning c++, but I have a strong knowledge of vb)