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
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. problem with VC in .Net 2003

problem with VC in .Net 2003

Scheduled Pinned Locked Moved .NET (Core and Framework)
helpcsharpc++question
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Saurabh Garg
    wrote on last edited by
    #1

    I recently upgraded from VC++ 6.0 to .Net 2003. my problem is in one of the function I am using double length = pow(2, -4); this was working fine in VC++ 6.0 (lenght = 0.0625), but with .Net 2003 I get lenght = 0. can anyone please explain why this is happening?? thanks for help Saurabh

    A 1 Reply Last reply
    0
    • S Saurabh Garg

      I recently upgraded from VC++ 6.0 to .Net 2003. my problem is in one of the function I am using double length = pow(2, -4); this was working fine in VC++ 6.0 (lenght = 0.0625), but with .Net 2003 I get lenght = 0. can anyone please explain why this is happening?? thanks for help Saurabh

      A Offline
      A Offline
      Anonymous
      wrote on last edited by
      #2

      humm.. Math.Pow(2, -4); I get 0.0625 here.

      S 1 Reply Last reply
      0
      • A Anonymous

        humm.. Math.Pow(2, -4); I get 0.0625 here.

        S Offline
        S Offline
        Saurabh Garg
        wrote on last edited by
        #3

        Anonymous wrote: Math.Pow(2, -4); I think you are using c#. I am talking about VC++

        A 1 Reply Last reply
        0
        • S Saurabh Garg

          Anonymous wrote: Math.Pow(2, -4); I think you are using c#. I am talking about VC++

          A Offline
          A Offline
          Anonymous
          wrote on last edited by
          #4

          Try this (or some other integer type - i.e. double, long, etc...) int64 powerValue=int64(pow(base,power)) this tells the compiler that you want to use the old version of pow and not the new one with complex numbers

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

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