Click here to Skip to main content
15,922,630 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Filling a child window in a dialog box dynamically Pin
cscafidi4-May-04 9:47
cscafidi4-May-04 9:47 
GeneralRe: Filling a child window in a dialog box dynamically Pin
David Crow4-May-04 10:01
David Crow4-May-04 10:01 
GeneralRe: Filling a child window in a dialog box dynamically Pin
cscafidi4-May-04 9:49
cscafidi4-May-04 9:49 
GeneralRe: Filling a child window in a dialog box dynamically Pin
Rafael Fernández López4-May-04 10:02
Rafael Fernández López4-May-04 10:02 
Generaloverloading operator >> Pin
kfaday4-May-04 8:39
kfaday4-May-04 8:39 
GeneralRe: overloading operator >> Pin
Joaquín M López Muñoz4-May-04 10:31
Joaquín M López Muñoz4-May-04 10:31 
GeneralRe: overloading operator >> Pin
kfaday4-May-04 11:01
kfaday4-May-04 11:01 
GeneralRe: overloading operator >> Pin
Joaquín M López Muñoz4-May-04 11:17
Joaquín M López Muñoz4-May-04 11:17 
Well, I don't think your s is really compiled as an int: sometimes the intellisense feature (by which you guessed the variable was being treated like an int) gets crazy, that's all.

I'd try the following:

1. Make sure you already have a proper #include<string>.
2. To rule out some problem with getline, replace that line (just for testing purposes) with something like
s="hello world";
or whatever. What happens now? Does this shed some light on your problem?
3. After the getline output the contents of s to cout to see what it has been fed with.

Hopefully, some of these measures will make it clear where the problem lies. Good luck, don't hesitate to come back if you can't come up woth a solution.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
GeneralRe: overloading operator &gt;&gt; Pin
kfaday4-May-04 11:38
kfaday4-May-04 11:38 
GeneralRe: overloading operator &gt;&gt; Pin
Joaquín M López Muñoz4-May-04 11:51
Joaquín M López Muñoz4-May-04 11:51 
GeneralRe: overloading operator &gt;&gt; Pin
kfaday4-May-04 12:43
kfaday4-May-04 12:43 
GeneralSMS Connector to GSM Server ... Pin
rasha20034-May-04 7:59
rasha20034-May-04 7:59 
GeneralRe: SMS Connector to GSM Server ... Pin
toxcct4-May-04 8:24
toxcct4-May-04 8:24 
GeneralRe: SMS Connector to GSM Server ... Pin
rasha20034-May-04 20:05
rasha20034-May-04 20:05 
Generaldialogs (perhaps modal) that dismiss upon losing focus Pin
jonathanleebrown4-May-04 7:34
jonathanleebrown4-May-04 7:34 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
David Crow4-May-04 8:23
David Crow4-May-04 8:23 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
jonathanleebrown4-May-04 8:32
jonathanleebrown4-May-04 8:32 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
David Crow4-May-04 8:42
David Crow4-May-04 8:42 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
jonathanleebrown4-May-04 9:20
jonathanleebrown4-May-04 9:20 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
jonathanleebrown4-May-04 9:30
jonathanleebrown4-May-04 9:30 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
David Crow4-May-04 10:07
David Crow4-May-04 10:07 
GeneralRe: dialogs (perhaps modal) that dismiss upon losing focus Pin
jonathanleebrown4-May-04 10:14
jonathanleebrown4-May-04 10:14 
GeneralBroadcasting a message Pin
#realJSOP4-May-04 7:24
professional#realJSOP4-May-04 7:24 
GeneralRe: Broadcasting a message Pin
David Crow4-May-04 8:27
David Crow4-May-04 8:27 
GeneralRe: Broadcasting a message Pin
#realJSOP4-May-04 8:49
professional#realJSOP4-May-04 8:49 

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.