Click here to Skip to main content

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: Why bother with any other exception data? The message should suffice. Pinprofessionalyiangos23-Oct-13 6:57 
JokeRe: Why bother with any other exception data? The message should suffice. PinmemberRyanDev18-Oct-13 5:15 
GeneralRe: Why bother with any other exception data? The message should suffice. PinmemberJacek Gajek19-Oct-13 5:12 
GeneralRe: Why bother with any other exception data? The message should suffice. Pinprofessionalyiangos23-Oct-13 6:51 
GeneralRe: Why bother with any other exception data? The message should suffice. PinmemberBill_Hallahan1-Nov-13 17:35 
GeneralWhy care about descriptive names? PinmemberJacek Gajek16-Oct-13 21:34 
JokeRe: Why care about descriptive names? PinmemberKornfeld Eliyahu Peter16-Oct-13 21:47 
GeneralRe: Why care about descriptive names? PinmemberJacek Gajek16-Oct-13 22:03 
GeneralRe: Why care about descriptive names? PinmemberArgonia16-Oct-13 23:28 
GeneralRe: Why care about descriptive names? PinprofessionalNicholas Marty17-Oct-13 4:30 
GeneralRe: Why care about descriptive names? Pinmemberphil.o18-Oct-13 4:12 
GeneralRe: Why care about descriptive names? PinmemberJacek Gajek19-Oct-13 5:18 
GeneralHad a Boss Pinprofessionalmichaelbarb14-Nov-13 8:58 
GeneralExecutable that requires elevation PinmvpMichael Haephrati15-Oct-13 11:21 
I recently worked on a project and at a certain point noticed that the executable that is created requires elevation. It has this icon indicating that an administrator approval is required, and when it is double clicked, the elevation prompt appears.
It drove me craze to remove this setting, as the nature of the software didn't require it to be elevated. I looked at the Manifest section when there are settings related to UAC (User Account Control), but even when I matched these settings to the ones taken from another project, which didn't require elevation, my new project did.
Today, while speaking to another programmer, he told me how to fix that....
 
Well, my executable had the string "install" as part of it, and when I renamed it to demo.exe, the icon has changed and no elevation any more required. Smile | :)
GeneralRe: Executable that requires elevation PinprofessionalRichard Deeming15-Oct-13 12:11 
GeneralRe: Executable that requires elevation PinmvpMichael Haephrati15-Oct-13 12:40 
GeneralRe: Executable that requires elevation PinmemberRage15-Oct-13 22:56 
GeneralRe: Executable that requires elevation PinmvpDave Kreskowiak16-Oct-13 1:30 
GeneralRe: Executable that requires elevation PinprofessionalRichard Deeming16-Oct-13 1:45 
GeneralRe: Executable that requires elevation PinmemberDan Neely18-Oct-13 7:14 
GeneralRe: Executable that requires elevation PinprofessionalCIDev18-Oct-13 8:27 
GeneralRe: Executable that requires elevation PinprofessionalCIDev18-Oct-13 8:25 
GeneralRe: Executable that requires elevation PinmemberRob Grainger23-Oct-13 0:55 
GeneralRe: Executable that requires elevation PinprofessionalBernhard Hiller15-Oct-13 20:19 
GeneralWhats wrong with this code??? PinmemberAnkush Bansal14-Oct-13 20:50 
GeneralRe: Whats wrong with this code??? Pinprofessionalvonb14-Oct-13 20:55 
GeneralRe: Whats wrong with this code??? PinmemberAnkush Bansal14-Oct-13 21:13 
GeneralRe: Whats wrong with this code??? PinprofessionalBernhard Hiller14-Oct-13 21:07 
GeneralRe: Whats wrong with this code??? PinmemberAnkush Bansal14-Oct-13 21:15 
GeneralRe: Whats wrong with this code??? PinprotectorOriginalGriff14-Oct-13 22:22 
GeneralRe: Whats wrong with this code??? PinmemberAnkush Bansal14-Oct-13 23:01 
GeneralRe: Whats wrong with this code??? PinprotectorOriginalGriff14-Oct-13 23:47 
GeneralRe: Whats wrong with this code??? PinmemberSentenryu15-Oct-13 0:47 
GeneralRe: Whats wrong with this code??? PinmemberENOTTY15-Oct-13 1:37 
GeneralRe: Whats wrong with this code??? PinmemberSentenryu15-Oct-13 9:11 
GeneralRe: Whats wrong with this code??? Pinmemberharold aptroot16-Oct-13 2:22 
GeneralRe: Whats wrong with this code??? PinmemberVasudevan Deepak Kumar16-Oct-13 23:02 
GeneralRe: Whats wrong with this code??? PinmemberRob Grainger23-Oct-13 0:59 
GeneralEMail Fail PinprofessionalBrisingr Aerowing10-Oct-13 10:40 
GeneralRe: EMail Fail PinmemberRage11-Oct-13 0:15 
GeneralRe: EMail Fail PinprofessionalBrisingr Aerowing11-Oct-13 0:24 
GeneralRe: EMail Fail PinmemberSilvabolt11-Oct-13 4:26 
GeneralI just want to be really really sure PinmemberAnalogNerd8-Oct-13 7:40 
GeneralRe: I just want to be really really sure PinprofessionalRichard Deeming8-Oct-13 8:10 
GeneralRe: I just want to be really really sure PinmemberAnalogNerd8-Oct-13 8:31 
GeneralRe: I just want to be really really sure PinprotectorOriginalGriff8-Oct-13 9:07 
JokeRe: I just want to be really really sure Pinprofessionalrichcb8-Oct-13 9:53 
JokeRe: I just want to be really really sure [modified] Pinprofessional_Maxxx_8-Oct-13 15:40 
GeneralRe: I just want to be really really sure PinmemberArgonia8-Oct-13 20:11 
GeneralRe: I just want to be really really sure Pinprofessional_Maxxx_8-Oct-13 20:32 

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
Web03 | 2.8.140926.1 | Last Updated 30 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid