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. Other Discussions
  3. The Weird and The Wonderful
  4. stdcall_api

stdcall_api

Scheduled Pinned Locked Moved The Weird and The Wonderful
c++rubyquestion
5 Posts 4 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
    thoru
    wrote on last edited by
    #1

    Hello, I do not know if this is a horror or not, but it was a horror for me. In a project i wrote this little gem:

    #define stdcall_api __stdcall

    Do not do that ever. Now i cannot build any project in Visual C++ (2008). I think this is really a horror, no?

    P R 2 Replies Last reply
    0
    • T thoru

      Hello, I do not know if this is a horror or not, but it was a horror for me. In a project i wrote this little gem:

      #define stdcall_api __stdcall

      Do not do that ever. Now i cannot build any project in Visual C++ (2008). I think this is really a horror, no?

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Dunno, does it conflict with something? If not, what's the problem?

      R 1 Reply Last reply
      0
      • P PIEBALDconsult

        Dunno, does it conflict with something? If not, what's the problem?

        R Offline
        R Offline
        Rob Grainger
        wrote on last edited by
        #3

        Judging by the "Now i cannot build any project in Visual C++ (2008).", I'd say that's quite a horror - although I can't see how a #define could affect "any project", unless added to a (very) commonly include header.

        P 1 Reply Last reply
        0
        • R Rob Grainger

          Judging by the "Now i cannot build any project in Visual C++ (2008).", I'd say that's quite a horror - although I can't see how a #define could affect "any project", unless added to a (very) commonly include header.

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

          Right, but it must conflict with something. And did it work in 2005?

          1 Reply Last reply
          0
          • T thoru

            Hello, I do not know if this is a horror or not, but it was a horror for me. In a project i wrote this little gem:

            #define stdcall_api __stdcall

            Do not do that ever. Now i cannot build any project in Visual C++ (2008). I think this is really a horror, no?

            R Offline
            R Offline
            Redwan Albougha
            wrote on last edited by
            #5

            Hello thoru, Although I was sure that this issue should not make any error :omg: . I gave it a try in my installed VS2008 in my machine. I made a new C++ project with a precompiled headers and non-empty project, every thing went good :cool:.

            Redwan Al-Bougha

            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