Click here to Skip to main content
15,899,825 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: syslog.h analog in WIndows Pin
Albert Holguin17-Oct-11 5:12
professionalAlbert Holguin17-Oct-11 5:12 
QuestionI have problem with codecvt<> Pin
Cold_Fearing_Bird5-Oct-11 23:59
Cold_Fearing_Bird5-Oct-11 23:59 
AnswerRe: I have problem with codecvt Pin
Madhu Nair12-Oct-11 21:31
Madhu Nair12-Oct-11 21:31 
QuestionMessage Removed Pin
27-Sep-11 4:03
Youming Lee27-Sep-11 4:03 
AnswerRe: why can't calculate the expression.error CXX0030 char **ptr_alph = (char**)malloc(wordCount * sizeof(char *)); Pin
Richard MacCutchan27-Sep-11 4:28
mveRichard MacCutchan27-Sep-11 4:28 
GeneralRe: why can't calculate the expression.error CXX0030 char **ptr_alph = (char**)malloc(wordCount * sizeof(char *)); Pin
Youming Lee27-Sep-11 5:07
Youming Lee27-Sep-11 5:07 
GeneralRe: why can't calculate the expression.error CXX0030 char **ptr_alph = (char**)malloc(wordCount * sizeof(char *)); Pin
Richard MacCutchan30-Sep-11 10:16
mveRichard MacCutchan30-Sep-11 10:16 
QuestionWrite REG_MULTI_SZ value in registry Pin
Cpp_Com26-Sep-11 2:22
Cpp_Com26-Sep-11 2:22 
I want to write a REG_MULTI_SZ value (e.g 100-104) in registry. My code is like


<pre lang="c++">HKEY objHKey;
CString strReturn;
CString subkey("SYSTEM\\CurrentControlSet\\Services\\Tcpip\\Parameters");

// Open Registry key for Vlc Path
if( RegOpenKey( HKEY_LOCAL_MACHINE,
(LPCTSTR)subkey, // what to open
&objHKey // on success, handle goes here
) == ERROR_SUCCESS )
{
unsigned char * format = new unsigned char [100];
unsigned char p1[5] = "998";
unsigned char p2[5] = "999";
sprintf((char*)format, "%s\\0%s\\0\\0", p1, p2);
int ILenght = 20;//strlen(format);

unsigned char *ptr= (unsigned char *) strTemp.GetBuffer(0);

if(ERROR_SUCCESS != RegSetValueEx(objHKey,
_T("ReservedPorts"),
NULL,
REG_MULTI_SZ,
//(BYTE*)_T("1000-1004"),
ptr,
strTemp.GetLength()))

{
AfxMessageBox(_T("Failed to update in registry."));
}

// Close the registry
RegCloseKey( objHKey );
}</pre>


But this is not updating in registry.
AnswerRe: Write REG_MULTI_SZ value in registry Pin
Richard MacCutchan26-Sep-11 6:28
mveRichard MacCutchan26-Sep-11 6:28 
GeneralRe: Write REG_MULTI_SZ value in registry Pin
ThatsAlok3-Oct-11 23:55
ThatsAlok3-Oct-11 23:55 
GeneralRe: Write REG_MULTI_SZ value in registry Pin
Richard MacCutchan4-Oct-11 1:19
mveRichard MacCutchan4-Oct-11 1:19 
QuestionHow to disable warning popup in ActiveX Pin
Cpp_Com19-Sep-11 18:49
Cpp_Com19-Sep-11 18:49 
AnswerRe: How to disable warning popup in ActiveX Pin
KingsGambit19-Sep-11 20:19
KingsGambit19-Sep-11 20:19 
GeneralRe: How to disable warning popup in ActiveX Pin
Cpp_Com20-Sep-11 19:07
Cpp_Com20-Sep-11 19:07 
GeneralRe: How to disable warning popup in ActiveX Pin
KingsGambit20-Sep-11 20:36
KingsGambit20-Sep-11 20:36 
GeneralRe: How to disable warning popup in ActiveX Pin
Cpp_Com20-Sep-11 23:38
Cpp_Com20-Sep-11 23:38 
AnswerRe: How to disable warning popup in ActiveX Pin
Abhi Lahare3-Oct-11 6:24
Abhi Lahare3-Oct-11 6:24 
QuestionCan't call DestroyWindow in CView::OnActivateView when activated with Aero preview Pin
Member 823191212-Sep-11 15:33
Member 823191212-Sep-11 15:33 
AnswerRe: Can't call DestroyWindow in CView::OnActivateView when activated with Aero preview Pin
Member 823191214-Sep-11 3:22
Member 823191214-Sep-11 3:22 
GeneralRe: Can't call DestroyWindow in CView::OnActivateView when activated with Aero preview Pin
MicroVirus14-Sep-11 3:32
MicroVirus14-Sep-11 3:32 
QuestionHow to create a ActiveX document server to render a txt file Pin
shelok10-Sep-11 17:17
shelok10-Sep-11 17:17 
AnswerRe: How to create a ActiveX document server to render a txt file Pin
Richard MacCutchan10-Sep-11 21:09
mveRichard MacCutchan10-Sep-11 21:09 
GeneralRe: How to create a ActiveX document server to render a txt file Pin
shelok10-Sep-11 23:19
shelok10-Sep-11 23:19 
QuestionHow to Check the iterator is valid? Pin
jbiaojerry7-Sep-11 23:45
jbiaojerry7-Sep-11 23:45 
AnswerRe: How to Check the iterator is valid? Pin
MicroVirus8-Sep-11 4:07
MicroVirus8-Sep-11 4:07 

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.