Click here to Skip to main content
15,922,427 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Sending string between two apps Pin
Carlos Antollini31-Oct-01 9:08
Carlos Antollini31-Oct-01 9:08 
GeneralRe: Sending string between two apps Pin
31-Oct-01 9:12
suss31-Oct-01 9:12 
GeneralRe: Sending string between two apps Pin
Carlos Antollini31-Oct-01 9:24
Carlos Antollini31-Oct-01 9:24 
GeneralRe: Sending string between two apps Pin
1-Nov-01 2:23
suss1-Nov-01 2:23 
GeneralRe: Sending string between two apps Pin
Nish Nishant31-Oct-01 17:52
sitebuilderNish Nishant31-Oct-01 17:52 
Questionhow to detect dialog's actual control? Pin
31-Oct-01 5:30
suss31-Oct-01 5:30 
AnswerRe: how to detect dialog's actual control? Pin
1-Nov-01 20:23
suss1-Nov-01 20:23 
GeneralRetrieving registry values Pin
Steven Gregg31-Oct-01 5:18
Steven Gregg31-Oct-01 5:18 
Have the following code as part of my DLL running on NT Workstation. For some reason it opens the registry key OK but can't Query the value. The value is definately in the registry. Interestingly, when I cut and paste the code into a standalone .exe it works fine. Anyone any ideas...is it a problem with UNICODE or similar?

//GET REGISTRY INFORMATION FOR DATABASE NAME
//
HKEY hKey;

if (ERROR_SUCCESS == RegOpenKeyEx( HKEY_LOCAL_MACHINE, "SOFTWARE\\COMPANY\\PRODUCT", 0, KEY_QUERY_VALUE, &hKey ) )
{
DWORD dwBufLen;
char szDBName[256];

if (ERROR_SUCCESS == RegQueryValueEx( hKey, "DatabaseName", NULL, NULL, (LPBYTE) szDBName, &dwBufLen) )
{
OtherFunction(szDBName);
}
else
{
OtherFunction("\\default\\Data\\MyDatabase");
}
RegCloseKey( hKey );
}
else
{
OtherFunction("\\default\\Data\\MyDatabase");
}


Cheers
Steevie
GeneralRe: Retrieving registry values Pin
Michael Dunn31-Oct-01 8:28
sitebuilderMichael Dunn31-Oct-01 8:28 
GeneralDependency Walker / DLL functions Pin
-Dy31-Oct-01 4:30
-Dy31-Oct-01 4:30 
GeneralRe: Dependency Walker / DLL functions Pin
Bernhard31-Oct-01 4:56
Bernhard31-Oct-01 4:56 
GeneralRe: Dependency Walker / DLL functions Pin
-Dy31-Oct-01 5:52
-Dy31-Oct-01 5:52 
GeneralRe: Dependency Walker / DLL functions Pin
#realJSOP31-Oct-01 6:11
professional#realJSOP31-Oct-01 6:11 
GeneralRe: Dependency Walker / DLL functions Pin
-Dy31-Oct-01 6:17
-Dy31-Oct-01 6:17 
GeneralRetrieving font version Pin
Jens Doose31-Oct-01 3:30
Jens Doose31-Oct-01 3:30 
Generalaccess violation Pin
Gérald Mercet31-Oct-01 3:23
Gérald Mercet31-Oct-01 3:23 
GeneralRe: access violation Pin
Michael P Butler31-Oct-01 3:32
Michael P Butler31-Oct-01 3:32 
GeneralRe: access violation Pin
Gérald Mercet31-Oct-01 3:39
Gérald Mercet31-Oct-01 3:39 
GeneralRe: access violation Pin
Michael P Butler31-Oct-01 3:44
Michael P Butler31-Oct-01 3:44 
GeneralRe: access violation Pin
Gérald Mercet31-Oct-01 3:49
Gérald Mercet31-Oct-01 3:49 
GeneralRe: access violation Pin
Michael P Butler31-Oct-01 4:10
Michael P Butler31-Oct-01 4:10 
GeneralRe: access violation Pin
Tomasz Sowinski31-Oct-01 3:33
Tomasz Sowinski31-Oct-01 3:33 
GeneralRe: access violation Pin
Gérald Mercet31-Oct-01 3:43
Gérald Mercet31-Oct-01 3:43 
GeneralTLS Pin
Maer72731-Oct-01 2:34
Maer72731-Oct-01 2:34 
GeneralRe: TLS Pin
Tomasz Sowinski31-Oct-01 2:51
Tomasz Sowinski31-Oct-01 2:51 

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.