Ben C

United Kingdom

Age: 31

Jul
11
awarded Excavator
Jul
11
revised one to one relationship with fluent api
Code formatting to reduce width
Jul
10
awarded Supporter
Jun
25
awarded Nice Answer
Jun
14
answered C++ Priority Queue - Reorder based on updated priorities
Jun
8
comment Named Pipes. Multiple processes
Is there a specific reason you're using named pipes? Aside from generally being slower than TCP, they also don't scale so easily. If you're just looking for any IPC mechanism then you could consider using WCF (Which supports many different IPC mechanisms including Named pipes, TCP and HTTP). WCF supports various messaging patterns, and provides a high-level abstraction around any IPC mechanism, allowing you to tackle IPC problems at a much higher level. msdn.microsoft.com/en-us/library/gg132851.aspx
Jun
8
comment difference between pointer to an array and pointer to the first element of an array
@Potatoswatter fair point, I've edited it out since it's not really needed for the answer.
Jun
8
revised difference between pointer to an array and pointer to the first element of an array
added 45 characters in body
Jun
8
comment difference between pointer to an array and pointer to the first element of an array
@Potatoswatter That is just short-hand syntax for int* anotherPtr = &theArray[0]; They both do exactly the same thing.
Jun
8
answered difference between pointer to an array and pointer to the first element of an array
Jun
8
answered Confused about using constructurs with istream parameters
May
17
revised Pointer returning memory address?
re-ordered the answer and included the pointer change in the code
May
17
answered Pointer returning memory address?
May
8
awarded Yearling
May
3
comment Comparing types between derived classes
Which books are telling you to do that? Polymorphism is useless for classes which only contain data and no behaviour. The purpose of polymorphism is to have behaviour in your derived classes, which is accessible via the base-class interface
May
3
comment Comparing types between derived classes
@Veritas That doesn't necessarily mean it's the best design for the specific problem you are trying to tackle though. Without knowing a little more about the actual problem it's hard to judge either way. Your question isn't actually describing the real problem, it's describing an attempt at a solution - If you step back a bit and describe the real problem you'll probably get some far more useful answers.
May
3
comment Comparing types between derived classes
If you're asking "How do i compare derived types", then you've found a flaw in your design. Ask yourself how your program's behaviour changes depending on those derived types. Whatever the reason for wanting to know about the type of a derived class, the answer most likely is 'there's a better way'.
Apr
8
awarded Yearling
Apr
8
awarded Yearling
Mar
29
awarded Yearling
1 2 3 4 5