CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    The VB6 vs VB.NET 'CODE WAR'

    After much discution any many arguments over the Pro's and Con's of VB6 & .NET, I figured we rather use the 'Code War' forum to continue all the coding tests ...

    Each test will have it's own thread, where everyone is invited to post there respective results on each of the test's, there take on the code, sujested tweeks etc..

    Each of the tests will have a Poll on it too.. Please answer the poll only after having completed the tests on your system...

    Test 1 - Tiling a Bitmap onto the form background

    Test 2 - Painting a Rectangle onto the form background

    Test 3 - Painting a Smaller Rectangle onto the form background

    Test 4 - Simple Maths test. (How fast can you add)

    Test 5 - Multiple Sorting test.

    Test 6 - Simple Sorting test.

    Test 7 - Adding List items test.

    As more tests are done and added i will add the respective threads to this post..

    For general .net Vs 6 chat please do not post in the individule test threads but rather post in this thread...
    Last edited by GremlinSA; July 23rd, 2008 at 01:16 PM.
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  2. #2
    Join Date
    Jun 2008
    Posts
    592

    Re: The VB6 vs VB.NET 'CODE WAR'

    Okay I have another very small test for you to add to the code war thread. It is the listbox adding one. The project contains both the vb6 version and vb.net version and it is attached.
    My timings are:

    vb6: 953
    vb.net: 1812

    vb6 was compiled to native code and vb.net was built as release. If you want to rerun the test, go ahead. I really like the threads for the tests. I will post my timings in the thread after you create it.

    Also I will delete this post when you get the thread done.. if possible
    Attached Files Attached Files
    0100 0111 0110 1111 0110 0100 0010 0000 0110 1001 0111 0011 0010 0000 0110 0110 0110 1111 0111 0010
    0110 0101 0111 0110 0110 0101 0111 0010 0010 0001 0010 0001 0000 0000 0000 0000
    0000 0000 0000 0000

  3. #3
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: The VB6 vs VB.NET 'CODE WAR'

    I'm thinking of asking brad to Add a seperate subforum to the programming Projects forum for this range of testing, as Brad has posted here we need at least 3 members to qualify, and i'd like to get at least 3 senior members. Obviously the more the better..

    All those that are prepared to join and put in the time please PM me, so that i can add your name to the list, Also i'm looking for sujestions on the Forum Name..

    Thanks ...
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

  4. #4
    Join Date
    Jun 2008
    Posts
    592

    Re: The VB6 vs VB.NET 'CODE WAR'

    For test 7( listbox adding), I created a new method for vb6. It uses apis. I am not sure if it would be a good ideal to add it to the list since it overrides a few components vb6 provides, but if we do that for the image processing, I don't see why not, but I will attach it to see what you think of it. It is much faster ...
    Attached Files Attached Files
    0100 0111 0110 1111 0110 0100 0010 0000 0110 1001 0111 0011 0010 0000 0110 0110 0110 1111 0111 0010
    0110 0101 0111 0110 0110 0101 0111 0010 0010 0001 0010 0001 0000 0000 0000 0000
    0000 0000 0000 0000

  5. #5
    Join Date
    Jun 2005
    Location
    JHB South Africa
    Posts
    3,772

    Re: The VB6 vs VB.NET 'CODE WAR'

    Thanks for the updated Listbox test... however it will be better it you update the files in there respective threads, and only post 'NEW' tests in this thread..
    Articles VB6 : Break the 2G limit - Animation 1, 2 VB.NET : 2005/8 : Moving Images , Animation 1 , 2 , 3 , User Controls
    WPF Articles : 3D Animation 1 , 2 , 3
    Code snips: VB6 Hex Edit, IP Chat, Copy Prot., Crop, Zoom : .NET IP Chat (V4), Adv. ContextMenus, click Hotspot, Scroll Controls
    Find me in ASP.NET., VB6., VB.NET , Writing Articles, My Genealogy, Forum
    All VS.NET: posts refer to VS.NET 2008 (Pro) unless otherwise stated.

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

Featured