Click here to Skip to main content
15,917,862 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionGet desktop folder of all users in computer and their username ? Pin
Wizard_0127-Feb-03 10:10
Wizard_0127-Feb-03 10:10 
AnswerRe: Get desktop folder of all users in computer and their username ? Pin
Mazdak27-Feb-03 10:15
Mazdak27-Feb-03 10:15 
AnswerRe: Get desktop folder of all users in computer and their username ? Pin
TigerNinja_28-Feb-03 4:28
TigerNinja_28-Feb-03 4:28 
GeneralUsing SHGetFolderPath Pin
TigerNinja_27-Feb-03 9:47
TigerNinja_27-Feb-03 9:47 
GeneralRe: Using SHGetFolderPath Pin
Alvaro Mendez27-Feb-03 10:07
Alvaro Mendez27-Feb-03 10:07 
GeneralRe: Using SHGetFolderPath Pin
palbano27-Feb-03 10:22
palbano27-Feb-03 10:22 
GeneralRe: Using SHGetFolderPath Pin
PJ Arends27-Feb-03 10:33
professionalPJ Arends27-Feb-03 10:33 
GeneralRe: Using SHGetFolderPath Pin
TigerNinja_28-Feb-03 4:25
TigerNinja_28-Feb-03 4:25 
PJ Arends wrote:
I did a search for *.h file containing 'SHGetFolderPath'


I found the following in ShlObj.h

SHFOLDERAPI SHGetFolderPathA(HWND hwnd, int csidl, HANDLE hToken, DWORD dwFlags, LPSTR pszPath);<br />
SHFOLDERAPI SHGetFolderPathW(HWND hwnd, int csidl, HANDLE hToken, DWORD dwFlags, LPWSTR pszPath);<br />
#ifdef UNICODE<br />
#define SHGetFolderPath  SHGetFolderPathW<br />
#else<br />
#define SHGetFolderPath  SHGetFolderPathA<br />
#endif // !UNICODE


Sanity check:
I included the shlobj.h file, also, that file is in the SDK, and the SDK source files are in my included paths to search for while linking code.

it still doesn't work, am I missing something obvious?

TIA






R.Bischoff | C++
 
.NET, Kommst du mit?


GeneralRe: Using SHGetFolderPath Pin
PJ Arends28-Feb-03 6:13
professionalPJ Arends28-Feb-03 6:13 
GeneralRe: Using SHGetFolderPath Pin
Gary R. Wheeler1-Mar-03 2:41
Gary R. Wheeler1-Mar-03 2:41 
Questionold fashioned memory access in a visual C++ console application? Pin
codedancer27-Feb-03 8:58
codedancer27-Feb-03 8:58 
AnswerRe: old fashioned memory access in a visual C++ console application? Pin
Erik Juhl27-Feb-03 9:22
Erik Juhl27-Feb-03 9:22 
GeneralRe: old fashioned memory access in a visual C++ console application? Pin
codedancer27-Feb-03 9:34
codedancer27-Feb-03 9:34 
GeneralRe: old fashioned memory access in a visual C++ console application? Pin
Gary R. Wheeler1-Mar-03 2:48
Gary R. Wheeler1-Mar-03 2:48 
GeneralRe: old fashioned memory access in a visual C++ console application? Pin
Anonymous1-Mar-03 10:01
Anonymous1-Mar-03 10:01 
GeneralRe: old fashioned memory access in a visual C++ console application? Pin
Gary R. Wheeler1-Mar-03 14:20
Gary R. Wheeler1-Mar-03 14:20 
AnswerRe: old fashioned memory access in a visual C++ console application? Pin
dim136-Jan-05 2:05
dim136-Jan-05 2:05 
GeneralImPLEMENT_DYNAMIC Pin
ns27-Feb-03 7:54
ns27-Feb-03 7:54 
GeneralRe: ImPLEMENT_DYNAMIC Pin
Dave Bryant27-Feb-03 8:24
Dave Bryant27-Feb-03 8:24 
Generalthanks! Pin
ns27-Feb-03 8:32
ns27-Feb-03 8:32 
GeneralEfficient use of memory and filtering Pin
Anton A. Loukine27-Feb-03 6:41
Anton A. Loukine27-Feb-03 6:41 
GeneralRe: Efficient use of memory and filtering Pin
John M. Drescher27-Feb-03 6:50
John M. Drescher27-Feb-03 6:50 
GeneralRe: Efficient use of memory and filtering Pin
Anton A. Loukine27-Feb-03 7:20
Anton A. Loukine27-Feb-03 7:20 
GeneralRe: Efficient use of memory and filtering Pin
Daniel Turini27-Feb-03 7:34
Daniel Turini27-Feb-03 7:34 
GeneralRe: Efficient use of memory and filtering Pin
John M. Drescher27-Feb-03 7:48
John M. Drescher27-Feb-03 7:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.