2
votes
Vote UpVote

SHGetFolderPath and Default User

Marco's Tech Blog – Over the last few days, I've had a few issues with the SHGetFolderPath API, which are now solved. It all started when I grabbed some Delphi existing code (pre-Unicode), with a call to: OleCheck (SHGetFolderPath (Handle, CSIDL_MYDOCUMENTS, $FFFF, 0, PChar(szBuffer))); By simply leaving the code as it was I got a Windows runtime error, "The Handle is Invalid". Might be the handle passed as first parameter, but it didn't help. Curious, I went back to the Ansi version of the function: OleCheck (SHGetFolderPathA (Handle, CSIDL_PERSONAL, $FFFF, 0, PAnsiChar(szBuffer))); This ...
Favorite? Off-Topic? marcocantu @ 2009-12-01 18:16

Statistics

Visits: 510
Votes: 2
Favorites: 1
Off-Topic: 0

Visits by Source

User Actions

Users who voted for this posting

Tier777
vcldeveloper
Subscribe:
Contact us to advertise on DelphiFeeds.com

Community Links

Torry Firebird News

Sponsor

 
Please login or register to use this functionality.
(click on this box to dismiss)