PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Petrus Vorster on February 26, 2017, 07:38:27 AM

Title: Desktop folder on WIn
Post by: Petrus Vorster on February 26, 2017, 07:38:27 AM
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. :-[
Title: Re: Desktop folder on WIn
Post by: José Roca on February 26, 2017, 11:30:15 AM
You can #include "AfxShell.inc" and call the function AfxGetDesktopFolder.
Title: Re: Desktop folder on WIn
Post by: Petrus Vorster on February 26, 2017, 12:58:35 PM
Thanks Jose!!
Title: Re: Desktop folder on WIn
Post by: Petrus Vorster on February 26, 2017, 02:26:27 PM
So Simple. Thanks for your work Josè!!
Title: Re: Desktop folder on WIn
Post by: Francisco Dom on March 02, 2017, 12:15:43 PM
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
Title: Re: Desktop folder on WIn
Post by: Pierre Bellisle on March 02, 2017, 12:35:52 PM
Hi Francisco,

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

Pierre
Title: Re: Desktop folder on WIn
Post by: José Roca on March 02, 2017, 01:59:09 PM
Yes, Pierre is right. Borrowed from Microsoft C++.

"Application Framework eXtensions", to be exact.
Title: Re: Desktop folder on WIn
Post by: Francisco Dom on March 03, 2017, 06:20:41 AM
Pierre, Jose,

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

Best regards.
Fran