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. COM
  4. Why CreateWindowEx() function failed on 64 Bit window XP

Why CreateWindowEx() function failed on 64 Bit window XP

Scheduled Pinned Locked Moved COM
json
5 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.
  • A Offline
    A Offline
    am 2009
    wrote on last edited by
    #1

    Hi I am using CWindowImpl::create() API which internally call CreateWindowEx() method. When I test this API of win32 OS. It works fine, but when I test on 64 Bit OS above API failed

    L 1 Reply Last reply
    0
    • A am 2009

      Hi I am using CWindowImpl::create() API which internally call CreateWindowEx() method. When I test this API of win32 OS. It works fine, but when I test on 64 Bit OS above API failed

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

      What was the value returned by GetLastError()?[^] Best Wishes, -David Delaune

      A 2 Replies Last reply
      0
      • L Lost User

        What was the value returned by GetLastError()?[^] Best Wishes, -David Delaune

        A Offline
        A Offline
        am 2009
        wrote on last edited by
        #3

        GetLastError() value is 1413

        1 Reply Last reply
        0
        • L Lost User

          What was the value returned by GetLastError()?[^] Best Wishes, -David Delaune

          A Offline
          A Offline
          am 2009
          wrote on last edited by
          #4

          application get crash in CreateWindowEx() function on 64 Bit Windows XP. Is there any setting required to work CreatewindowsEx() function in 64 Bit windows.

          L 1 Reply Last reply
          0
          • A am 2009

            application get crash in CreateWindowEx() function on 64 Bit Windows XP. Is there any setting required to work CreatewindowsEx() function in 64 Bit windows.

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

            am 2009 wrote:

            Is there any setting required to work CreatewindowsEx() function in 64 Bit windows.

            No it works the same. The error code you recieved would imply that something may be wrong with the WNDCLASS Structure[^]. Make sure that you are initializing it to zero: WNDCLASS yourclass = {0}; The error code may also be caused by using a 32 bit DWORD parameter rather than a DWORD_PTR. Rules for Using Pointers[^] Best Wishes, -David Delaune

            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