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. Managed C++/CLI
  4. TimeZoneInfo class in C++.net

TimeZoneInfo class in C++.net

Scheduled Pinned Locked Moved Managed C++/CLI
csharpc++helpquestion
3 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.
  • P Offline
    P Offline
    parth_patel
    wrote on last edited by
    #1

    Hello, I have used timezoneinfo class in C# and until i know it is part of .net libraries. But I am not able to use it under c++. It returns with error "class not found". Does anybody have any idea about this? Regards, Parth

    N 1 Reply Last reply
    0
    • P parth_patel

      Hello, I have used timezoneinfo class in C# and until i know it is part of .net libraries. But I am not able to use it under c++. It returns with error "class not found". Does anybody have any idea about this? Regards, Parth

      N Offline
      N Offline
      N a v a n e e t h
      wrote on last edited by
      #2

      TimeZoneInfo is a new class added in .NET 3.5. So probably the project don't have correct references. Try the following 1 - Right click on project and take properties 2 - Navigate to Common Properties - Framework and references 3 - Check the version of System.Core referenced. It should be 3.5. If it is not 3.5 or not added, use Add Reference to add it. Now you will have access to TimeZoneInfo. :)

      Navaneeth How to use google | Ask smart questions

      P 1 Reply Last reply
      0
      • N N a v a n e e t h

        TimeZoneInfo is a new class added in .NET 3.5. So probably the project don't have correct references. Try the following 1 - Right click on project and take properties 2 - Navigate to Common Properties - Framework and references 3 - Check the version of System.Core referenced. It should be 3.5. If it is not 3.5 or not added, use Add Reference to add it. Now you will have access to TimeZoneInfo. :)

        Navaneeth How to use google | Ask smart questions

        P Offline
        P Offline
        parth_patel
        wrote on last edited by
        #3

        That worked. Thanks, Parth

        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