0

I am writing a program in Visual Studio 2012. I am using Windows Imaging component I want to put image files for my program to use without them being resources. I want to make them download with the program when someone downloads it.

So my problem is if I specify the direct path in the program say:

C:\Users\Billy\Documents\Background. 

How would I do that without having to specify Users\Billy\Documents. Since it will be different on others computers.

Eduardo M
  • 1,007
  • 11
  • 17

1 Answers1

0

Call SHGetFolderPath to get any of the user-dependent path names. Then concatenate the file name to the retrieved path.

ScottMcP-MVP
  • 10,337
  • 2
  • 15
  • 15