Click here to Skip to main content
15,914,397 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: MoveFile Problem Pin
Michael Schubert17-Sep-08 4:30
Michael Schubert17-Sep-08 4:30 
AnswerRe: MoveFile Problem Pin
Cedric Moonen17-Sep-08 4:38
Cedric Moonen17-Sep-08 4:38 
AnswerRe: MoveFile Problem Pin
roguecode17-Sep-08 6:41
roguecode17-Sep-08 6:41 
GeneralRe: MoveFile Problem Pin
Cedric Moonen17-Sep-08 6:52
Cedric Moonen17-Sep-08 6:52 
QuestionRe: MoveFile Problem Pin
roguecode17-Sep-08 7:15
roguecode17-Sep-08 7:15 
AnswerRe: MoveFile Problem Pin
Rajesh R Subramanian17-Sep-08 20:13
professionalRajesh R Subramanian17-Sep-08 20:13 
AnswerRe: MoveFile Problem Pin
CPallini17-Sep-08 21:38
mveCPallini17-Sep-08 21:38 
Questionhow to add Ip address in the registry value Pin
adhilingam17-Sep-08 3:02
adhilingam17-Sep-08 3:02 
hi
i need to add Ip Address as the value for the registry.
Example,like this
Registry Name = public
Registry Type = REG_SZ
Registry Data = 10.20.40.80

but using below code am able to add only one value as "1"

#include "stdafx.h"
#include <windows.h>
#include <stdio.h>
int _tmain(int argc, _TCHAR* argv[])
{
unsigned char szStr[20]="12.45.67.89";
HKEY hKey;
// opening a subkey, then creating and setting a value
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, TEXT
("SYSTEM\\CurrentControlSet\\Services\\SNMP\\Parameters\\s1"), 0,
KEY_ALL_ACCESS, &hKey)!=ERROR_SUCCESS)
printf("\nError opening the desired subkey (doesn't exist?).\n");
else
{
if (RegSetValueEx(hKey, TEXT("public"), NULL, REG_SZ, szStr, sizeof
(szStr)) ==ERROR_SUCCESS)
printf("\nThe value of the key was set successfully.\n");
else
printf("\nError setting the value of the key.\n");
}
RegCloseKey(hKey);
return 0;
}

Output am getting in the registry data field is " 9"


could you please help me regarding the above issue.
AnswerRe: how to add Ip address in the registry value Pin
Iain Clarke, Warrior Programmer17-Sep-08 5:21
Iain Clarke, Warrior Programmer17-Sep-08 5:21 
GeneralRe: how to add Ip address in the registry value Pin
adhilingam21-Sep-08 20:51
adhilingam21-Sep-08 20:51 
AnswerRe: how to add Ip address in the registry value Pin
Mark Salsbery17-Sep-08 6:05
Mark Salsbery17-Sep-08 6:05 
GeneralRe: how to add Ip address in the registry value Pin
adhilingam18-Sep-08 20:43
adhilingam18-Sep-08 20:43 
QuestionHow to set the Text of a CListCtrl Column Header dynamically in mfc Pin
Dhiraj kumar Saini17-Sep-08 3:01
Dhiraj kumar Saini17-Sep-08 3:01 
AnswerRe: How to set the Text of a CListCtrl Column Header dynamically in mfc Pin
Iain Clarke, Warrior Programmer17-Sep-08 6:03
Iain Clarke, Warrior Programmer17-Sep-08 6:03 
GeneralRe: How to set the Text of a CListCtrl Column Header dynamically in mfc Pin
Dhiraj kumar Saini18-Sep-08 1:23
Dhiraj kumar Saini18-Sep-08 1:23 
GeneralRe: How to set the Text of a CListCtrl Column Header dynamically in mfc Pin
Iain Clarke, Warrior Programmer18-Sep-08 1:41
Iain Clarke, Warrior Programmer18-Sep-08 1:41 
QuestionHow can set font of property sheet or property pages? Pin
Le@rner17-Sep-08 2:57
Le@rner17-Sep-08 2:57 
AnswerRe: How can set font of property sheet or property pages? Pin
Iain Clarke, Warrior Programmer17-Sep-08 6:11
Iain Clarke, Warrior Programmer17-Sep-08 6:11 
QuestionChange directory when selcting the File Type Pin
hai palla17-Sep-08 2:56
hai palla17-Sep-08 2:56 
AnswerRe: Change directory when selcting the File Type Pin
Michael Schubert17-Sep-08 4:35
Michael Schubert17-Sep-08 4:35 
QuestionRe: Change directory when selcting the File Type Pin
David Crow17-Sep-08 7:00
David Crow17-Sep-08 7:00 
QuestionSpeech-to-Text Programme compilation error ...... Pin
CoolDude287817-Sep-08 2:56
CoolDude287817-Sep-08 2:56 
AnswerRe: Speech-to-Text Programme compilation error ...... Pin
enhzflep17-Sep-08 3:19
enhzflep17-Sep-08 3:19 
GeneralRe: Speech-to-Text Programme compilation error ...... Pin
CoolDude287817-Sep-08 4:48
CoolDude287817-Sep-08 4:48 
GeneralRe: Speech-to-Text Programme compilation error ...... Pin
enhzflep17-Sep-08 6:49
enhzflep17-Sep-08 6:49 

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.