Click here to Skip to main content
15,895,667 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaleasy_odbc compile problem Pin
intrinsic8-Apr-04 9:32
intrinsic8-Apr-04 9:32 
GeneralRe: easy_odbc compile problem Pin
Mike Dimmick9-Apr-04 0:26
Mike Dimmick9-Apr-04 0:26 
GeneralRe: easy_odbc compile problem Pin
intrinsic9-Apr-04 2:47
intrinsic9-Apr-04 2:47 
GeneralRe: easy_odbc compile problem Pin
intrinsic9-Apr-04 3:06
intrinsic9-Apr-04 3:06 
GeneralRe: easy_odbc compile problem Pin
Mike Dimmick9-Apr-04 5:50
Mike Dimmick9-Apr-04 5:50 
Generaloperator overloading Pin
Guido Loupias8-Apr-04 8:20
Guido Loupias8-Apr-04 8:20 
GeneralRe: operator overloading Pin
Renjith Ramachandran8-Apr-04 8:28
Renjith Ramachandran8-Apr-04 8:28 
GeneralRe: operator overloading Pin
toxcct8-Apr-04 9:23
toxcct8-Apr-04 9:23 
of course you can, but only in C++

But what is troubling in your code lines, is that you overload an "=" operator, but it doesn't return anything, so, if the parameter is the value you want to assign to another, where is the destination ??
Are these operator inside classes definitions?

is this better ?

<font style="color:blue;">void operator</font> = (<font style="color:blue;">void</font>* DestObject, <font style="color:blue;">char</font>* arg_cDate);     <font style="color:green;">//Global function</font>
<font style="color:blue;">CDate& CDate::operator</font> = (CDate arg_cdDate);             <font style="color:green;">//Member function</font>

for the last one, i would even prefered that synopsis :

<font style="color:blue;">CDate& CDate::operator</font> = (<font style="color:blue;">const</font> CDate& refDate);        <font style="color:green;">//CDate member function</font>

what do you think about this ?



TOXCCT >>> GEII power


GeneralRe: operator overloading Pin
Guido Loupias8-Apr-04 9:50
Guido Loupias8-Apr-04 9:50 
Generalfile problem Pin
kfaday8-Apr-04 7:12
kfaday8-Apr-04 7:12 
GeneralRe: file problem Pin
Prakash Nadar8-Apr-04 7:31
Prakash Nadar8-Apr-04 7:31 
GeneralRe: file problem Pin
kfaday8-Apr-04 7:54
kfaday8-Apr-04 7:54 
GeneralRe: file problem Pin
Renjith Ramachandran8-Apr-04 8:37
Renjith Ramachandran8-Apr-04 8:37 
GeneralRe: file problem Pin
toxcct8-Apr-04 9:11
toxcct8-Apr-04 9:11 
GeneralRe: file problem Pin
Paul Ranson8-Apr-04 11:14
Paul Ranson8-Apr-04 11:14 
Generalrecv/WSARecv blocking Pin
David Crow8-Apr-04 7:08
David Crow8-Apr-04 7:08 
GeneralRe: recv/WSARecv blocking Pin
Prakash Nadar8-Apr-04 7:36
Prakash Nadar8-Apr-04 7:36 
GeneralRe: recv/WSARecv blocking Pin
valikac8-Apr-04 9:00
valikac8-Apr-04 9:00 
GeneralRe: recv/WSARecv blocking Pin
toxcct8-Apr-04 9:08
toxcct8-Apr-04 9:08 
GeneralRe: recv/WSARecv blocking Pin
David Crow8-Apr-04 9:24
David Crow8-Apr-04 9:24 
GeneralRe: recv/WSARecv blocking Pin
cmk8-Apr-04 10:57
cmk8-Apr-04 10:57 
GeneralRe: recv/WSARecv blocking Pin
Mike Dimmick9-Apr-04 0:30
Mike Dimmick9-Apr-04 0:30 
GeneralRe: recv/WSARecv blocking Pin
David Crow9-Apr-04 8:40
David Crow9-Apr-04 8:40 
QuestionMSXML2 - How do I use it? Pin
Anonymous8-Apr-04 6:45
Anonymous8-Apr-04 6:45 
AnswerRe: MSXML2 - How do I use it? Pin
thowra8-Apr-04 7:01
thowra8-Apr-04 7:01 

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.