Click here to Skip to main content
15,896,111 members

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, embarrassing 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: What happens when a Java coder decides to explain a Red Black Tree in C#? Pin
Rizwan Yasin11-Dec-07 19:04
Rizwan Yasin11-Dec-07 19:04 
GeneralRe: What happens when a Java coder decides to explain a Red Black Tree in C#? Pin
leppie11-Dec-07 19:22
leppie11-Dec-07 19:22 
GeneralRe: What happens when a Java coder decides to explain a Red Black Tree in C#? Pin
Mike Dimmick14-Dec-07 13:38
Mike Dimmick14-Dec-07 13:38 
Generalcss disaster Pin
sdix10-Dec-07 11:07
sdix10-Dec-07 11:07 
GeneralRe: css disaster Pin
Ri Qen-Sin11-Dec-07 5:00
Ri Qen-Sin11-Dec-07 5:00 
GeneralRe: css disaster Pin
leppie11-Dec-07 7:40
leppie11-Dec-07 7:40 
GeneralRe: css disaster Pin
Pete O'Hanlon11-Dec-07 10:19
mvePete O'Hanlon11-Dec-07 10:19 
GeneralConstants definitions Pin
Dr. Emmett Brown6-Dec-07 4:05
Dr. Emmett Brown6-Dec-07 4:05 
Hi all,
I was 3 days trying to find out why my vc++ project didn't compile. I always got an error while compiling resources. I also thought it could be a visual studio bug, so I installed the new version, but the problem was still there. When I was about to surrender I had the resources.h file opened, and I watch to the screen a few seconds and saw this:

...
#define HWND_MAINWINDOW 15000
#define HWND_NAMEEDIT HWND_MAINWINDOW + 1
#define HOTKEYF8 HWND_MAINWINDOW + 2
#define HOTKEYF9 HWND_MAINWINDOW + 3
...

It deserves a very big D'Oh! | :doh:

But Visual Studio wasn't too helpful either, the error only appeared when compiling resources.

Enjoy.

rotter

QuestionRe: Constants definitions Pin
Steve Hansen9-Dec-07 23:23
Steve Hansen9-Dec-07 23:23 
GeneralRe: Constants definitions Pin
Dr. Emmett Brown10-Dec-07 14:46
Dr. Emmett Brown10-Dec-07 14:46 
GeneralRe: Constants definitions Pin
PIEBALDconsult10-Dec-07 15:39
mvePIEBALDconsult10-Dec-07 15:39 
GeneralRe: Constants definitions Pin
KarstenK12-Dec-07 22:42
mveKarstenK12-Dec-07 22:42 
GeneralRe: Constants definitions Pin
supercat911-Dec-07 9:07
supercat911-Dec-07 9:07 
GeneralRe: Constants definitions Pin
Frank Dawson10-Dec-07 15:25
Frank Dawson10-Dec-07 15:25 
GeneralRe: Constants definitions Pin
KarstenK12-Dec-07 22:47
mveKarstenK12-Dec-07 22:47 
GeneralRe: Constants definitions Pin
CurtD13-Dec-07 13:05
CurtD13-Dec-07 13:05 
GeneralThis one made me sigh Pin
CARPETBURNER6-Dec-07 0:40
CARPETBURNER6-Dec-07 0:40 
GeneralRe: This one made me sigh Pin
Sathesh Sakthivel6-Dec-07 1:49
Sathesh Sakthivel6-Dec-07 1:49 
GeneralRe: This one made me sigh Pin
Russell Jones6-Dec-07 2:51
Russell Jones6-Dec-07 2:51 
GeneralRe: This one made me sigh Pin
Mike Dimmick6-Dec-07 22:59
Mike Dimmick6-Dec-07 22:59 
GeneralRe: This one made me sigh Pin
Ri Qen-Sin7-Dec-07 5:10
Ri Qen-Sin7-Dec-07 5:10 
GeneralRe: This one made me sigh Pin
Jeffrey Walton7-Dec-07 22:03
Jeffrey Walton7-Dec-07 22:03 
GeneralRe: This one made me sigh Pin
Paul Conrad8-Dec-07 5:05
professionalPaul Conrad8-Dec-07 5:05 
GeneralThe holy comma operator [modified] Pin
Doc Lobster26-Nov-07 2:47
Doc Lobster26-Nov-07 2:47 
GeneralRe: The holy comma operator Pin
Steve Hansen26-Nov-07 4:36
Steve Hansen26-Nov-07 4:36 

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.