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. porting 32 to 64 bit

porting 32 to 64 bit

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsbeta-testingtutorialannouncement
2 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.
  • T Offline
    T Offline
    tssp
    wrote on last edited by
    #1

    Hi.. I would like to know how to go about porting a GDI based application from 32bit to 64bit, to run on IA64 (orAMD64) processor with windows xp 64bit beta.. I am aware 32 bit application uses thunking to run on 64 bit OS, but the requirement is to make the application 64 bit complaint. Also, the pointer size is 64 bits and there's no change to be done to the existing data type.. The application to be built with the Beta version of 64 bit libraries.. With this I had proceeded, Let me know If I need to take care of any more thing.. Thanks, TssP

    R 1 Reply Last reply
    0
    • T tssp

      Hi.. I would like to know how to go about porting a GDI based application from 32bit to 64bit, to run on IA64 (orAMD64) processor with windows xp 64bit beta.. I am aware 32 bit application uses thunking to run on 64 bit OS, but the requirement is to make the application 64 bit complaint. Also, the pointer size is 64 bits and there's no change to be done to the existing data type.. The application to be built with the Beta version of 64 bit libraries.. With this I had proceeded, Let me know If I need to take care of any more thing.. Thanks, TssP

      R Offline
      R Offline
      Ryan Binns
      wrote on last edited by
      #2

      TssP wrote: IA64 (orAMD64) processor with windows xp 64bit beta WinXP 64-bit beta does not run on the IA64 architecture, only on the AMD64. If you cast a pointer to an integer at any stage, use the ULONG_PTR data type, which is guaranteed to be the same size as a pointer, no matter what platform you're compiling for. Also use SetWindowLongPtr() and GetWindowLongPtr() instead of SetWindowLong() and GetWindowLong() for the same reason. There are other things to watch out for, but you'd best go through each method call and make sure it's going to work. See here[^] for a few more things to watch out for. Basically, check that any variable size changes are not going to cause you any problems.

      Ryan

      "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

      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