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. ATL / WTL / STL
  4. the value of ESP was not properly saved across a function call.

the value of ESP was not properly saved across a function call.

Scheduled Pinned Locked Moved ATL / WTL / STL
c++designhelpquestion
3 Posts 2 Posters 1 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.
  • H Offline
    H Offline
    hongzter
    wrote on last edited by
    #1

    "the value of ESP was not properly saved across a function call." i got this error dialog while compiling a MFC client. the MFC client is empty except for a ATL control added to the UI. the ATL control is empty too. Just as it was 1st created by the wizard. any idea what's wrong?

    J H 2 Replies Last reply
    0
    • H hongzter

      "the value of ESP was not properly saved across a function call." i got this error dialog while compiling a MFC client. the MFC client is empty except for a ATL control added to the UI. the ATL control is empty too. Just as it was 1st created by the wizard. any idea what's wrong?

      J Offline
      J Offline
      Jason De Arte
      wrote on last edited by
      #2

      Some where, some place, there is a function declaration with the wrong calling convention. Imagine if you have an exposed function in a DLL that uses the __stdcall calling convention, but your function pointer is declared as __cdecl. Using the function pointer would cause this error. There's a brief MSDN Dr. GUI article on the topic http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnaskdr/html/askgui08072001.asp[^]

      1 Reply Last reply
      0
      • H hongzter

        "the value of ESP was not properly saved across a function call." i got this error dialog while compiling a MFC client. the MFC client is empty except for a ATL control added to the UI. the ATL control is empty too. Just as it was 1st created by the wizard. any idea what's wrong?

        H Offline
        H Offline
        hongzter
        wrote on last edited by
        #3

        apparently the problem is with the compiling computer. it works fine in other computers. i tried installing MS SDK, VC++ SP5, clearing up the registry... and nothing works.. haha.. will be installing a new copy of VC++ today.. thanks for all the help guys. BUnch of great ppl we have here!!!

        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