Results 1 to 8 of 8

Thread: [2005] MZTools Equivalent

  1. #1

    Thread Starter
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    [2005] MZTools Equivalent

    Are there any FREE add-in's similar to MZTools that can quickly analyse the code for any unused variables/sub/functions etc...., add procedure/module headers, error handling?

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538

    Re: [2005] MZTools Equivalent

    Well until someone else replies first of all VS2008 will let you know if a variable has been declared, but not used by default. With the rest, if no-one else uses any tools and can provide advice, I'd suggest possibly looking at VS macros which you can write to automatically insert code into the code window (for the "add procedure/module headers, error handling") bit, as for the methods - I guess good old CTRL+F would help with that or a good design from the outset in order to avoid coding unessessary functionality and methods.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: [2005] MZTools Equivalent

    Having Option Strict On is a step in the right direction.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [2005] MZTools Equivalent

    In the upper versions of VS there is Code Analysis which is very detailed and intense. I use it but as far as a replacement of mztools, not even necessary. Mztools only numbered lines (.NET IDE does that already), added boilerplate comments (.NET IDE has that too) and a few other features which are almost all relaced by the defaults in the .NET IDE.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  5. #5
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2005] MZTools Equivalent

    VS has many tools built in.

    Go into your project properties, and go to the code analysis tab.

    You can enable the CODE_ANALYSIS constant here, that will cause VS to validate all these rules against your code when you build it.

    Marvel at the sight of Visual Studio barfing on your code and telling you how badly you wrote it. Haha just kidding, but it does feel like that sometimes when you do use a code validation tool that is checking for "best practices" and you realized your code was far from that.

    There are other tools out there like FxCop which is an MS owned free code analysis tool.

    Another very popular one is refactor! which is not an MS product.

    They have paid versions of it for VS2005 and 2008, however the free version I believe only works in 2008

    http://msdn.microsoft.com/en-us/vbasic/bb693327.aspx

  6. #6

    Thread Starter
    PowerPoster lintz's Avatar
    Join Date
    Mar 2003
    Location
    The 19th Hole
    Posts
    2,697

    Re: [2005] MZTools Equivalent

    kleinma, I don't have a Code Analysis tab when I open the properties of a project? (see image).
    Attached Images Attached Images  

  7. #7
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: [2005] MZTools Equivalent

    what specific version of 2005 is it that you are using?

  8. #8
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: [2005] MZTools Equivalent

    The full Code Analysis feature is only available in the VSTS version. FxCop would be the be other way to go if you dont have VSTS.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width