Click here to Skip to main content
15,904,416 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: cmath.h compile error Problem solved Pin
Haakon S.11-Dec-20 4:07
Haakon S.11-Dec-20 4:07 
GeneralRe: cmath.h compile error Problem solved Pin
Randor 11-Dec-20 8:04
professional Randor 11-Dec-20 8:04 
GeneralRe: cmath.h compile error Problem solved Pin
Haakon S.11-Dec-20 23:56
Haakon S.11-Dec-20 23:56 
QuestionC++ class question Pin
pkfox8-Dec-20 6:40
professionalpkfox8-Dec-20 6:40 
AnswerRe: C++ class question Pin
Mircea Neacsu8-Dec-20 6:51
Mircea Neacsu8-Dec-20 6:51 
GeneralRe: C++ class question Pin
pkfox8-Dec-20 7:17
professionalpkfox8-Dec-20 7:17 
AnswerRe: C++ class question Pin
Mircea Neacsu8-Dec-20 7:29
Mircea Neacsu8-Dec-20 7:29 
QuestionRe: C++ class question Pin
David Crow8-Dec-20 7:06
David Crow8-Dec-20 7:06 
AnswerRe: C++ class question Pin
pkfox8-Dec-20 7:16
professionalpkfox8-Dec-20 7:16 
SuggestionRe: C++ class question Pin
David Crow8-Dec-20 7:19
David Crow8-Dec-20 7:19 
AnswerRe: C++ class question Pin
Joe Woodbury8-Dec-20 10:00
professionalJoe Woodbury8-Dec-20 10:00 
AnswerRe: C++ class question Pin
CPallini8-Dec-20 21:29
mveCPallini8-Dec-20 21:29 
GeneralRe: C++ class question Pin
pkfox9-Dec-20 3:19
professionalpkfox9-Dec-20 3:19 
GeneralRe: C++ class question Pin
CPallini9-Dec-20 7:28
mveCPallini9-Dec-20 7:28 
AnswerRe: C++ class question Pin
Daniel Pfeffer9-Dec-20 1:19
professionalDaniel Pfeffer9-Dec-20 1:19 
AnswerRe: C++ class question Pin
Richard MacCutchan9-Dec-20 3:43
mveRichard MacCutchan9-Dec-20 3:43 
GeneralRe: C++ class question Pin
pkfox9-Dec-20 4:53
professionalpkfox9-Dec-20 4:53 
GeneralRe: C++ class question Pin
Richard MacCutchan9-Dec-20 5:42
mveRichard MacCutchan9-Dec-20 5:42 
pkfox wrote:
ypu can declare like
someclass someclassob {get;set;}

That's a new one on me, I must look it up.


As I mentioned you need to add a parameterless constructor to the class, and some method that allows you to add a filename at runtime. something like:
C++
class BillingDates
{
public:
    BillingDates();
    BillingDates(std::string InputFile);
    void addFile(std::string InputFile);
    void ProcessDates();
// stuff removed for readability
};
// the implementation of addFile will do the same as the constructor that takes a filename.

You can then write:
C++
BillingDates *bData;
BillingDates bData2;

// and later on something like
bData2.addFile("your file name here");
bData = &bData2;

But I really don't know why you need any of that. All you really need is:
C++
BillingDates *bData;

// and later on something like

bData = new BillingDates("your file name here");

Does that make (any) sense?
GeneralRe: C++ class question Pin
pkfox9-Dec-20 6:05
professionalpkfox9-Dec-20 6:05 
GeneralRe: C++ class question Pin
Richard MacCutchan9-Dec-20 6:10
mveRichard MacCutchan9-Dec-20 6:10 
GeneralRe: C++ class question Pin
pkfox9-Dec-20 11:02
professionalpkfox9-Dec-20 11:02 
QuestionDROPEFFECT_NONE does not work in conjunction with CF_HDROP Pin
Member 119022653-Dec-20 7:42
Member 119022653-Dec-20 7:42 
QuestionRe: DROPEFFECT_NONE does not work in conjunction with CF_HDROP Pin
David Crow4-Dec-20 7:04
David Crow4-Dec-20 7:04 
AnswerRe: DROPEFFECT_NONE does not work in conjunction with CF_HDROP Pin
Member 119022656-Dec-20 12:48
Member 119022656-Dec-20 12:48 
QuestionNetserverenum function return false detail Pin
Member 141178532-Dec-20 23:43
Member 141178532-Dec-20 23:43 

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.