Desktop folder on WIn

Started by Petrus Vorster, February 26, 2017, 07:38:27 AM

Previous topic - Next topic

Petrus Vorster

Hi all

I saw this once, but cant find it.
How do you locate the Desktop folder from your program.

I need to create a TXT file to the Desktop to upload numbers to an SMS tool.

May be something stupidly simple i am overlooking again. :-[
-Regards
Peter

José Roca

You can #include "AfxShell.inc" and call the function AfxGetDesktopFolder.

Petrus Vorster

-Regards
Peter

Petrus Vorster

So Simple. Thanks for your work Josè!!
-Regards
Peter

Francisco Dom

Jose,
Just curiosity, what "Afx" prefix you use for so many of your includes stands for?

Quote from: Jose Roca on February 26, 2017, 11:30:15 AM
You can #include "AfxShell.inc" and call the function AfxGetDesktopFolder.

Best regards.
Fran

Pierre Bellisle

Hi Francisco,

My vote goes to "Application Framework Extensions".  :-)

Pierre

José Roca

Yes, Pierre is right. Borrowed from Microsoft C++.

"Application Framework eXtensions", to be exact.

Francisco Dom

Pierre, Jose,

Thanks a lot.
I don't like to memorize acronyms without knowing its meaning.

Best regards.
Fran