Click here to Skip to main content
16,005,236 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: .NET is Hell (subtitle: An error message from Microsoft) Pin
Richard Deeming15-Oct-12 3:57
mveRichard Deeming15-Oct-12 3:57 
That's a perfectly reasonable error message:

  • It's aimed at developers, so it can assume you'll know, or be able to find out, what managed, unmanaged and PInvoke mean;
  • It tells you what's wrong; (your PInvoke method signature)
  • It tells you where the problem is; (the import of exam123-DB!exam123.Exam123F::Sleep)
  • It tells you how to fix it; (correct the signature)

It can't do much more for you, since unmanaged methods don't have enough metadata for the compiler to tell you what the correct signature should be.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


GeneralRe: .NET is Hell (subtitle: An error message from Microsoft) Pin
Thornik11-Oct-12 1:27
Thornik11-Oct-12 1:27 
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft) Pin
Stefan_Lang15-Oct-12 4:49
Stefan_Lang15-Oct-12 4:49 
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft) Pin
Thornik16-Oct-12 3:20
Thornik16-Oct-12 3:20 
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft) Pin
alexander ypema11-Oct-12 3:06
alexander ypema11-Oct-12 3:06 
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft) Pin
Brendon123413-Oct-12 19:09
Brendon123413-Oct-12 19:09 
GeneralRe: .NET is Hell (subtitle: An error message from Microsoft) Pin
Stefan_Lang15-Oct-12 4:53
Stefan_Lang15-Oct-12 4:53 
GeneralInfinate levels of hierarchal data Pin
asdrog3-Oct-12 1:30
asdrog3-Oct-12 1:30 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
R. Giskard Reventlov3-Oct-12 5:22
R. Giskard Reventlov3-Oct-12 5:22 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
asdrog3-Oct-12 6:30
asdrog3-Oct-12 6:30 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
R. Giskard Reventlov3-Oct-12 6:43
R. Giskard Reventlov3-Oct-12 6:43 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
AspDotNetDev3-Oct-12 6:45
protectorAspDotNetDev3-Oct-12 6:45 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
R. Giskard Reventlov3-Oct-12 7:02
R. Giskard Reventlov3-Oct-12 7:02 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
asdrog3-Oct-12 13:21
asdrog3-Oct-12 13:21 
GeneralRe: MySQL "in (list)" example to recursivly get information - And the power of Loops! Infinate levels of hierarchal data Pin
Sentenryu4-Oct-12 0:50
Sentenryu4-Oct-12 0:50 
GeneralRe: Infinate levels of hierarchal data Pin
Bernhard Hiller4-Oct-12 0:28
Bernhard Hiller4-Oct-12 0:28 
GeneralRe: Infinate levels of hierarchal data Pin
asdrog4-Oct-12 11:35
asdrog4-Oct-12 11:35 
GeneralRe: Infinate levels of hierarchal data Pin
AspDotNetDev4-Oct-12 12:24
protectorAspDotNetDev4-Oct-12 12:24 
GeneralRe: Infinate levels of hierarchal data Pin
asdrog4-Oct-12 13:20
asdrog4-Oct-12 13:20 
GeneralCSS selector of the day PinPopular
Chris Maunder2-Oct-12 8:41
cofounderChris Maunder2-Oct-12 8:41 
GeneralRe: CSS selector of the day Pin
Brisingr Aerowing2-Oct-12 9:32
professionalBrisingr Aerowing2-Oct-12 9:32 
GeneralRe: CSS selector of the day Pin
Mike Ortmans2-Oct-12 22:38
Mike Ortmans2-Oct-12 22:38 
GeneralRe: CSS selector of the day Pin
BobJanova2-Oct-12 23:31
BobJanova2-Oct-12 23:31 
GeneralRe: CSS selector of the day Pin
Chris Maunder3-Oct-12 4:19
cofounderChris Maunder3-Oct-12 4:19 
JokeRe: CSS selector of the day Pin
fjdiewornncalwe3-Oct-12 4:23
professionalfjdiewornncalwe3-Oct-12 4:23 

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.