PlanetSquires Forums

Please login or register.

Login with username, password and session length
Advanced search  

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

Petrus Vorster

  • FireFly3 Registered User
  • Senior FireFly Member
  • *
  • Posts: 346
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

  • FireFly3 Registered User
  • Master FireFly Member
  • *
  • Posts: 2735
    • José Roca Software
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

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

Thanks Jose!!
Logged

Petrus Vorster

  • FireFly3 Registered User
  • Senior FireFly Member
  • *
  • Posts: 346
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ínguez Latorre

  • FireFly3 Registered User
  • Little Newbie FireFly
  • *
  • 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

  • FireFly3 User
  • Junior FireFly Member
  • *
  • Posts: 57
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

  • FireFly3 Registered User
  • Master FireFly Member
  • *
  • Posts: 2735
    • José Roca Software
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ínguez Latorre

  • FireFly3 Registered User
  • Little Newbie FireFly
  • *
  • 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