Click here to Skip to main content
11,581,515 members (64,232 online)

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrasing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: Which code you suggest? Pin
Member 46732021-Aug-13 5:44
memberMember 46732021-Aug-13 5:44 
GeneralRe: Which code you suggest? Pin
johannesnestler1-Aug-13 23:26
memberjohannesnestler1-Aug-13 23:26 
AnswerRe: Which code you suggest? Pin
ahmed zahmed30-Jul-13 10:18
memberahmed zahmed30-Jul-13 10:18 
AnswerRe: Which code you suggest? Pin
johannesnestler1-Aug-13 4:04
memberjohannesnestler1-Aug-13 4:04 
AnswerRe: Which code you suggest? Pin
Vasudevan Deepak Kumar2-Aug-13 8:29
memberVasudevan Deepak Kumar2-Aug-13 8:29 
GeneralMisaligned elephants Pin
Matthew Faithfull22-Jul-13 2:10
professionalMatthew Faithfull22-Jul-13 2:10 
GeneralRe: Misaligned elephants Pin
Richard Deeming22-Jul-13 11:34
professionalRichard Deeming22-Jul-13 11:34 
GeneralRe: Misaligned elephants Pin
Matthew Faithfull22-Jul-13 11:54
professionalMatthew Faithfull22-Jul-13 11:54 
Your donkey's ears have done you no harm. Smile | :) It could be fixed with a #pragma pack if I wasn't writing code to be portable across compilers Frown | :(
I've moved the structs outside the class and given them static member functions to report their own size. These only get built into one Dll in one place so they can only return one set of values.
Still a way to got to clean up this mess but at least I've got a handle or what's going on now I think.
"The secret of happiness is freedom, and the secret of freedom, courage."
Thucydides (B.C. 460-400)

GeneralRe: Misaligned elephants Pin
ExcellentOrg22-Jul-13 21:25
groupExcellentOrg22-Jul-13 21:25 
GeneralRe: Misaligned elephants Pin
enhzflep23-Jul-13 19:51
memberenhzflep23-Jul-13 19:51 
GeneralRe: Misaligned elephants Pin
Matthew Faithfull23-Jul-13 23:03
professionalMatthew Faithfull23-Jul-13 23:03 
GeneralRe: Misaligned elephants Pin
enhzflep23-Jul-13 23:39
memberenhzflep23-Jul-13 23:39 
GeneralRe: Misaligned elephants Pin
Sentenryu24-Jul-13 0:38
memberSentenryu24-Jul-13 0:38 
GeneralRe: Misaligned elephants Pin
Matthew Faithfull24-Jul-13 0:55
professionalMatthew Faithfull24-Jul-13 0:55 
GeneralRe: Misaligned elephants Pin
Sentenryu24-Jul-13 1:18
memberSentenryu24-Jul-13 1:18 
GeneralRe: Misaligned elephants Pin
Matthew Faithfull24-Jul-13 1:23
professionalMatthew Faithfull24-Jul-13 1:23 
GeneralRe: Misaligned elephants Pin
RafagaX24-Jul-13 4:41
memberRafagaX24-Jul-13 4:41 
GeneralRe: Misaligned elephants Pin
Sentenryu24-Jul-13 6:08
memberSentenryu24-Jul-13 6:08 
GeneralRe: Misaligned elephants Pin
BiggerDon24-Jul-13 2:15
memberBiggerDon24-Jul-13 2:15 
GeneralRe: Misaligned elephants Pin
Gary Wheeler24-Jul-13 0:13
memberGary Wheeler24-Jul-13 0:13 
GeneralRe: Misaligned elephants Pin
YvesDaoust23-Jul-13 22:51
memberYvesDaoust23-Jul-13 22:51 
GeneralRe: Misaligned elephants Pin
Matthew Faithfull23-Jul-13 23:10
professionalMatthew Faithfull23-Jul-13 23:10 
GeneralRe: Misaligned elephants Pin
Ralph Little24-Jul-13 6:32
memberRalph Little24-Jul-13 6:32 
GeneralRe: Misaligned elephants Pin
Member 460889824-Jul-13 10:02
memberMember 460889824-Jul-13 10:02 
GeneralRe: Misaligned elephants Pin
SortaCore24-Jul-13 0:04
memberSortaCore24-Jul-13 0:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web04 | 2.8.150603.1 | Last Updated 7 Jul 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid