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#
  4. A Not-So-Neat Balancing Act

A Not-So-Neat Balancing Act

Scheduled Pinned Locked Moved C#
csharphtmlgraphicsdata-structuresregex
3 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.
  • I Offline
    I Offline
    IceWater42
    wrote on last edited by
    #1

    I am using the cards.dll in my application as suggested at this website: http://www.publicjoe.f9.co.uk/csharp/card06.html The card shows up just fine on the form but i get this weird message immediately after drawing: ----------- A call to PInvoke function 'CardMgr!cards.cardsdll::cdtDraw' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. ------------ I have no clue what information to include in this to even begin to addrss the problem. Any ideas how to address this? Thanks!

    R 1 Reply Last reply
    0
    • I IceWater42

      I am using the cards.dll in my application as suggested at this website: http://www.publicjoe.f9.co.uk/csharp/card06.html The card shows up just fine on the form but i get this weird message immediately after drawing: ----------- A call to PInvoke function 'CardMgr!cards.cardsdll::cdtDraw' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match the target unmanaged signature. ------------ I have no clue what information to include in this to even begin to addrss the problem. Any ideas how to address this? Thanks!

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      See this[^] link. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

      I 1 Reply Last reply
      0
      • R Ravi Bhavnani

        See this[^] link. /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com

        I Offline
        I Offline
        IceWater42
        wrote on last edited by
        #3

        Thank you so VERY VERY VERY much, Ravi. That resolved the problem ... the DLL returned an integer ... the interface expected a bool. I will so inform the author of the website ... thanks again.

        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