Click here to Skip to main content
16,007,779 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Read in, write out RTF Pin
DanYELL11-Apr-06 12:59
DanYELL11-Apr-06 12:59 
GeneralRe: Read in, write out RTF Pin
DanYELL11-Apr-06 13:37
DanYELL11-Apr-06 13:37 
GeneralRe: Read in, write out RTF Pin
dabs11-Apr-06 14:15
dabs11-Apr-06 14:15 
GeneralRe: Read in, write out RTF Pin
Trollslayer11-Apr-06 22:51
mentorTrollslayer11-Apr-06 22:51 
QuestionIdea about => fun(CString str, ...) Pin
Andy Rama11-Apr-06 3:43
Andy Rama11-Apr-06 3:43 
AnswerRe: Idea about => fun(CString str, ...) Pin
toxcct11-Apr-06 3:49
toxcct11-Apr-06 3:49 
AnswerRe: Idea about => fun(CString str, ...) Pin
David Crow11-Apr-06 3:52
David Crow11-Apr-06 3:52 
GeneralRe: Idea about => fun(CString str, ...) Pin
Andy Rama11-Apr-06 22:31
Andy Rama11-Apr-06 22:31 
I am using following function. Is this a correct way?

int CMyListControl::insertItems(int argNo, CString strItem, ...)
{
CString strTemp[10];

LVITEM lvItem;
SetRedraw(FALSE);
lvItem.mask = LVIF_IMAGE | LVIF_TEXT;
lvItem.iItem = CurRow;
for(int i=0; i < argNo ;i++)
{
strTemp[i].Format("%s",*((&strItem)+i));

lvItem.iSubItem = i;
lvItem.pszText = (LPTSTR)(LPCTSTR)(strTemp[i]);

(i==0)?InsertItem(&lvItem):SetItem(&lvItem);
}

return(CurRow++);
}

But i dont want to use 'argNo' as an indiaction of no of 'CString' parameters passed to the function.
Even I failed to use 'char' string in place of 'CString'.

It is giving Error, if I want to use function as,
int CMyListControl::insertItems(int argNo, CString strItem, ..., int Row = -1)
QuestionHow to Impersonate a Remote Machine. Pin
kiran janaswamy11-Apr-06 3:39
kiran janaswamy11-Apr-06 3:39 
QuestionRe: How to Impersonate a Remote Machine. Pin
David Crow11-Apr-06 3:54
David Crow11-Apr-06 3:54 
QuestionCEdit -> show messages in all languages. Pin
Suyash11-Apr-06 3:30
Suyash11-Apr-06 3:30 
AnswerRe: CEdit -> show messages in all languages. Pin
jayart11-Apr-06 6:06
jayart11-Apr-06 6:06 
GeneralRe: CEdit -> show messages in all languages. Pin
Suyash12-Apr-06 1:13
Suyash12-Apr-06 1:13 
Questiondisable/grey out date time picker Pin
viperlogic11-Apr-06 3:23
viperlogic11-Apr-06 3:23 
AnswerRe: disable/grey out date time picker Pin
-Dy11-Apr-06 3:38
-Dy11-Apr-06 3:38 
AnswerRe: disable/grey out date time picker Pin
RickyC11-Apr-06 3:38
RickyC11-Apr-06 3:38 
GeneralRe: disable/grey out date time picker Pin
viperlogic11-Apr-06 4:20
viperlogic11-Apr-06 4:20 
GeneralRe: disable/grey out date time picker Pin
toxcct11-Apr-06 4:26
toxcct11-Apr-06 4:26 
Questionfolder with icons Pin
_tasleem11-Apr-06 3:17
_tasleem11-Apr-06 3:17 
QuestionRe: folder with icons Pin
David Crow11-Apr-06 3:19
David Crow11-Apr-06 3:19 
AnswerRe: folder with icons Pin
Hamid_RT11-Apr-06 3:26
Hamid_RT11-Apr-06 3:26 
AnswerRe: folder with icons Pin
ThatsAlok11-Apr-06 8:52
ThatsAlok11-Apr-06 8:52 
QuestionPipe from GUI app to console process Pin
RickyC11-Apr-06 3:09
RickyC11-Apr-06 3:09 
QuestionRe: Pipe from GUI app to console process Pin
David Crow11-Apr-06 3:13
David Crow11-Apr-06 3:13 
GeneralRe: Pipe from GUI app to console process Pin
RickyC11-Apr-06 3:23
RickyC11-Apr-06 3:23 

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.