Click here to Skip to main content
16,005,491 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: retreive handel Pin
Hans Ruck25-Feb-03 21:44
Hans Ruck25-Feb-03 21:44 
GeneralRe: retreive handel Pin
aguest26-Feb-03 2:14
aguest26-Feb-03 2:14 
GeneralDeny Time/Date change Pin
Presup25-Feb-03 12:47
Presup25-Feb-03 12:47 
GeneralRe: Deny Time/Date change Pin
Chris Losinger25-Feb-03 13:55
professionalChris Losinger25-Feb-03 13:55 
GeneralRe: Deny Time/Date change Pin
Presup1-Mar-03 18:29
Presup1-Mar-03 18:29 
GeneralRe: Deny Time/Date change Pin
peterchen25-Feb-03 22:25
peterchen25-Feb-03 22:25 
GeneralRe: Deny Time/Date change Pin
Presup1-Mar-03 18:31
Presup1-Mar-03 18:31 
General'=' operator with a list of args on the RHS Pin
Anton A. Loukine25-Feb-03 12:08
Anton A. Loukine25-Feb-03 12:08 
Hi:

I have created the following class:

class CQrgBond
{
private:
char* _cTicker;
double _fCpn;
int _nCpnFreq;
CQrgDate _dMaturityDate;
CQrgDate _dFirstCpnDate;
long _lAmountOS;

public:
CQrgBond( );
CQrgBond( char* cTicker, double fCpn, int nCpnFreq,
char* cMaturityDate, char* cFirstCpnDate,
long lAmountOS );
~CQrgBond();
}

I have created a constructor that can accept multiple arguments, but I am having troubles with creating an assignment operator with multiple arguments on the right hand side. My code doesn't work:

const CQrgBond& operator = ( { char* cTicker, double fCpn, int nCpnFreq,
char* cMaturityDate, char* cFirstCpnDate,
long lAmountOS } );

The error message is binary 'operator =' has too many parameters.

Ideally what I want to do it to have

CQrgBond m = { "Bond", 5.5, ... };

in addition to

CQrgBond m( "Bond", 5.5, ... );

Is this possible?

Any tips are appreciated.
GeneralRe: '=' operator with a list of args on the RHS Pin
Tim Smith25-Feb-03 12:41
Tim Smith25-Feb-03 12:41 
GeneralRe: '=' operator with a list of args on the RHS Pin
Michael Dunn25-Feb-03 12:43
sitebuilderMichael Dunn25-Feb-03 12:43 
GeneralLarge fonts causing a ghost background Pin
Brigg Thorp25-Feb-03 10:10
Brigg Thorp25-Feb-03 10:10 
General[Beta-tester search] Test System Information Viewer Pin
Dominik Reichl25-Feb-03 8:50
Dominik Reichl25-Feb-03 8:50 
GeneralRe: [Beta-tester search] Test System Information Viewer Pin
Neville Franks25-Feb-03 9:40
Neville Franks25-Feb-03 9:40 
GeneralRe: [Beta-tester search] Test System Information Viewer Pin
Dominik Reichl26-Feb-03 1:16
Dominik Reichl26-Feb-03 1:16 
GeneralRe: [Beta-tester search] Test System Information Viewer Pin
Anders Molin25-Feb-03 12:26
professionalAnders Molin25-Feb-03 12:26 
GeneralRe: [Beta-tester search] Test System Information Viewer Pin
Dominik Reichl26-Feb-03 1:17
Dominik Reichl26-Feb-03 1:17 
Generalan odd problem Pin
ns25-Feb-03 8:07
ns25-Feb-03 8:07 
GeneralRe: an odd problem Pin
Alvaro Mendez25-Feb-03 9:09
Alvaro Mendez25-Feb-03 9:09 
GeneralRe: an odd problem Pin
ns25-Feb-03 10:06
ns25-Feb-03 10:06 
QuestionWhat happened to MDI application in my VC++ 6.0? Pin
Anonymous25-Feb-03 7:43
Anonymous25-Feb-03 7:43 
AnswerRe: What happened to MDI application in my VC++ 6.0? Pin
palbano25-Feb-03 10:04
palbano25-Feb-03 10:04 
GeneralThe listbox part of a combobox Pin
grotesque25-Feb-03 7:40
grotesque25-Feb-03 7:40 
GeneralRe: The listbox part of a combobox Pin
Chris Richardson25-Feb-03 14:22
Chris Richardson25-Feb-03 14:22 
Generala question about a null object and STL Pin
ns25-Feb-03 7:35
ns25-Feb-03 7:35 
GeneralRe: a question about a null object and STL Pin
Dave Bryant25-Feb-03 8:06
Dave Bryant25-Feb-03 8:06 

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.