Click here to Skip to main content
15,909,503 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to compare stderr to stdout Pin
DQNOK3-Jun-08 8:43
professionalDQNOK3-Jun-08 8:43 
AnswerRe: How to compare stderr to stdout Pin
maxie20052-Jun-08 19:12
maxie20052-Jun-08 19:12 
GeneralRe: How to compare stderr to stdout Pin
DQNOK3-Jun-08 3:17
professionalDQNOK3-Jun-08 3:17 
Question'LONG' to 'int' [modified] Pin
Queeny2-Jun-08 10:14
Queeny2-Jun-08 10:14 
QuestionRe: 'LONG' to 'int' Pin
Mark Salsbery2-Jun-08 10:25
Mark Salsbery2-Jun-08 10:25 
AnswerRe: 'LONG' to 'int' Pin
Queeny2-Jun-08 14:43
Queeny2-Jun-08 14:43 
GeneralRe: 'LONG' to 'int' Pin
Mark Salsbery3-Jun-08 4:58
Mark Salsbery3-Jun-08 4:58 
AnswerRe: 'LONG' to 'int' Pin
DQNOK2-Jun-08 10:36
professionalDQNOK2-Jun-08 10:36 
It should work even as a type long (I'm not familiar with type LONG: if it's a composite type, then it won't work).

Any reason you can't just cast it to int at the point you are actually using it within the loop?

This should work (provided x is not a composite type)
for( x = someval; x < someotherval; x++ )
{
   ...
   i = (int)x; //cast x to int where it's actually needed.
}


David
---------
Empirical studies indicate that 20% of the people drink 80% of the beer. With C++ developers, the rule is that 80% of the developers understand at most 20% of the language. It is not the same 20% for different people, so don't count on them to understand each other's code.
http://yosefk.com/c++fqa/picture.html#fqa-6.6

---------

AnswerRe: 'LONG' to 'int' Pin
Kwanalouie2-Jun-08 14:58
Kwanalouie2-Jun-08 14:58 
AnswerRe: 'LONG' to 'int' Pin
Akt_4_U2-Jun-08 20:44
Akt_4_U2-Jun-08 20:44 
QuestionChar * to wstring conversion Pin
jinbabaj2-Jun-08 7:37
jinbabaj2-Jun-08 7:37 
QuestionRe: Char * to wstring conversion Pin
David Crow2-Jun-08 7:56
David Crow2-Jun-08 7:56 
AnswerRe: Char * to wstring conversion Pin
Nemanja Trifunovic2-Jun-08 8:33
Nemanja Trifunovic2-Jun-08 8:33 
AnswerRe: Char * to wstring conversion Pin
Nemanja Trifunovic2-Jun-08 8:30
Nemanja Trifunovic2-Jun-08 8:30 
QuestionHow to get the file icon and insert to listctrl? Pin
york5282-Jun-08 7:07
york5282-Jun-08 7:07 
AnswerRe: How to get the file icon and insert to listctrl? Pin
Jijo.Raj2-Jun-08 7:34
Jijo.Raj2-Jun-08 7:34 
GeneralRe: How to get the file icon and insert to listctrl? Pin
york5282-Jun-08 23:31
york5282-Jun-08 23:31 
AnswerRe: How to get the file icon and insert to listctrl? Pin
Hamid_RT3-Jun-08 1:28
Hamid_RT3-Jun-08 1:28 
AnswerRe: How to get the file icon and insert to listctrl? Pin
Hamid_RT3-Jun-08 1:31
Hamid_RT3-Jun-08 1:31 
GeneralRe: How to get the file icon and insert to listctrl? Pin
york5283-Jun-08 2:38
york5283-Jun-08 2:38 
GeneralRe: How to get the file icon and insert to listctrl? Pin
Hamid_RT3-Jun-08 3:08
Hamid_RT3-Jun-08 3:08 
GeneralRe: How to get the file icon and insert to listctrl? Pin
york5283-Jun-08 3:32
york5283-Jun-08 3:32 
GeneralRe: How to get the file icon and insert to listctrl? Pin
Hamid_RT3-Jun-08 3:55
Hamid_RT3-Jun-08 3:55 
QuestionIWebBrowser2, NewWindow2, cookies, etc. Pin
Chris Losinger2-Jun-08 5:55
professionalChris Losinger2-Jun-08 5:55 
AnswerRe: IWebBrowser2, NewWindow2, cookies, etc. Pin
led mike2-Jun-08 9:45
led mike2-Jun-08 9:45 

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.