Click here to Skip to main content
16,007,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Creating Links On windows 2000 Pin
Navin23-Jun-02 13:34
Navin23-Jun-02 13:34 
GeneralRe: Creating Links On windows 2000 Pin
Shog923-Jun-02 10:25
sitebuilderShog923-Jun-02 10:25 
GeneralRe: Creating Links On windows 2000 Pin
ColinDavies23-Jun-02 10:27
ColinDavies23-Jun-02 10:27 
GeneralRe: Creating Links On windows 2000 Pin
Bill SerGio23-Jun-02 10:33
Bill SerGio23-Jun-02 10:33 
GeneralRe: Creating Links On windows 2000 Pin
Bill SerGio23-Jun-02 10:34
Bill SerGio23-Jun-02 10:34 
GeneralRe: Creating Links On windows 2000 Pin
ColinDavies23-Jun-02 11:24
ColinDavies23-Jun-02 11:24 
GeneralHere's why Links Fail on Windows 2000 Pin
Bill SerGio23-Jun-02 9:04
Bill SerGio23-Jun-02 9:04 
GeneralRe: Here's why Links Fail on Windows 2000 Pin
Bill SerGio23-Jun-02 9:12
Bill SerGio23-Jun-02 9:12 
I forgot to include one of the functions that I call in the code sample above and I am including it below.

bool CInstall::GetShellFolderPath(LPCSTR lpShellFolder, LPSTR lpShellPath)
{
//lpShellFolder can be one of the following
//AppData, Cache, Cookies, Desktop, Favorites, Fonts, History, NetHood,
//Personal, Printhood, Programs, Recent, SendTo, Start Menu, Startup,
//Templates, ShellNew

DWORD rc;
DWORD length = MAX_PATH;
DWORD type = REG_SZ;
HKEY hkey;

rc = RegOpenKeyEx(HKEY_CURRENT_USER,
"Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders",
0,
KEY_READ,
&hkey);

if (rc == ERROR_SUCCESS)
{
rc = RegQueryValueEx(hkey,
lpShellFolder,
NULL,
&type,
(BYTE *) lpShellPath,
&length);
RegCloseKey(hkey);
}

if (rc == ERROR_SUCCESS)
return true;
else
return false;
}


Bill SerGio, The Infomercial King
GeneralRe: Here's why Links Fail on Windows 2000 Pin
loket23-Jun-02 9:20
loket23-Jun-02 9:20 
GeneralRe: Here's why Links Fail on Windows 2000 Pin
Bill SerGio23-Jun-02 9:45
Bill SerGio23-Jun-02 9:45 
GeneralRe: Here's why Links Fail on Windows 2000 Pin
loket23-Jun-02 9:53
loket23-Jun-02 9:53 
GeneralASPI Docomentation. Pin
redeemer23-Jun-02 7:51
redeemer23-Jun-02 7:51 
GeneralRe: ASPI Docomentation. Pin
Ravi Bhavnani23-Jun-02 13:02
professionalRavi Bhavnani23-Jun-02 13:02 
GeneralKeyboard indicators Pin
Brian Delahunty23-Jun-02 7:04
Brian Delahunty23-Jun-02 7:04 
GeneralRe: Keyboard indicators Pin
Rama Krishna Vavilala23-Jun-02 7:18
Rama Krishna Vavilala23-Jun-02 7:18 
GeneralRe: Keyboard indicators Pin
Brian Delahunty23-Jun-02 7:24
Brian Delahunty23-Jun-02 7:24 
QuestionGet Window styles and exstyles ? Pin
dlhson23-Jun-02 5:54
dlhson23-Jun-02 5:54 
AnswerRe: Get Window styles and exstyles ? Pin
23-Jun-02 6:24
suss23-Jun-02 6:24 
Generalincluding the View class header file in the MainFrame.cpp file Pin
mzakarni23-Jun-02 3:46
mzakarni23-Jun-02 3:46 
GeneralRe: including the View class header file in the MainFrame.cpp file Pin
Christian Graus23-Jun-02 3:56
protectorChristian Graus23-Jun-02 3:56 
GeneralRe: including the View class header file in the MainFrame.cpp file Pin
mzakarni23-Jun-02 4:08
mzakarni23-Jun-02 4:08 
GeneralRe: including the View class header file in the MainFrame.cpp file Pin
Donald Blachly23-Jun-02 18:00
Donald Blachly23-Jun-02 18:00 
GeneralRe: including the View class header file in the MainFrame.cpp file Pin
Christian Graus23-Jun-02 18:07
protectorChristian Graus23-Jun-02 18:07 
GeneralMenu Initally Disabled PROBLEM Pin
23-Jun-02 2:12
suss23-Jun-02 2:12 
GeneralRe: Menu Initally Disabled PROBLEM Pin
jferrell121123-Jun-02 3:18
jferrell121123-Jun-02 3:18 

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.