Click here to Skip to main content
15,887,485 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CString Pin
Chintoo72315-Feb-06 2:15
Chintoo72315-Feb-06 2:15 
QuestionRe: CString Pin
David Crow15-Feb-06 3:55
David Crow15-Feb-06 3:55 
AnswerRe: CString Pin
James R. Twine15-Feb-06 7:02
James R. Twine15-Feb-06 7:02 
QuestionHelp in Remote Desktop Applications akka. VNC Pin
Girish60114-Feb-06 21:02
Girish60114-Feb-06 21:02 
GeneralRe: Help in Remote Desktop Applications akka. VNC Pin
Malli_S14-Feb-06 21:56
Malli_S14-Feb-06 21:56 
GeneralRe: Help in Remote Desktop Applications akka. VNC Pin
ThatsAlok14-Feb-06 22:46
ThatsAlok14-Feb-06 22:46 
GeneralRe: Help in Remote Desktop Applications akka. VNC Pin
Girish60114-Feb-06 22:53
Girish60114-Feb-06 22:53 
QuestionWhy my "i" counter doesn't increases? Pin
Rassul Yunussov14-Feb-06 20:56
Rassul Yunussov14-Feb-06 20:56 
The cycle i made should work for three times,
for the first time in the debug the "i" counter increses from zero to 1, as i see on the second time "i" counter doesn't increases!!! But it have to!
I can't understand...
Here is the code:
for(int i =0;i<ColumnsNumber;i++)<br />
                {<br />
                        //Reading Column Definition<br />
                        DBFColumn column;<br />
                        dbffile.read(column.FieldName,10);<br />
                        dbffile.read((char*)&column.caPad,sizeof(char));<br />
                        dbffile.read((char*)&column.cFieldType,sizeof(char));<br />
                        dbffile.read((char*)&column.lwhere,sizeof(int));<br />
                        dbffile.read((char*)&column.cFieldLength,sizeof(char));<br />
                        dbffile.read((char*)&column.cFieldPrecision,sizeof(char));<br />
                        dbffile.read((char*)&column.caPad3,14);<br />
                        <br />
                        /*for(int j= 0;j<lColumns[i].FieldName.length;j++)<br />
                        {<br />
                            if(lColumns[i].FieldName[j]=='\0')<br />
                            {<br />
                                lColumns[i].FieldName = lColumns[i].FieldName.Substring(0,j);<br />
                                break;<br />
                            }<br />
                        }*/<br />
                        <br />
                        SQLQuery+=(string)column.FieldName+"_dbf";<br />
                        switch(column.cFieldType)<br />
                        {<br />
                            case 'F':<br />
                                SQLQuery+=" float,";<br />
                                break;<br />
                            case 'N':<br />
                            {   <br />
                                if(column.cFieldLength==31||column.cFieldLength==12)<br />
                                    SQLQuery+=" float,";    <br />
                                else<br />
                                    if(column.cFieldLength==6)<br />
                                    SQLQuery+=" smallint,";<br />
                                else<br />
                                    SQLQuery+=" int,";<br />
                                break;<br />
                            }<br />
                            case 'L':<br />
                            {<br />
                                SQLQuery+=" bit,";<br />
                                break;<br />
                            }<br />
                            case 'D':<br />
                            {<br />
                                SQLQuery+=" datetime,";<br />
                                break;<br />
                            }<br />
                            case 'C':<br />
                            {<br />
                                char number[32];<br />
                                SQLQuery+=string(" VARCHAR (")+_itoa(column.cFieldLength+1,number,10)+"),";<br />
                                break;<br />
                            }<br />
                        };<br />
                    Columns.push_back(column);<br />
                }


-- modified at 2:57 Wednesday 15th February, 2006
AnswerRe: Why my &quot;i&quot; counter doesn't increases? Pin
Rage14-Feb-06 21:29
professionalRage14-Feb-06 21:29 
GeneralRe: Why my &quot;i&quot; counter doesn't increases? Pin
Rassul Yunussov14-Feb-06 21:54
Rassul Yunussov14-Feb-06 21:54 
GeneralRe: Why my &quot;i&quot; counter doesn't increases? Pin
Rage14-Feb-06 22:33
professionalRage14-Feb-06 22:33 
QuestionRe: Why my &quot;i&quot; counter doesn't increases? Pin
David Crow15-Feb-06 3:57
David Crow15-Feb-06 3:57 
AnswerRe: Why my &quot;i&quot; counter doesn't increases? Pin
Rassul Yunussov15-Feb-06 17:35
Rassul Yunussov15-Feb-06 17:35 
AnswerRe: Why my &quot;i&quot; counter doesn't increases? Pin
Owner drawn14-Feb-06 21:31
Owner drawn14-Feb-06 21:31 
GeneralRe: Why my &quot;i&quot; counter doesn't increases? Pin
Malli_S14-Feb-06 21:47
Malli_S14-Feb-06 21:47 
GeneralRe: Why my &quot;i&quot; counter doesn't increases? Pin
Rassul Yunussov14-Feb-06 21:52
Rassul Yunussov14-Feb-06 21:52 
AnswerRe: Why my "i" counter doesn't increases? Pin
Ryan Binns14-Feb-06 21:55
Ryan Binns14-Feb-06 21:55 
AnswerRe: Why my &quot;i&quot; counter doesn't increases? Pin
Malli_S14-Feb-06 22:04
Malli_S14-Feb-06 22:04 
QuestionConsole printing Pin
RichardS14-Feb-06 20:48
RichardS14-Feb-06 20:48 
AnswerRe: Console printing Pin
kakan14-Feb-06 21:16
professionalkakan14-Feb-06 21:16 
AnswerRe: Console printing Pin
Malli_S14-Feb-06 22:08
Malli_S14-Feb-06 22:08 
GeneralRe: Console printing Pin
RichardS14-Feb-06 22:36
RichardS14-Feb-06 22:36 
QuestionRe: Console printing Pin
David Crow15-Feb-06 4:03
David Crow15-Feb-06 4:03 
AnswerRe: Console printing Pin
Dan McCormick15-Feb-06 4:45
Dan McCormick15-Feb-06 4:45 
QuestionVC++ 6 connect to Access using ODBC Pin
stny200014-Feb-06 20:37
stny200014-Feb-06 20:37 

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.