Click here to Skip to main content
15,916,693 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to print from the Dialog Box? Pin
venkyhyd7-Oct-03 23:23
venkyhyd7-Oct-03 23:23 
GeneralCompiling errors Pin
FlyingDancer7-Oct-03 22:51
FlyingDancer7-Oct-03 22:51 
GeneralRe: Compiling errors Pin
Mike Dimmick7-Oct-03 23:11
Mike Dimmick7-Oct-03 23:11 
GeneralRe: Compiling errors Pin
FlyingDancer8-Oct-03 0:34
FlyingDancer8-Oct-03 0:34 
GeneralRe: Compiling errors Pin
Anand Paranjpe7-Oct-03 23:29
Anand Paranjpe7-Oct-03 23:29 
GeneralRe: Compiling errors Pin
FlyingDancer8-Oct-03 0:42
FlyingDancer8-Oct-03 0:42 
GeneralIExtractImage not working for Internet-Shortcuts (.url) Pin
ohadp7-Oct-03 22:41
ohadp7-Oct-03 22:41 
GeneralProblem with 'struct' in the same file as 'class'. Pin
WREY7-Oct-03 22:30
WREY7-Oct-03 22:30 
Originally, I had a 'struct' in a file along with other 'structs'. Then I added a new class to the program and because this particular 'struct' seemed so well suited with this new class, I moved the 'struct' into the same file with the new class.

Now, even though the file in which the new class is located, has the '#ifndef (etc.)' macro/preprocessor statement, the program will not compile and link due to a LNK2005 error.

The new class is being '#included' in several different class files, and the compiler is not complaining about the new class being multiply defined. Why is the 'struct' the problem?

Thanks for any insight.

Smile | :)

William

Fortes in fide et opere!
GeneralRe: Problem with 'struct' in the same file as 'class'. Pin
Mike Dimmick7-Oct-03 23:09
Mike Dimmick7-Oct-03 23:09 
GeneralRe: Problem with 'struct' in the same file as 'class'. Pin
WREY8-Oct-03 10:40
WREY8-Oct-03 10:40 
GeneralRe: Problem with 'struct' in the same file as 'class'. Pin
Mike Dimmick9-Oct-03 0:24
Mike Dimmick9-Oct-03 0:24 
GeneralFound it !! Pin
WREY9-Oct-03 6:58
WREY9-Oct-03 6:58 
GeneralRe: Problem with 'struct' in the same file as 'class'. Pin
WREY9-Oct-03 10:46
WREY9-Oct-03 10:46 
GeneralRe: Problem with 'struct' in the same file as 'class'. Pin
Mike Dimmick9-Oct-03 22:45
Mike Dimmick9-Oct-03 22:45 
GeneralRe: Problem with 'struct' in the same file as 'class'. Pin
WREY9-Oct-03 23:29
WREY9-Oct-03 23:29 
GeneralRe: Problem with 'struct' in the same file as 'class'. Pin
Mike Dimmick10-Oct-03 0:34
Mike Dimmick10-Oct-03 0:34 
GeneralRe: Problem with 'struct' in the same file as 'class'. Pin
Anthony_Yio8-Oct-03 1:23
Anthony_Yio8-Oct-03 1:23 
GeneralRe: Problem with 'struct' in the same file as 'class'. Pin
David Crow8-Oct-03 2:52
David Crow8-Oct-03 2:52 
GeneralRe: Problem with 'struct' in the same file as 'class'. Pin
Anthony_Yio8-Oct-03 16:48
Anthony_Yio8-Oct-03 16:48 
GeneralRe: Problem with 'struct' in the same file as 'class'. Pin
WREY8-Oct-03 9:50
WREY8-Oct-03 9:50 
GeneralRe: Problem with 'struct' in the same file as 'class'. Pin
Anthony_Yio8-Oct-03 16:26
Anthony_Yio8-Oct-03 16:26 
Generalstatic libraries & templates Pin
Themis7-Oct-03 22:21
Themis7-Oct-03 22:21 
GeneralRe: static libraries & templates Pin
Anthony_Yio8-Oct-03 1:03
Anthony_Yio8-Oct-03 1:03 
GeneralRe: static libraries & templates Pin
ZoogieZork8-Oct-03 5:18
ZoogieZork8-Oct-03 5:18 
GeneralRe: static libraries & templates Pin
cmk8-Oct-03 9:55
cmk8-Oct-03 9:55 

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.