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. Program compile witn XP Pro SP2 not run on XP Pro SP1, Home and Win2000 SP4

Program compile witn XP Pro SP2 not run on XP Pro SP1, Home and Win2000 SP4

Scheduled Pinned Locked Moved C / C++ / MFC
announcementcsharpvisual-studio
5 Posts 3 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
    pierrekande
    wrote on last edited by
    #1

    Dear Sir, I have write a simple winsocket program on XP Pro SP2 with Visual studio net. 2003. All is fine. But when running the program on other machine like XP Pro SP1 or Win2000 Pro SP4 or on XP Home edition, my program does not run due to ntdll.dll (function RtlIpv6StringToAddressExW does not exist in preview version of ntdll.dll) And with the app dependency walker and can see the difference between those ntdll.dll. I do not need to update my other system to XP Pro SP2; What can I else do. Thank you in advanced. Pierre Kande

    M A 2 Replies Last reply
    0
    • P pierrekande

      Dear Sir, I have write a simple winsocket program on XP Pro SP2 with Visual studio net. 2003. All is fine. But when running the program on other machine like XP Pro SP1 or Win2000 Pro SP4 or on XP Home edition, my program does not run due to ntdll.dll (function RtlIpv6StringToAddressExW does not exist in preview version of ntdll.dll) And with the app dependency walker and can see the difference between those ntdll.dll. I do not need to update my other system to XP Pro SP2; What can I else do. Thank you in advanced. Pierre Kande

      M Offline
      M Offline
      Michael Dunn
      wrote on last edited by
      #2

      It sounds like you are calling an API that was added in SP2. Your only choice is to not call it on pre-SP2 systems, and find/write some equivalent code to use on those systems. --Mike-- LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD

      P 1 Reply Last reply
      0
      • P pierrekande

        Dear Sir, I have write a simple winsocket program on XP Pro SP2 with Visual studio net. 2003. All is fine. But when running the program on other machine like XP Pro SP1 or Win2000 Pro SP4 or on XP Home edition, my program does not run due to ntdll.dll (function RtlIpv6StringToAddressExW does not exist in preview version of ntdll.dll) And with the app dependency walker and can see the difference between those ntdll.dll. I do not need to update my other system to XP Pro SP2; What can I else do. Thank you in advanced. Pierre Kande

        A Offline
        A Offline
        Alexander M
        wrote on last edited by
        #3

        I've never heard about that api "RtlIpv6StringToAddressExW", and even google doesn't know it. Nevertheless, take care when using ip6, it is often not yet supported by windows. Don't try it, just do it! ;-)

        P 1 Reply Last reply
        0
        • A Alexander M

          I've never heard about that api "RtlIpv6StringToAddressExW", and even google doesn't know it. Nevertheless, take care when using ip6, it is often not yet supported by windows. Don't try it, just do it! ;-)

          P Offline
          P Offline
          pierrekande
          wrote on last edited by
          #4

          Dear Alex, Thank you for your reply to my request: In fact if you have the VC tools: "Dependency Walker", and if you have XP Pro SP2, if you open the ntdll.dll, you will see the following function that MS have added and that are not in version XP Pro SP2. "RtlIpv4AddressToStringA RtlIpv4AddressToStringExA RtlIpv4AddressToStringExW RtlIpv4AddressToStringW RtlIpv4StringToAddressA RtlIpv4StringToAddressExA RtlIpv4StringToAddressExW RtlIpv4StringToAddressW RtlIpv6AddressToStringA RtlIpv6AddressToStringExA RtlIpv6AddressToStringExW RtlIpv6AddressToStringW RtlIpv6StringToAddressA RtlIpv6StringToAddressExA RtlIpv6StringToAddressExW RtlIpv6StringToAddressW. So when I build my App, the linker use the ntdll.dll and call the function RtlIpv4AddressToStringW and RtlIpv6StringToAddressExW. and those function are not defined in the preview version of ntdll.dll. My version is: 5.1.2600.2180 The call to those function is made from WS2_32.dll (at version 5.1.2600.2180 to )that call it from ntdll.dll never try but make it.

          1 Reply Last reply
          0
          • M Michael Dunn

            It sounds like you are calling an API that was added in SP2. Your only choice is to not call it on pre-SP2 systems, and find/write some equivalent code to use on those systems. --Mike-- LINKS~! Ericahist | 1ClickPicGrabber | CP SearchBar v2.0.2 | C++ Forum FAQ Strange things are afoot at the U+004B U+20DD

            P Offline
            P Offline
            pierrekande
            wrote on last edited by
            #5

            Thank you for your reply, But I have resolved the problem. I have link my app to the all DLL of windows and not to the DLL install on my OS. and running the program in other system, all is fine. This mistake is from MS, because it cause program build on XP Pro SP2 can run in older version if you link only with the old version dll. have it in mind.

            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