title: How to define 64 bit constants in VB?
body: <p>In Visual Basic</p>
  
  <pre><code>Friend Const xxx As UInt64 = 400 * 365 * 24 * 60 * 60 ''// Number of secs in 400 years
  </code></pre>
  
  <p>This fails with the error</p>
  
  <pre><code>constant expression not representable in type integer
  </code></pre>
  
  <p>The problem is 400 * 365 * 24 * 60 * 60 is larger than 2^32</p>
  
  <p>I would have thought that by declaring the constant to be UInt64 that it would be OK to assign a 64 bit value to it</p>