Click here to Skip to main content
15,878,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Font metric questions Pin
Richard MacCutchan25-Oct-09 6:03
mveRichard MacCutchan25-Oct-09 6:03 
GeneralRe: Font metric questions Pin
transoft25-Oct-09 6:05
transoft25-Oct-09 6:05 
GeneralRe: Font metric questions Pin
Richard MacCutchan25-Oct-09 6:19
mveRichard MacCutchan25-Oct-09 6:19 
Questionwrite CString Datatype to a DaoDatabase in UTF8 Format? Pin
A&Ms24-Oct-09 9:26
A&Ms24-Oct-09 9:26 
AnswerRe: write CString Datatype to a DaoDatabase in UTF8 Format? Pin
«_Superman_»24-Oct-09 9:47
professional«_Superman_»24-Oct-09 9:47 
QuestionCREATE AN EMPTY STRUCT? Pin
rhenry8424-Oct-09 7:07
rhenry8424-Oct-09 7:07 
AnswerRe: CREATE AN EMPTY STRUCT? Pin
Nemanja Trifunovic24-Oct-09 7:39
Nemanja Trifunovic24-Oct-09 7:39 
AnswerRe: CREATE AN EMPTY STRUCT? Pin
josda100024-Oct-09 7:44
josda100024-Oct-09 7:44 
To me it sounds like you want to use a vector of structs (or another dynamically sizeable storage unit, like CArray or something). so you'd declare it as, for example, vector<RecordFields> theRecords;

This can be done if you declared your struct as this:
struct RecordFields
{
    CString title;
    double price;
    bool isInStock;
}


I hope this helps a bit. Basically, you read in the file, and as you get new records, you push a new struct into the vector using push_back().
GeneralRe: CREATE AN EMPTY STRUCT? Pin
rhenry8424-Oct-09 8:19
rhenry8424-Oct-09 8:19 
GeneralRe: CREATE AN EMPTY STRUCT? [modified] Pin
josda100024-Oct-09 9:10
josda100024-Oct-09 9:10 
GeneralRe: CREATE AN EMPTY STRUCT? Pin
Stuart Dootson24-Oct-09 9:40
professionalStuart Dootson24-Oct-09 9:40 
QuestionStupid bug in main function Pin
bubuzzz24-Oct-09 5:49
bubuzzz24-Oct-09 5:49 
QuestionRe: Stupid bug in main function Pin
Nuri Ismail24-Oct-09 5:57
Nuri Ismail24-Oct-09 5:57 
AnswerRe: Stupid bug in main function Pin
bubuzzz24-Oct-09 6:17
bubuzzz24-Oct-09 6:17 
JokeRe: Stupid bug in main function Pin
Nuri Ismail24-Oct-09 6:21
Nuri Ismail24-Oct-09 6:21 
QuestionOOPS Pin
ammu2324-Oct-09 5:10
ammu2324-Oct-09 5:10 
AnswerRe: OOPS Pin
Michael Schubert24-Oct-09 5:34
Michael Schubert24-Oct-09 5:34 
AnswerRe: OOPS Pin
Nuri Ismail24-Oct-09 5:37
Nuri Ismail24-Oct-09 5:37 
AnswerRe: OOPS Pin
«_Superman_»24-Oct-09 10:04
professional«_Superman_»24-Oct-09 10:04 
AnswerRe: OOPS Pin
CPallini24-Oct-09 10:30
mveCPallini24-Oct-09 10:30 
QuestionMoving mouse over the buttons. Pin
Nikz224-Oct-09 5:02
Nikz224-Oct-09 5:02 
QuestionRe: Moving mouse over the buttons. Pin
«_Superman_»24-Oct-09 9:36
professional«_Superman_»24-Oct-09 9:36 
AnswerRe: Moving mouse over the buttons. Pin
Nikz224-Oct-09 13:09
Nikz224-Oct-09 13:09 
QuestionC++ templates Pin
cpp_fanatic24-Oct-09 3:34
cpp_fanatic24-Oct-09 3:34 
AnswerRe: C++ templates Pin
cmk24-Oct-09 5:14
cmk24-Oct-09 5:14 

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.