Click here to Skip to main content
15,915,093 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: static variables in stdafx.h Pin
Nemanja Trifunovic21-Mar-07 6:10
Nemanja Trifunovic21-Mar-07 6:10 
AnswerRe: static variables in stdafx.h Pin
Stephen Hewitt21-Mar-07 16:33
Stephen Hewitt21-Mar-07 16:33 
AnswerRe: static variables in stdafx.h Pin
werpa22-Mar-07 5:30
werpa22-Mar-07 5:30 
Questionmalloc / free Pin
Ing.Raiz8221-Mar-07 4:57
Ing.Raiz8221-Mar-07 4:57 
AnswerRe: malloc / free Pin
toxcct21-Mar-07 5:05
toxcct21-Mar-07 5:05 
QuestionRe: malloc / free Pin
Ing.Raiz8221-Mar-07 5:13
Ing.Raiz8221-Mar-07 5:13 
QuestionRe: malloc / free Pin
David Crow21-Mar-07 5:19
David Crow21-Mar-07 5:19 
AnswerRe: malloc / free Pin
Ing.Raiz8221-Mar-07 5:35
Ing.Raiz8221-Mar-07 5:35 
thanks for the interest.... but... if i change this....


/*
char **Temp;
Temp = (char **)malloc(sizeof(char *));
*Temp = (char *)malloc(MAX_LIST);
DWORD size = MAX_LIST;
*/

BYTE Temp[1024];
DWORD size = sizeof(Temp);
CString sTemp,sTemp2;

if (RegQueryValueEx(pParentWnd->m_ListKey, RSS_KEY,0,NULL,Temp,&size) == ERROR_SUCCESS)
{
//Temp[size] = '\0';

while(**Temp != '\0')
{
sTemp = strsepRss(Temp,';'); <==

////////////////Problem////////////////////
i have problem here because strsepRss ask char ** stringp
//////////////////////////////////////////

m_cRss1Combo.AddString(sTemp);
m_cRss2Combo.AddString(sTemp);
}

m_cRss1Combo.SetCurSel(0);
m_cRss2Combo.SetCurSel(1);
}
else
{
m_cRss1Combo.AddString(ECHO_LINK);
m_cRss2Combo.AddString(ECHO_LINK);
m_cRss1Combo.SetCurSel(0);
m_cRss2Combo.SetCurSel(0);
}

//posiziona i due combo box sul rss precedentemente salvato
if((m_cRss1Combo.FindStringExact(-1,pParentWnd->m_sRss1)) != -1)
m_cRss1Combo.SetCurSel(m_cRss1Combo.FindStringExact(-1,pParentWnd->m_sRss1));

if((m_cRss2Combo.FindStringExact(-1,pParentWnd->m_sRss2)) != -1)
m_cRss2Combo.SetCurSel(m_cRss2Combo.FindStringExact(-1,pParentWnd->m_sRss2));

UpdateString(pParentWnd->m_iVisualizationControl);


//free(*Temp);//giulio
free(Temp);

sorry but i'm a novice of c++...

thanks still...

Giulio
GeneralRe: malloc / free Pin
David Crow21-Mar-07 5:41
David Crow21-Mar-07 5:41 
GeneralRe: malloc / free Pin
Ing.Raiz8221-Mar-07 6:12
Ing.Raiz8221-Mar-07 6:12 
AnswerRe: malloc / free [modified] Pin
toxcct21-Mar-07 5:19
toxcct21-Mar-07 5:19 
AnswerRe: malloc / free Pin
Laxman Auti21-Mar-07 5:26
Laxman Auti21-Mar-07 5:26 
AnswerRe: malloc / free Pin
Laxman Auti21-Mar-07 5:18
Laxman Auti21-Mar-07 5:18 
QuestionChange font and colors in a listbox! Pin
olssoninc21-Mar-07 4:45
olssoninc21-Mar-07 4:45 
QuestionConversion from CString to const char * Pin
ilgale21-Mar-07 4:08
ilgale21-Mar-07 4:08 
AnswerRe: Conversion from CString to const char * Pin
toxcct21-Mar-07 4:22
toxcct21-Mar-07 4:22 
QuestionThe Simplest of Graphics Pin
alimanishere21-Mar-07 3:35
alimanishere21-Mar-07 3:35 
AnswerRe: The Simplest of Graphics Pin
ilgale21-Mar-07 4:14
ilgale21-Mar-07 4:14 
GeneralRe: The Simplest of Graphics Pin
alimanishere21-Mar-07 23:45
alimanishere21-Mar-07 23:45 
QuestionRe: The Simplest of Graphics Pin
David Crow21-Mar-07 4:39
David Crow21-Mar-07 4:39 
AnswerRe: The Simplest of Graphics Pin
alimanishere21-Mar-07 22:26
alimanishere21-Mar-07 22:26 
GeneralRe: The Simplest of Graphics Pin
David Crow22-Mar-07 2:48
David Crow22-Mar-07 2:48 
QuestionRe: The Simplest of Graphics Pin
alimanishere23-Mar-07 0:30
alimanishere23-Mar-07 0:30 
AnswerRe: The Simplest of Graphics Pin
David Crow23-Mar-07 7:59
David Crow23-Mar-07 7:59 
QuestionExport Text/HTML to RTF / DOC Pin
Vikrant for VC++21-Mar-07 3:02
Vikrant for VC++21-Mar-07 3:02 

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.