HEX Overflow error 6
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: HEX Overflow error 6

  1. #1
    Join Date
    Aug 2012
    Posts
    1

    HEX Overflow error 6

    I have encountered overflow error 6 with this code in VB 6:

    step9 = Hex((CLng("&H" & "e753") * clng("&H" & "f010"))Mod (2^16+1))
    cipher=step9

    Help please!

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

    Re: HEX Overflow error 6

    Shouldn't it be Mod (2^16-1)
    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.

  3. #3
    Join Date
    Sep 2012
    Posts
    7

    Re: HEX Overflow error 6

    don't know what you want to do but 59219 * 61456 is too much for a Long

Posting Permissions

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


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center