Click here to Skip to main content
15,897,187 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSyntax problem with "" Pin
gregarion28-Jan-10 3:50
gregarion28-Jan-10 3:50 
AnswerRe: Syntax problem with "" Pin
Covean28-Jan-10 3:55
Covean28-Jan-10 3:55 
QuestionDLL, EXE, dialog question Pin
DaveHitchman28-Jan-10 2:58
DaveHitchman28-Jan-10 2:58 
AnswerRe: DLL, EXE, dialog question Pin
Richard MacCutchan28-Jan-10 3:07
mveRichard MacCutchan28-Jan-10 3:07 
QuestionActiveX Controls. Pin
ashwath197928-Jan-10 2:28
ashwath197928-Jan-10 2:28 
QuestionInputing variable into string.find Pin
gregarion28-Jan-10 2:25
gregarion28-Jan-10 2:25 
QuestionRe: Inputing variable into string.find Pin
CPallini28-Jan-10 2:38
mveCPallini28-Jan-10 2:38 
AnswerRe: Inputing variable into string.find Pin
gregarion28-Jan-10 2:53
gregarion28-Jan-10 2:53 
Sorry, what i meant is this

int main ()
{
string s("abcdefghijleeeeeeeyhtpr") ;

int now = 6 ;
int nowe = 3 ;


int result = nowe - now ;

string::size_type f = result ;     
string::size_type loc2 = s.find( "yht" , f )  ;


cout << loc2 << endl ;
cout << f << endl ;



when i tried running this , i got the result displaying (4294967295 ). why is this? are we not allowed to use the variable (result) and put it to size_type f = result? is it not the same as size_type f = 3?
GeneralRe: Inputing variable into string.find Pin
CPallini28-Jan-10 3:35
mveCPallini28-Jan-10 3:35 
AnswerRe: Inputing variable into string.find Pin
David Crow28-Jan-10 3:35
David Crow28-Jan-10 3:35 
AnswerRe: Inputing variable into string.find Pin
David Crow28-Jan-10 3:32
David Crow28-Jan-10 3:32 
GeneralRe: Inputing variable into string.find Pin
gregarion28-Jan-10 3:47
gregarion28-Jan-10 3:47 
QuestionDetermine the language of the OS Pin
Joschwenk66628-Jan-10 1:13
Joschwenk66628-Jan-10 1:13 
AnswerRe: Determine the language of the OS Pin
Richard MacCutchan28-Jan-10 1:42
mveRichard MacCutchan28-Jan-10 1:42 
AnswerRe: Determine the language of the OS Pin
Covean28-Jan-10 1:43
Covean28-Jan-10 1:43 
Questionwin7 & vista's problem Pin
nenfa28-Jan-10 1:07
nenfa28-Jan-10 1:07 
AnswerRe: win7 & vista's problem Pin
Richard MacCutchan28-Jan-10 1:44
mveRichard MacCutchan28-Jan-10 1:44 
GeneralRe: win7 & vista's problem Pin
nenfa28-Jan-10 3:21
nenfa28-Jan-10 3:21 
GeneralRe: win7 & vista's problem Pin
nenfa28-Jan-10 3:28
nenfa28-Jan-10 3:28 
GeneralRe: win7 & vista's problem Pin
Richard MacCutchan28-Jan-10 5:07
mveRichard MacCutchan28-Jan-10 5:07 
GeneralRe: win7 & vista's problem Pin
nenfa28-Jan-10 21:52
nenfa28-Jan-10 21:52 
GeneralRe: win7 & vista's problem Pin
Richard MacCutchan28-Jan-10 22:22
mveRichard MacCutchan28-Jan-10 22:22 
GeneralRe: win7 &amp; vista's problem Pin
nenfa5-Feb-10 15:24
nenfa5-Feb-10 15:24 
QuestionConverting TCHAR to LPSTR to be used in CreateProcess [modified] Pin
lazy_panther28-Jan-10 0:57
lazy_panther28-Jan-10 0:57 
AnswerRe: Converting TCHAR to LPSTR to be used in CreateProcess Pin
Rajesh R Subramanian28-Jan-10 1:04
professionalRajesh R Subramanian28-Jan-10 1:04 

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.