Click here to Skip to main content
15,892,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Garth J Lancaster20-Feb-10 0:10
professionalGarth J Lancaster20-Feb-10 0:10 
AnswerRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Richard MacCutchan20-Feb-10 0:37
mveRichard MacCutchan20-Feb-10 0:37 
QuestionRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Maximilien20-Feb-10 1:48
Maximilien20-Feb-10 1:48 
AnswerRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Le@rner20-Feb-10 1:53
Le@rner20-Feb-10 1:53 
GeneralRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Richard MacCutchan20-Feb-10 4:02
mveRichard MacCutchan20-Feb-10 4:02 
GeneralRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Maximilien20-Feb-10 4:26
Maximilien20-Feb-10 4:26 
GeneralRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
Le@rner21-Feb-10 18:20
Le@rner21-Feb-10 18:20 
GeneralRe: How Do display a Name in place of SMS sender phone no using AT Commands? Pin
m_k_b_h14-Jul-11 0:02
m_k_b_h14-Jul-11 0:02 
QuestionSecondary Desktop Pin
trioum19-Feb-10 21:11
trioum19-Feb-10 21:11 
AnswerRe: Secondary Desktop Pin
Richard MacCutchan20-Feb-10 0:38
mveRichard MacCutchan20-Feb-10 0:38 
GeneralRe: Secondary Desktop Pin
Maximilien20-Feb-10 1:53
Maximilien20-Feb-10 1:53 
GeneralRe: Secondary Desktop Pin
trioum20-Feb-10 21:44
trioum20-Feb-10 21:44 
AnswerRe: Secondary Desktop Pin
WoutL20-Feb-10 2:32
WoutL20-Feb-10 2:32 
QuestionRepeat a typedef or include a header with the typedef? Pin
asincero19-Feb-10 13:22
asincero19-Feb-10 13:22 
AnswerRe: Repeat a typedef or include a header with the typedef? Pin
«_Superman_»19-Feb-10 15:35
professional«_Superman_»19-Feb-10 15:35 
AnswerRe: Repeat a typedef or include a header with the typedef? Pin
cmk20-Feb-10 12:21
cmk20-Feb-10 12:21 
#1 - clumsy, forcing an unneeded dependency for Foos on ClassA.
#2 - bad, semantically if not syntactically.

asincero wrote:
Perhaps I should I break out the Foos typedef into it's own header (perhaps
the header file for class Foo?) and have both class_a.h and class_b.h
include that?

Yes.

Foo.h:
class  Foo;
typedef std::vector< boost::shared_ptr<Foo> > VectorSharedPtrFoo;

class Foo { ... };

or,
class Foo {
  typedef std::vector< boost::shared_ptr<Foo> > VectorSharedPtr;
};

I usually prefer the former.

In general, do not define a type in a class unless it is specific to that class.

... and do you _really_ want to return a vector from ClassA::makeFoos() ?
The newer compilers can try to optimize out the copy, but you're never sure.
Usually better to pass a non-const ref as an output parameter.
...cmk

The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack

QuestionKeyBoard Hook Pin
devidmorton19-Feb-10 9:22
devidmorton19-Feb-10 9:22 
AnswerRe: KeyBoard Hook [modified] Pin
Abhi Lahare19-Feb-10 10:05
Abhi Lahare19-Feb-10 10:05 
GeneralRe: KeyBoard Hook [modified] Pin
devidmorton20-Feb-10 8:31
devidmorton20-Feb-10 8:31 
GeneralRe: KeyBoard Hook Pin
Abhi Lahare22-Feb-10 5:13
Abhi Lahare22-Feb-10 5:13 
QuestionFast and efficeint way to rotate a bitmap at integer multiples of 90°?? Pin
Kiran Satish19-Feb-10 9:05
Kiran Satish19-Feb-10 9:05 
AnswerRe: Fast and efficeint way to rotate a bitmap at integer multiples of 90°?? Pin
Chris Losinger19-Feb-10 12:09
professionalChris Losinger19-Feb-10 12:09 
AnswerRe: Fast and efficeint way to rotate a bitmap at integer multiples of 90°?? Pin
Jonathan Davies20-Feb-10 1:17
Jonathan Davies20-Feb-10 1:17 
GeneralRe: Fast and efficeint way to rotate a bitmap at integer multiples of 90°?? Pin
Stephen Hewitt20-Feb-10 3:33
Stephen Hewitt20-Feb-10 3:33 
GeneralRe: Fast and efficeint way to rotate a bitmap at integer multiples of 90°?? Pin
Kiran Satish20-Feb-10 11:05
Kiran Satish20-Feb-10 11:05 

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.