Click here to Skip to main content
15,881,380 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Maybe you need to have those fields available in the struct, but default them to something like -1 when not in use. If it's something that may have multiple definitions, like the price, use vectors for that as well. Example:
struct ItemDefinition
{
    CString title;
    int itemNumber;
    double prices;
    int isInStock;
    vector<double> taxRates;
    vector<CString> descriptions;
};


Maybe this would help?

modified on Saturday, October 24, 2009 3:17 PM

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 
GeneralRe: C++ templates Pin
cpp_fanatic24-Oct-09 5:25
cpp_fanatic24-Oct-09 5:25 
GeneralRe: C++ templates Pin
cmk24-Oct-09 6:28
cmk24-Oct-09 6:28 

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.