PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Desktop folder on WIn  (Read 1954 times)

Petrus Vorster

  • Senior Member
  • ***
  • Posts: 427
Desktop folder on WIn
« on: February 26, 2017, 07:08: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. :-[
Logged

Josť Roca

  • Guru Member
  • *****
  • Posts: 3177
Re: Desktop folder on WIn
« Reply #1 on: February 26, 2017, 11:00:15 AM »

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

Petrus Vorster

  • Senior Member
  • ***
  • Posts: 427
Re: Desktop folder on WIn
« Reply #2 on: February 26, 2017, 12:28:35 PM »

Thanks Jose!!
Logged

Petrus Vorster

  • Senior Member
  • ***
  • Posts: 427
Re: Desktop folder on WIn
« Reply #3 on: February 26, 2017, 01:56:27 PM »

So Simple. Thanks for your work JosŤ!!
Logged

Francisco Dom

  • Little Newbie
  • *
  • Posts: 10
  • FF3 User
Re: Desktop folder on WIn
« Reply #4 on: March 02, 2017, 11:45:43 AM »

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

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

Best regards.
Fran
Logged

Pierre Bellisle

  • Junior Member
  • **
  • Posts: 85
Re: Desktop folder on WIn
« Reply #5 on: March 02, 2017, 12:05:52 PM »

Hi Francisco,

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

Pierre
Logged

Josť Roca

  • Guru Member
  • *****
  • Posts: 3177
Re: Desktop folder on WIn
« Reply #6 on: March 02, 2017, 01:29:09 PM »

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

"Application Framework eXtensions", to be exact.

Francisco Dom

  • Little Newbie
  • *
  • Posts: 10
  • FF3 User
Re: Desktop folder on WIn
« Reply #7 on: March 03, 2017, 05:50:41 AM »

Pierre, Jose,

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

Best regards.
Fran
Logged