Click here to Skip to main content
15,921,156 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CWinThread "issues" Pin
John M. Drescher18-Apr-04 18:13
John M. Drescher18-Apr-04 18:13 
GeneralRe: CWinThread "issues" Pin
dreamerzz20-Apr-04 2:15
dreamerzz20-Apr-04 2:15 
GeneralRe: CWinThread "issues" Pin
John M. Drescher20-Apr-04 4:28
John M. Drescher20-Apr-04 4:28 
GeneralCreating string from BSTR Pin
yanuart12-Apr-04 6:25
yanuart12-Apr-04 6:25 
GeneralRe: Creating string from BSTR Pin
Darshan Jani12-Apr-04 7:02
Darshan Jani12-Apr-04 7:02 
GeneralRe: Creating string from BSTR Pin
GuimaSun12-Apr-04 7:07
GuimaSun12-Apr-04 7:07 
GeneralKeep the Client DC state in a Bitmap Pin
stelitsisan12-Apr-04 5:40
stelitsisan12-Apr-04 5:40 
GeneralCustomized CFileDialog Pin
benny232312-Apr-04 5:28
benny232312-Apr-04 5:28 
GeneralRe: Customized CFileDialog Pin
David Crow12-Apr-04 7:40
David Crow12-Apr-04 7:40 
GeneralRe: Customized CFileDialog Pin
benny232312-Apr-04 8:36
benny232312-Apr-04 8:36 
GeneralRe: Customized CFileDialog Pin
David Crow12-Apr-04 9:22
David Crow12-Apr-04 9:22 
GeneralMy Service gets stopped when checked for dependensies Pin
Anonymous12-Apr-04 5:01
Anonymous12-Apr-04 5:01 
General_variant_t causing linker error Pin
yanuart12-Apr-04 4:23
yanuart12-Apr-04 4:23 
GeneralRe: _variant_t causing linker error Pin
David Crow12-Apr-04 4:28
David Crow12-Apr-04 4:28 
GeneralRe: _variant_t causing linker error Pin
yanuart12-Apr-04 6:23
yanuart12-Apr-04 6:23 
Generalcreating name pipe Pin
pnpfriend12-Apr-04 3:40
pnpfriend12-Apr-04 3:40 
GeneralRe: creating name pipe Pin
GuimaSun12-Apr-04 7:51
GuimaSun12-Apr-04 7:51 
GeneralRe: creating name pipe Pin
pnpfriend13-Apr-04 7:47
pnpfriend13-Apr-04 7:47 
GeneralExperts help reg threads Pin
ykutanoor12-Apr-04 3:14
ykutanoor12-Apr-04 3:14 
GeneralRe: Experts help reg threads Pin
David Crow12-Apr-04 3:30
David Crow12-Apr-04 3:30 
Generalcopy constructor Pin
packetlos12-Apr-04 3:12
packetlos12-Apr-04 3:12 
Hi there,

If I add a CArray such as CByteArray to a struct like so:
<br />
typedef struct DATAGRAM<br />
{<br />
   // other types here...<br />
   CByteArray pkt_data; 	// Packet data<br />
} DATAGRAM;<br />


and then try and assign something of type DATAGRAM to type DATAGRAM i get the following compile error:
C2558: struct 'DATAGRAM' : no copy constructor available or copy constructor is declared 'explicit'

I know this is because because CByteArray is of dynamic type so I need to provide a copy constructor. So my question is do I need to provide one for DATAGRAM or do I really need to provide one for CByteArray and if so could somebody post a code snippet to help me out?

Cheers

Packetlos
GeneralRe: copy constructor Pin
toxcct12-Apr-04 3:50
toxcct12-Apr-04 3:50 
GeneralRe: copy constructor Pin
antlers12-Apr-04 5:01
antlers12-Apr-04 5:01 
GeneralRe: copy constructor Pin
packetlos12-Apr-04 5:17
packetlos12-Apr-04 5:17 
GeneralRe: copy constructor Pin
Tim Smith12-Apr-04 6:23
Tim Smith12-Apr-04 6:23 

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.