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. C / C++ / MFC
  4. equivalent of atoi and itoa functions in SDK

equivalent of atoi and itoa functions in SDK

Scheduled Pinned Locked Moved C / C++ / MFC
question
7 Posts 4 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
    samira forooghi
    wrote on last edited by
    #1

    hi every one What is the equivalent of atoi and itoa functions in Windows SDK platform? with special thanks

    L 1 Reply Last reply
    0
    • S samira forooghi

      hi every one What is the equivalent of atoi and itoa functions in Windows SDK platform? with special thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      The SDK contains the same functions as described here[^].

      MVP 2010 - are they mad?

      S 1 Reply Last reply
      0
      • L Lost User

        The SDK contains the same functions as described here[^].

        MVP 2010 - are they mad?

        S Offline
        S Offline
        samira forooghi
        wrote on last edited by
        #3

        I am grateful to help you I am using these functions, but have not the correct answer. I've created a library in visual c++ and for use it in Delphi, convert it to OMF format. But when I add lib to Delphi ,get an error message where the atoi function is called. Please help me Thanks and respect

        enhzflepE 1 Reply Last reply
        0
        • S samira forooghi

          I am grateful to help you I am using these functions, but have not the correct answer. I've created a library in visual c++ and for use it in Delphi, convert it to OMF format. But when I add lib to Delphi ,get an error message where the atoi function is called. Please help me Thanks and respect

          enhzflepE Offline
          enhzflepE Offline
          enhzflep
          wrote on last edited by
          #4

          Please help us to help you. What on earth does "get an error message where atoi function is called" actually mean? Does the program crash, provide an unexpected conversion result, display an error message (if so, WHAT?), etc, etc. My initial thought is that you could have unicode issues. Perhaps this page will help: Using Functions That Have No Unicode Equivalents[^]

          S 1 Reply Last reply
          0
          • enhzflepE enhzflep

            Please help us to help you. What on earth does "get an error message where atoi function is called" actually mean? Does the program crash, provide an unexpected conversion result, display an error message (if so, WHAT?), etc, etc. My initial thought is that you could have unicode issues. Perhaps this page will help: Using Functions That Have No Unicode Equivalents[^]

            S Offline
            S Offline
            samira forooghi
            wrote on last edited by
            #5

            I am grateful to help you. I test this method, but It is not my problem. When using library, this error message is displayed:

            Build
            [Error] Unit1.pas(130): Unsatisfied forward or external declaration: 'atoi'
            [Error] Unit1.pas(130): Unsatisfied forward or external declaration: 'itoa'
            [Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'

            but when calling the "atoi" function be deleted from the lib error does not occur. This problem when using "strcpy" function also occurred. But replacing it with the "lstrcpy" function This problem was solved I'm hoping to find a function equivalent to the "atoi" function to this problem be solved. Thanks!

            modified on Monday, January 18, 2010 6:29 AM

            S 1 Reply Last reply
            0
            • S samira forooghi

              I am grateful to help you. I test this method, but It is not my problem. When using library, this error message is displayed:

              Build
              [Error] Unit1.pas(130): Unsatisfied forward or external declaration: 'atoi'
              [Error] Unit1.pas(130): Unsatisfied forward or external declaration: 'itoa'
              [Fatal Error] Project1.dpr(5): Could not compile used unit 'Unit1.pas'

              but when calling the "atoi" function be deleted from the lib error does not occur. This problem when using "strcpy" function also occurred. But replacing it with the "lstrcpy" function This problem was solved I'm hoping to find a function equivalent to the "atoi" function to this problem be solved. Thanks!

              modified on Monday, January 18, 2010 6:29 AM

              S Offline
              S Offline
              Stuart Dootson
              wrote on last edited by
              #6

              itoa and atoi are functions in the C runtime library. What your question should really be is: what are the equivalents of itoa and atoi in the Delphi runtime library... Here's a hint - look at StrToInt and IntToStr...

              Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p MVP for 2010 - who'd'a thunk it!

              S 1 Reply Last reply
              0
              • S Stuart Dootson

                itoa and atoi are functions in the C runtime library. What your question should really be is: what are the equivalents of itoa and atoi in the Delphi runtime library... Here's a hint - look at StrToInt and IntToStr...

                Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p MVP for 2010 - who'd'a thunk it!

                S Offline
                S Offline
                samira forooghi
                wrote on last edited by
                #7

                thank you very much

                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