Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Loading bitmaps? Pin
Chris Losinger19-Mar-03 9:27
professionalChris Losinger19-Mar-03 9:27 
GeneralRe: Loading bitmaps? Pin
clintsinger19-Mar-03 9:43
clintsinger19-Mar-03 9:43 
GeneralRe: Loading bitmaps? Pin
Chris Losinger19-Mar-03 10:57
professionalChris Losinger19-Mar-03 10:57 
QuestionHow get the path of Internet Explorer (executable) or any APP.EXE ?? Pin
Cris19-Mar-03 9:12
Cris19-Mar-03 9:12 
AnswerRe: How get the path of Internet Explorer (executable) or any APP.EXE ?? Pin
Amit Dey19-Mar-03 13:19
Amit Dey19-Mar-03 13:19 
AnswerRe: How get the path of Internet Explorer (executable) or any APP.EXE ?? Pin
Big Art20-Mar-03 6:27
Big Art20-Mar-03 6:27 
GeneralRe: How get the path of Internet Explorer (executable) or any APP.EXE ?? Pin
Cris20-Mar-03 7:07
Cris20-Mar-03 7:07 
GeneralRe: How get the path of Internet Explorer (executable) or any APP.EXE ?? Pin
Big Art20-Mar-03 12:55
Big Art20-Mar-03 12:55 
Hi Cris,

It is declared in Shlwapi.h.
Or you can use some other Registry access function if you want. I have the MSDN info for you if you wish. But once again you really don't need the path if you use ShellExecute(..) on an installed application.

Art

///////////////
From MSDN info
///////////////

SHGetValue
Retrieves a registry value.


DWORD SHGetValue(
HKEY hkey,
LPCTSTR pszSubKey,
LPCTSTR pszValue,
LPDWORD pdwType,
LPVOID pvData,
LPDWORD pcbData
);

Parameters
hkey
Handle to the currently open key, or any of the following predefined values: HKEY_CLASSES_ROOT
HKEY_CURRENT_CONFIG
HKEY_CURRENT_USER
HKEY_DYN_DATA (Windows 95 only)
HKEY_LOCAL_MACHINE
HKEY_PERFORMANCE_DATA (Windows NT only)
HKEY_USERS

pszSubKey
Address of a null-terminated string that specifies the name of the subkey from which to retrieve the value.
pszValue
Address of the value.
pdwType
Type of value. For more information, see Registry Data Types.
pvData
Address of the destination data buffer.
pcbData
Size of the destination data buffer.
Return Values
Returns ERROR_SUCCESS if successful, or a nonzero error code defined in Winerror.h otherwise. You can use the FormatMessage function with the FORMAT_MESSAGE_FROM_SYSTEM flag to retrieve a generic description of the error.

Remarks

Note If your application must set/retrieve a series of values in the same key, it is better to open the key once and set/retrieve the values with the regular Microsoft® Win32® registry functions rather than use this function repeatedly.

Requirements
Version 4.71 and later of Shlwapi.dll

Windows NT/2000: Requires Windows 2000 (or Windows NT 4.0 with Internet Explorer 4.0 or later).
Windows 95/98/Me: Requires Windows 98 (or Windows 95 with Internet Explorer 4.0 or later).
Header: Declared in Shlwapi.h.
Import Library: Shlwapi.lib.
GeneralChanging menu background color (Win32) Pin
georgiek5019-Mar-03 8:18
georgiek5019-Mar-03 8:18 
GeneralRe: Changing menu background color (Win32) Pin
Neville Franks19-Mar-03 8:53
Neville Franks19-Mar-03 8:53 
GeneralRe: Changing menu background color (Win32) Pin
Michael Dunn19-Mar-03 9:05
sitebuilderMichael Dunn19-Mar-03 9:05 
GeneralRe: Changing menu background color (Win32) Pin
georgiek5019-Mar-03 12:25
georgiek5019-Mar-03 12:25 
GeneralRe: Changing menu background color (Win32) Pin
Big Art21-Mar-03 6:31
Big Art21-Mar-03 6:31 
GeneralRe: Changing menu background color (Win32) Pin
Anonymous21-Mar-03 6:59
Anonymous21-Mar-03 6:59 
GeneralRe: Changing menu background color (Win32) Pin
Big Art21-Mar-03 10:46
Big Art21-Mar-03 10:46 
GeneralSSL Client for desktop Windows Pin
Matthew Fleming19-Mar-03 8:11
Matthew Fleming19-Mar-03 8:11 
GeneralRe: SSL Client for desktop Windows Pin
geo_m19-Mar-03 10:29
geo_m19-Mar-03 10:29 
GeneralWhy this is different? (CString copying over pszTitle)... Pin
Joan M19-Mar-03 7:47
professionalJoan M19-Mar-03 7:47 
GeneralRe: Why this is different? (CString copying over pszTitle)... Pin
Tim Smith19-Mar-03 8:02
Tim Smith19-Mar-03 8:02 
GeneralRe: Why this is different? (CString copying over pszTitle)... Pin
Joan M19-Mar-03 8:07
professionalJoan M19-Mar-03 8:07 
GeneralRe: Why this is different? (CString copying over pszTitle)... Pin
David Spain24-Mar-03 12:36
David Spain24-Mar-03 12:36 
GeneralLoad the resource by his name Pin
Eugene Pustovoyt19-Mar-03 7:34
Eugene Pustovoyt19-Mar-03 7:34 
GeneralRe: Load the resource by his name Pin
berndg19-Mar-03 7:45
berndg19-Mar-03 7:45 
GeneralRe: Load the resource by his name Pin
georgiek5019-Mar-03 8:14
georgiek5019-Mar-03 8:14 
QuestionWhere do I find....? Pin
JohnnyG19-Mar-03 7:25
JohnnyG19-Mar-03 7:25 

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.