Click here to Skip to main content
15,909,039 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Question about Harddrive writes Pin
David Crow14-May-07 10:51
David Crow14-May-07 10:51 
GeneralRe: Question about Harddrive writes Pin
Rajesh R Subramanian15-May-07 7:19
professionalRajesh R Subramanian15-May-07 7:19 
GeneralRe: Question about Harddrive writes Pin
David Crow15-May-07 7:50
David Crow15-May-07 7:50 
GeneralRe: Question about Harddrive writes Pin
Rajesh R Subramanian17-May-07 2:09
professionalRajesh R Subramanian17-May-07 2:09 
GeneralRe: Question about Harddrive writes Pin
David Crow17-May-07 2:31
David Crow17-May-07 2:31 
GeneralRe: Question about Harddrive writes Pin
Rajesh R Subramanian17-May-07 20:25
professionalRajesh R Subramanian17-May-07 20:25 
AnswerRe: Question about Harddrive writes Pin
Michael Sadlon14-May-07 11:23
Michael Sadlon14-May-07 11:23 
QuestionError C2621 Pin
Reagan Conservative14-May-07 10:10
Reagan Conservative14-May-07 10:10 
I cannot understand what the problem is with this code and why I get this error:
error C2621: union 'EntryInfoUnion' : member 'strInfoStruct' has copy constructor

struct floatInfoStruct
{
   float min;
   float max;
   float* result;
   float test;
};

struct intInfoStruct
{
   int min;
   int max;
   int* result;
   int test;
};

struct timeInfoStruct
{
   SECONDS min;
   SECONDS max;
   SECONDS *result;
   TimeFormats Format;
   SECONDS test;
};

struct angleInfoStruct
{
   DEGREES *result;
   DEGREES test;
};

struct latlonInfoStruct
{
   LAT_DEGREES *lat_result;
   LON_DEGREES *lon_result;
   LAT_DEGREES lat_test;
   LON_DEGREES lon_test;
};

struct baroInfoStruct
{
   float min; 
   float max; 
   float *result;
   float test;   
};

struct strInfoStruct
{
   CString min;
   CString max;
   CString *result;
   CString test;
};

union EntryInfoUnion
{
   floatInfoStruct  floatInfo;
   intInfoStruct    intInfo;
   timeInfoStruct   timeInfo;
   angleInfoStruct  angleInfo;
   latlonInfoStruct latlonInfo;
   baroInfoStruct   baroInfo;
   strInfoStruct    strInfo;
};


What does the error message (union 'EntryInfoUnion' : member 'strInfoStruct' has copy constructor) trying to tell me.

I just don't see the problem with the code snippet.

Thanks.



John P.

AnswerRe: Error C2621 Pin
David Crow14-May-07 10:37
David Crow14-May-07 10:37 
GeneralRe: Error C2621 Pin
Reagan Conservative14-May-07 10:45
Reagan Conservative14-May-07 10:45 
AnswerRe: Error C2621 Pin
Dustin Henry14-May-07 10:47
Dustin Henry14-May-07 10:47 
GeneralRe: Error C2621 Pin
Reagan Conservative14-May-07 11:14
Reagan Conservative14-May-07 11:14 
QuestionProblem with VC6 to VS2K5 porting Pin
simoncoul14-May-07 9:23
simoncoul14-May-07 9:23 
AnswerRe: Problem with VC6 to VS2K5 porting Pin
PJ Arends14-May-07 9:42
professionalPJ Arends14-May-07 9:42 
GeneralRe: Problem with VC6 to VS2K5 porting Pin
simoncoul14-May-07 10:01
simoncoul14-May-07 10:01 
AnswerRe: Problem with VC6 to VS2K5 porting Pin
Mark Salsbery14-May-07 10:26
Mark Salsbery14-May-07 10:26 
GeneralRe: Problem with VC6 to VS2K5 porting Pin
simoncoul15-May-07 3:16
simoncoul15-May-07 3:16 
GeneralRe: Problem with VC6 to VS2K5 porting Pin
Mark Salsbery15-May-07 4:24
Mark Salsbery15-May-07 4:24 
GeneralRe: Problem with VC6 to VS2K5 porting Pin
simoncoul15-May-07 5:37
simoncoul15-May-07 5:37 
Questionupdating status bar Pin
RalfPeter14-May-07 8:24
RalfPeter14-May-07 8:24 
AnswerRe: updating status bar Pin
led mike14-May-07 9:05
led mike14-May-07 9:05 
GeneralRe: updating status bar Pin
RalfPeter14-May-07 11:19
RalfPeter14-May-07 11:19 
GeneralRe: updating status bar Pin
led mike14-May-07 12:35
led mike14-May-07 12:35 
Questiondialog color Pin
prathuraj14-May-07 5:14
prathuraj14-May-07 5:14 
AnswerRe: dialog color Pin
Arman S.14-May-07 5:21
Arman S.14-May-07 5:21 

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.