Click here to Skip to main content
15,894,362 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: V-tables Pin
0x3c022-Apr-09 6:26
0x3c022-Apr-09 6:26 
GeneralRe: V-tables Pin
led mike23-Apr-09 4:41
led mike23-Apr-09 4:41 
GeneralRe: V-tables Pin
0x3c023-Apr-09 5:15
0x3c023-Apr-09 5:15 
QuestionSetting the default icon in the registry Pin
Like2Byte17-Apr-09 4:43
Like2Byte17-Apr-09 4:43 
AnswerRe: Setting the default icon in the registry Pin
led mike17-Apr-09 4:49
led mike17-Apr-09 4:49 
QuestionWhy this error happens? How to resolve this ? (Repost : Modified, now the error is different) Pin
kapardhi17-Apr-09 2:55
kapardhi17-Apr-09 2:55 
AnswerRe: Why this error happens? How to resolve this ? (Repost : Modified, now the error is different) Pin
Stuart Dootson17-Apr-09 3:12
professionalStuart Dootson17-Apr-09 3:12 
QuestionRegistry access problem Pin
Mogaambo17-Apr-09 2:08
Mogaambo17-Apr-09 2:08 
this i used to access information from registry, but the problem is that it prints only first character of the string , instead of whole.


void GetProxyServerInfo()
{
try
{

HKEY hKey;

if (RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings"), 0L, KEY_ALL_ACCESS, &hKey)!=ERROR_SUCCESS)

printf("nError opening the desired subkey (doesn't exist?).n");

else
{


DWORD dwType = REG_SZ;

char buf[255] = {0};
DWORD dwBufSize = 255;

if( RegQueryValueEx(hKey,TEXT("ProxyServer"),0, &dwType, (LPBYTE)&buf, &dwBufSize) == ERROR_SUCCESS)
{
//here it prints only single character, not the whole string
cout<< buf;

}

else

cout << "can not query for key value\n";

RegCloseKey(hKey);
}



}
catch(char *error)
{
throw error;
}

}

“You will never be a leader unless you first learn to follow and be led.”
–Tiorio

"Coming together is a beginning, staying together is progress, and working together is success." Henry Ford

AnswerRe: Registry access problem Pin
Jijo.Raj17-Apr-09 2:14
Jijo.Raj17-Apr-09 2:14 
GeneralRe: Registry access problem Pin
Mogaambo17-Apr-09 2:19
Mogaambo17-Apr-09 2:19 
GeneralRe: Registry access problem Pin
Mogaambo17-Apr-09 2:27
Mogaambo17-Apr-09 2:27 
GeneralRe: Registry access problem Pin
Cedric Moonen17-Apr-09 2:31
Cedric Moonen17-Apr-09 2:31 
Question[DirectX9.0]How to retrive vector from Camera setting's View Matrix Pin
kallol kumar17-Apr-09 2:04
kallol kumar17-Apr-09 2:04 
QuestionA question about Assert function Pin
Obsidianhom17-Apr-09 1:10
Obsidianhom17-Apr-09 1:10 
AnswerRe: A question about Assert function Pin
Cedric Moonen17-Apr-09 1:14
Cedric Moonen17-Apr-09 1:14 
GeneralRe: A question about Assert function Pin
China_Kevin17-Apr-09 2:58
China_Kevin17-Apr-09 2:58 
GeneralRe: A question about Assert function Pin
Cedric Moonen17-Apr-09 3:00
Cedric Moonen17-Apr-09 3:00 
GeneralRe: A question about Assert function Pin
China_Kevin17-Apr-09 3:26
China_Kevin17-Apr-09 3:26 
GeneralRe: A question about Assert function Pin
China_Kevin17-Apr-09 3:33
China_Kevin17-Apr-09 3:33 
JokeRe: A question about Assert function Pin
Rajesh R Subramanian17-Apr-09 3:36
professionalRajesh R Subramanian17-Apr-09 3:36 
GeneralRe: A question about Assert function Pin
China_Kevin17-Apr-09 3:44
China_Kevin17-Apr-09 3:44 
JokeRe: A question about Assert function Pin
David Crow17-Apr-09 5:00
David Crow17-Apr-09 5:00 
JokeRe: A question about Assert function Pin
China_Kevin17-Apr-09 15:00
China_Kevin17-Apr-09 15:00 
GeneralRe: A question about Assert function Pin
dandanfeng16017-Apr-09 15:56
dandanfeng16017-Apr-09 15:56 
GeneralRe: A question about Assert function Pin
Obsidianhom17-Apr-09 3:54
Obsidianhom17-Apr-09 3:54 

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.