Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

David M Kean

@David M Kean
About
Posts
33
Topics
7
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • FxCop experience?
    D David M Kean

    Super Lloyd, You have to remember FxCop's history, which started off as a exactly that; a 'convention enforcer' for the .NET Framework Guidelines. However, these days we have not only naming and spelling rules, but also security (CallGCKeepAliveWhenUsingNativeResources, ReviewSqlQueriesForSecurityVulnerabilities, etc), correctness (ProvideCorrectArgumentsToFormattingMethods, RethrowToPreserveStackDetails, etc) interop/portability (PInvokeDeclarationsShouldBePortable, PInvokeEntryPointsShouldExist, etc), design (ValidateArgumentsOfPublicMethods, ImplementIDisposableCorrectly, etc), performance (AvoidUnnecessaryStringCreation, AvoidUncalledPrivateCode, etc) and globalization (DoNotPassLiteralsAsLocalizedParameters, DoNotHardcodeLocaleSpecificStrings, etc). Within Visual Studio Team System we also have some reliability (DisposeObjectsBeforeLosingScope, DoNotLockOnObjectsWithWeakIdentity, etc) and maintainability (AvoidExcessiveComplexity, AvoidExcessiveInheritance, etc) rules. I think one mistake that new users make, is that they try to fix every issue. A lot of rules such as the collection naming one you encountered above, are only applicable if you are designing a reusable Framework, if not, turn it off. If you have any concerns about any rules, don't hesitate to head over to the FxCop Forum[^] and tell us what you think. David M. Kean VS Code Analysis Team My Blog: Managed from Down Under | Team Blog: FxCop Blog -- modified at 11:21 Sunday 11th June, 2006

    The Lounge help tutorial question announcement

  • Console window in VS2005 standart edition!
    D David M Kean

    Are you sure? I'm running VS 2K5 Pro RTM and its not there. I assumed he was talking about the Quick Console window. David M. Kean My Blog: Managed from Down Under

    The Lounge question announcement

  • Console window in VS2005 standart edition!
    D David M Kean

    It was actually removed from all RTM versions of Visual Studio. David M. Kean My Blog: Managed from Down Under

    The Lounge question announcement

  • Now I am really disgusted!
    D David M Kean

    Did you report a bug on the Microsoft Product Feedback Center[^] as a regression? David M. Kean My Blog: Managed from Down Under

    The Lounge csharp help visual-studio com question

  • Visual Studio 2005 Beta Experience Kit
    D David M Kean

    Perhaps you should should add a bug report to the Microsoft Product Feedback Center[^]? ;) David M. Kean My Blog: Managed from Down Under

    The Lounge csharp visual-studio com beta-testing help

  • FGAOTD [Funny Google Ads ...]
    D David M Kean

    Don't say it. But I know exactly who you mean. David M. Kean My Blog: Managed from Down Under

    The Lounge html database com question

  • Microsoft : Support an oxymoron?
    D David M Kean

    Well not entirely true as Visual Studio .NET 2002 SP1 has been released. However I do agree that service packs need released quicker than they currently are. Also I would like to be able to download a hotfix without needing to contact PSS. David M. Kean My Blog: Managed from Down Under

    The Lounge announcement csharp visual-studio com help

  • Should everyone who writes code need to be a pro?
    D David M Kean

    > You don't need to be a Formula 1 racer to drive fast on the highways. But you do need to be licenced. David M. Kean My Blog: Managed from Down Under

    The Lounge csharp c++ tools question

  • Sealed classes. Why??
    D David M Kean

    Most of the time I think it is for good reasons. Take for example the ImageList class, because it's just a wrapper around the Win32 ImageList, so overriding its properties (ie Images) would be of no benefit as controls don't use them. See http://www.thinktecture.com/Resources/Articles/SealedIsGood.html[^] Other times its for security, where inheriting a class could allow the class to do things that its not allowed. However, there are times that I can see not reason, like ServiceContainer. There is absolutely no reason for this class to be sealed, and if fact in .NET 2.0 ServiceContainer has been unsealed... David M. Kean My Blog: Managed from Down Under

    The Lounge question regex discussion

  • Marshalling Inline Arrays
    D David M Kean

    Does anyone know the correct way of marshalling inline multi-dimensional arrays? I have the following structure that I want to reproduce in C#: typedef struct tagMyStruct { WORD Version; char szName[3][256]; } MyStruct, *MyStruct; Now if this was just an inline array: typedef struct tagMyStruct { WORD Version; char szName[256]; } MyStruct, *MyStruct; You do this: [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)] public struct MyStruct { public int Version; [MarshalAs(UnmanagedType.ByValTStr, SizeConst=257)] public string szName; } But it is not, so it is not that easy. I have tried, without success: [StructLayout(LayoutKind.Sequential, CharSet=CharSet.Auto)] public struct MyStruct { public int Version; [MarshalAs(UnmanagedType.ByValTStr, SizeConst=257)] public string name1; [MarshalAs(UnmanagedType.ByValTStr, SizeConst=257)] public string name2; [MarshalAs(UnmanagedType.ByValTStr, SizeConst=257)] public string name3; } Any ideas? David M. Kean My Blog: Managed from Down Under

    C# csharp com data-structures question announcement

  • Well I went and did it...
    D David M Kean

    ...and bought my own domain. I tried the free MSDN Connection[^] provided hosting[^], but after a 8 hours of running live, I ran out of bandwidth, 20 MB / day is not enough. $9.95 month for 300 MB space, 8 GB transfer / month plus a SQL Server database, can't go wrong... David M. Kean My Blog: Managed from down under[^]

    The Lounge database csharp sql-server com sysadmin

  • How to build an automatic (no user interaction) web service?
    D David M Kean

    Maybe you should ask in a more appropriate forum, all we do here is read about new gadgets and laugh about other people's misfortunue... David M. Kean My Blog: Managed from Down Under

    The Lounge database tutorial question

  • Win XP SP2 pulled from download..
    D David M Kean

    Beat me to it... David M. Kean My Blog: Managed from Down Under

    The Lounge question announcement

  • Win XP SP2 pulled from download..
    D David M Kean

    Well considering that I just downloaded and installed it yesterday, I doubt that very much... David M. Kean My Blog: Managed from Down Under

    The Lounge question announcement

  • Poll: What email client are you using?
    D David M Kean

    30 email accounts? Surely you can't have a need for that many accounts? My Blog: Managed from Down Under

    The Lounge csharp visual-studio com question announcement

  • They're Everywhere!
    D David M Kean

    Hitchhikers guide to the galaxy, i imagine...

    The Lounge tutorial question announcement

  • C# Noob in trouble with enumerations
    D David M Kean

    You need to cast it to Things: Things aThing = (Things)numericThing;

    C# csharp help question

  • Aussie wedding gifts
    D David M Kean

    Try wishlist.com.au, have bought stuff from then are few times without any issues...

    The Lounge question tools

  • Toolbar that doesn't steal focus
    D David M Kean

    Hi, Does anyone know how to develop a toolbar that doesn't steal focus from the foreground window? For example: In Visual Studio .NET, undock a tool window and then click on one of the buttons on the main window toolbar. Notice the tool window continues to have focus. I want to do the same thing as Visual Studio. Currently I am using the Windows API ToolbarWindow32 class and the rebar control. Cheers David

    C# csharp tutorial visual-studio json question

  • File Compression
    D David M Kean

    Thanks very much for the advertisement...

    C# csharp c++ com announcement
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups