Click here to Skip to main content
11,715,425 members (79,394 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: When Gobbledygook, Do Nada (Except Break the Build) Pin
Richard Deeming26-Jun-13 23:57
professionalRichard Deeming26-Jun-13 23:57 
GeneralRe: When Gobbledygook, Do Nada (Except Break the Build) Pin
Argonia27-Jun-13 0:03
professionalArgonia27-Jun-13 0:03 
GeneralRe: When Gobbledygook, Do Nada (Except Break the Build) Pin
OriginalGriff27-Jun-13 0:12
protectorOriginalGriff27-Jun-13 0:12 
GeneralRe: When Gobbledygook, Do Nada (Except Break the Build) Pin
Freak3027-Jun-13 0:57
memberFreak3027-Jun-13 0:57 
GeneralRe: When Gobbledygook, Do Nada (Except Break the Build) Pin
OriginalGriff27-Jun-13 1:07
protectorOriginalGriff27-Jun-13 1:07 
GeneralRe: When Gobbledygook, Do Nada (Except Break the Build) Pin
Richard Deeming27-Jun-13 1:56
professionalRichard Deeming27-Jun-13 1:56 
GeneralRe: When Gobbledygook, Do Nada (Except Break the Build) Pin
Jacek Gajek28-Jun-13 9:44
memberJacek Gajek28-Jun-13 9:44 
GeneralAhh, the joys of Visual Basic Pin
Argonia26-Jun-13 1:42
professionalArgonia26-Jun-13 1:42 
Hehe finally i made my way to The Weird and The Wonderful. Enjoy!

I am sitting here writing some vc++ code cloning some Dom nodes with MSXML and cloneNode(VARIANT_BOOL deep) and i noticed that the deep cloning isn't working. After some googling i found this gem
typedef short VARIANT_BOOL;
#define VARIANT_TRUE ((VARIANT_BOOL)-1)
 define VARIANT_FALSE ((VARIANT_BOOL)0)
with this explanation "This was developed by the Visual Basic folks" Clickety

Microsoft... the only place where VARIANT_TRUE != true
Thank you Visual Basic Team.
GeneralRe: Ahh, the joys of Visual Basic Pin
Mohammed Hameed26-Jun-13 2:10
professionalMohammed Hameed26-Jun-13 2:10 
GeneralRe: Ahh, the joys of Visual Basic Pin
dusty_dex26-Jun-13 2:29
memberdusty_dex26-Jun-13 2:29 
GeneralRe: Ahh, the joys of Visual Basic Pin
Herbie Mountjoy26-Jun-13 21:09
memberHerbie Mountjoy26-Jun-13 21:09 
GeneralRe: Ahh, the joys of Visual Basic Pin
dusty_dex27-Jun-13 1:28
memberdusty_dex27-Jun-13 1:28 
GeneralRe: Ahh, the joys of Visual Basic Pin
Westm27-Jun-13 6:22
memberWestm27-Jun-13 6:22 
GeneralRe: Ahh, the joys of Visual Basic Pin
GuyThiebaut26-Jun-13 2:37
memberGuyThiebaut26-Jun-13 2:37 
GeneralRe: Ahh, the joys of Visual Basic Pin
Argonia26-Jun-13 3:04
professionalArgonia26-Jun-13 3:04 
GeneralRe: Ahh, the joys of Visual Basic Pin
GuyThiebaut26-Jun-13 3:40
memberGuyThiebaut26-Jun-13 3:40 
GeneralRe: Ahh, the joys of Visual Basic Pin
lewax0026-Jun-13 3:43
memberlewax0026-Jun-13 3:43 
GeneralRe: Ahh, the joys of Visual Basic Pin
gervacleto28-Jun-13 1:45
professionalgervacleto28-Jun-13 1:45 
GeneralRe: Ahh, the joys of Visual Basic Pin
Freak3027-Jun-13 1:02
memberFreak3027-Jun-13 1:02 
GeneralRe: Ahh, the joys of Visual Basic Pin
csugden27-Jun-13 4:03
membercsugden27-Jun-13 4:03 
GeneralWhy some of them (developers) dont confuse using Global variables heavily or they aren't aware of reality. Pin
Mohammed Hameed21-Jun-13 2:53
professionalMohammed Hameed21-Jun-13 2:53 
GeneralRe: Why some of them (developers) dont confuse using Global variables heavily or they aren't aware of reality. Pin
OriginalGriff21-Jun-13 3:46
protectorOriginalGriff21-Jun-13 3:46 
GeneralRe: Why some of them (developers) dont confuse using Global variables heavily or they aren't aware of reality. Pin
Mohammed Hameed21-Jun-13 3:50
professionalMohammed Hameed21-Jun-13 3:50 
GeneralRe: Why some of them (developers) dont confuse using Global variables heavily or they aren't aware of reality. Pin
jim lahey21-Jun-13 3:52
memberjim lahey21-Jun-13 3:52 
GeneralRe: Why some of them (developers) dont confuse using Global variables heavily or they aren't aware of reality. Pin
Mohammed Hameed21-Jun-13 3:57
professionalMohammed Hameed21-Jun-13 3:57 

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
Web02 | 2.8.150901.1 | Last Updated 3 Sep 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid