Click here to Skip to main content
15,915,611 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How do I load a 16x16 icon? Pin
Barvus1-May-04 7:02
Barvus1-May-04 7:02 
GeneralRe: How do I load a 16x16 icon? Pin
f641-May-04 19:21
f641-May-04 19:21 
GeneralRe: How do I load a 16x16 icon? Pin
Barvus1-May-04 20:05
Barvus1-May-04 20:05 
GeneralRe: How do I load a 16x16 icon? Pin
f642-May-04 6:11
f642-May-04 6:11 
Questionwhy doesn't run well about string type in this way? Pin
vividtang1-May-04 2:15
vividtang1-May-04 2:15 
AnswerRe: why doesn't run well about string type in this way? Pin
Jijo.Raj1-May-04 2:46
Jijo.Raj1-May-04 2:46 
GeneralRe: why doesn't run well about string type in this way? Pin
vividtang1-May-04 4:00
vividtang1-May-04 4:00 
AnswerRe: why doesn't run well about string type in this way? Pin
Michael Dunn1-May-04 6:12
sitebuilderMichael Dunn1-May-04 6:12 
Reposting your includes:
#include <iostream.h>
#include <fstream.h>
#include <string.h>
You have a few problems here. First, you are using the old iostream headers instead of the STL ones. Change them to <fstream> and <iostream> without the .h extension.
Also, string.h is the C library header with the C-style string functions. You want to #include <string>
Next, the type is string not String.
And finally, as the other post said, you need to use the std:: namespace name before the types because STL types are in that namespace.

More details on the iostream vs. STL headers here[^]


--Mike--
Personal stuff:: Ericahist | Homepage
Shareware stuff:: 1ClickPicGrabber | RightClick-Encrypt
CP stuff:: CP SearchBar v2.0.2 | C++ Forum FAQ

----
#include "witty-quote.h"
GeneralPutting .Dll inside .Exe Pin
Opwar30-Apr-04 22:58
Opwar30-Apr-04 22:58 
GeneralRe: Putting .Dll inside .Exe Pin
Alexander M.,1-May-04 0:47
Alexander M.,1-May-04 0:47 
GeneralRe: Putting .Dll inside .Exe Pin
Opwar1-May-04 10:42
Opwar1-May-04 10:42 
GeneralRe: Putting .Dll inside .Exe Pin
Alexander M.,3-May-04 1:50
Alexander M.,3-May-04 1:50 
GeneralAccessing public variable Pin
Krugger40430-Apr-04 22:11
Krugger40430-Apr-04 22:11 
GeneralRe: Accessing public variable Pin
Ravi Bhavnani1-May-04 1:49
professionalRavi Bhavnani1-May-04 1:49 
QuestionHow to find the source application of a command Pin
Scozturk30-Apr-04 21:05
professionalScozturk30-Apr-04 21:05 
AnswerRe: How to find the source application of a command Pin
alex.barylski1-May-04 2:08
alex.barylski1-May-04 2:08 
GeneralTab Ctrl Customization Pin
Manish Sinha30-Apr-04 20:55
Manish Sinha30-Apr-04 20:55 
GeneralRe: Tab Ctrl Customization Pin
alex.barylski1-May-04 2:01
alex.barylski1-May-04 2:01 
GeneralWeb Browser Pin
Gem130-Apr-04 20:08
Gem130-Apr-04 20:08 
GeneralRe: Web Browser Pin
Krugger40430-Apr-04 22:15
Krugger40430-Apr-04 22:15 
GeneralRe: Web Browser Pin
alex.barylski1-May-04 1:59
alex.barylski1-May-04 1:59 
GeneralDisplaying a JPG in MFC Pin
toothless boots30-Apr-04 18:08
toothless boots30-Apr-04 18:08 
GeneralRe: Displaying a JPG in MFC Pin
l a u r e n30-Apr-04 19:41
l a u r e n30-Apr-04 19:41 
GeneralRe: Displaying a JPG in MFC Pin
gUrM33T30-Apr-04 19:52
gUrM33T30-Apr-04 19:52 
GeneralRe: Displaying a JPG in MFC Pin
f6430-Apr-04 20:19
f6430-Apr-04 20:19 

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.