Click here to Skip to main content
15,867,453 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncannot convert from 'double' to 'class _variant_t * Pin
browneyes867-Apr-10 9:38
browneyes867-Apr-10 9:38 
AnswerRe: cannot convert from 'double' to 'class _variant_t * Pin
Iain Clarke, Warrior Programmer7-Apr-10 10:03
Iain Clarke, Warrior Programmer7-Apr-10 10:03 
AnswerRe: cannot convert from 'double' to 'class _variant_t * Pin
Eugen Podsypalnikov7-Apr-10 10:04
Eugen Podsypalnikov7-Apr-10 10:04 
Questionresolving a shortcut file name Pin
Alan Kurlansky7-Apr-10 9:30
Alan Kurlansky7-Apr-10 9:30 
AnswerRe: resolving a shortcut file name Pin
Nuri Ismail7-Apr-10 10:10
Nuri Ismail7-Apr-10 10:10 
QuestionIs forward declaration a hack for bad, lazy programmers? Pin
Vaclav_7-Apr-10 7:16
Vaclav_7-Apr-10 7:16 
AnswerRe: Is forward declaration a hack for bad, lazy programmers? Pin
Chris Losinger7-Apr-10 7:25
professionalChris Losinger7-Apr-10 7:25 
AnswerRe: Is forward declaration a hack for bad, lazy programmers? PinPopular
Moak7-Apr-10 7:48
Moak7-Apr-10 7:48 
Vaclav_Sal wrote:
I started to use "forward declaration" to mask #include files dependencies.

Like you said, if you want to minimise link dependecies it's a great tool. Change one header file and you will not have to recompile a rats tail of other object files, just because the class is used in protected/private methods of other classes. Generally I include only header files absolutely necessary to compile in header files... and put the rest into the individual source files. With bigger projects it can be a time saver.

Vaclav_Sal wrote:
Would it be going too far if I just forward declare all my classes in stdafx.h

I would personally use stdafx.h only to what it was intended for, speed up compilation time. For example have library and rarely changing header files in it. However I keep dependencies working without precompiled headers, in case I rip out a file/module and reuse it in another project. That's just my personal design taste, hope it helped. Smile | :)

/M

Webchat in Europe Java | [Coffee] Now with 26% more Twitter

modified on Wednesday, April 7, 2010 1:54 PM

GeneralRe: Is forward declaration a hack for bad, lazy programmers? Pin
William Winner7-Apr-10 11:41
William Winner7-Apr-10 11:41 
GeneralOfftopic Pin
Moak7-Apr-10 11:57
Moak7-Apr-10 11:57 
AnswerRe: Is forward declaration a hack for bad, lazy programmers? Pin
Nemanja Trifunovic7-Apr-10 7:59
Nemanja Trifunovic7-Apr-10 7:59 
AnswerRe: Is forward declaration a hack for bad, lazy programmers? Pin
Eugen Podsypalnikov7-Apr-10 9:24
Eugen Podsypalnikov7-Apr-10 9:24 
QuestionCString convert error in Embedded Visual C++ Pin
CHYGO7-Apr-10 4:20
CHYGO7-Apr-10 4:20 
AnswerRe: CString convert error in Embedded Visual C++ Pin
eusto7-Apr-10 4:42
eusto7-Apr-10 4:42 
GeneralRe: CString convert error in Embedded Visual C++ Pin
CHYGO7-Apr-10 5:18
CHYGO7-Apr-10 5:18 
JokeRe: CString convert error in Embedded Visual C++ Pin
Eugen Podsypalnikov7-Apr-10 5:38
Eugen Podsypalnikov7-Apr-10 5:38 
GeneralRe: CString convert error in Embedded Visual C++ Pin
CHYGO8-Apr-10 2:01
CHYGO8-Apr-10 2:01 
QuestionComboBox / Win32 [modified] Pin
Fareed Rizkalla7-Apr-10 2:27
Fareed Rizkalla7-Apr-10 2:27 
QuestionRe: ComboBox / Win32 Pin
CPallini7-Apr-10 2:31
mveCPallini7-Apr-10 2:31 
AnswerRe: ComboBox / Win32 Pin
Fareed Rizkalla7-Apr-10 2:38
Fareed Rizkalla7-Apr-10 2:38 
GeneralRe: ComboBox / Win32 Pin
CPallini7-Apr-10 2:50
mveCPallini7-Apr-10 2:50 
QuestionRe: ComboBox / Win32 Pin
Fareed Rizkalla7-Apr-10 3:15
Fareed Rizkalla7-Apr-10 3:15 
QuestionRe: ComboBox / Win32 Pin
CPallini7-Apr-10 3:18
mveCPallini7-Apr-10 3:18 
AnswerRe: ComboBox / Win32 Pin
Sauro Viti7-Apr-10 6:54
professionalSauro Viti7-Apr-10 6:54 
QuestionWhy does GDI+ DrawString punch holes in the alpha channel? Pin
Code-o-mat7-Apr-10 2:24
Code-o-mat7-Apr-10 2:24 

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.