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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. we can't use some API functions

we can't use some API functions

Scheduled Pinned Locked Moved C / C++ / MFC
c++comjson
6 Posts 4 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.
  • M Offline
    M Offline
    mohsen nowruzi
    wrote on last edited by
    #1

    we can't use some API functions in VC++6 such as AlphaBlend or AnimateWindow and so on. Please tell us how can we do. you can sened your answer to : mohsennowruzi@gmail.com or to: abolfazlk@gmail.com thanks a lot

    C 1 Reply Last reply
    0
    • M mohsen nowruzi

      we can't use some API functions in VC++6 such as AlphaBlend or AnimateWindow and so on. Please tell us how can we do. you can sened your answer to : mohsennowruzi@gmail.com or to: abolfazlk@gmail.com thanks a lot

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      mohsen nowruzi wrote: you can sened your answer to : mohsennowruzi@gmail.com or to: abolfazlk@gmail.com No way. If you want our help, read our site. Anyhow, the API calls you want were written AFTER VC6 ( who still uses VC6 ? ) You need to download and install a platform SDK to be able to compile against libraries that include these newer calls. Christian Graus - Microsoft MVP - C++

      B 1 Reply Last reply
      0
      • C Christian Graus

        mohsen nowruzi wrote: you can sened your answer to : mohsennowruzi@gmail.com or to: abolfazlk@gmail.com No way. If you want our help, read our site. Anyhow, the API calls you want were written AFTER VC6 ( who still uses VC6 ? ) You need to download and install a platform SDK to be able to compile against libraries that include these newer calls. Christian Graus - Microsoft MVP - C++

        B Offline
        B Offline
        BlackDice
        wrote on last edited by
        #3

        I don't know about the SDK thing. I had the same problem before in my BugReporter[^] project, and I found that I just had to set the version number higher for WIN_IE or WINVER (can't remember which) in my stdafx.h file. Certain structs, constants, and functions are preprocessed out if your Internet Explorer and/or Windows version isn't high enough My articles www.stillwaterexpress.com BlackDice

        B 1 Reply Last reply
        0
        • B BlackDice

          I don't know about the SDK thing. I had the same problem before in my BugReporter[^] project, and I found that I just had to set the version number higher for WIN_IE or WINVER (can't remember which) in my stdafx.h file. Certain structs, constants, and functions are preprocessed out if your Internet Explorer and/or Windows version isn't high enough My articles www.stillwaterexpress.com BlackDice

          B Offline
          B Offline
          Blake Miller
          wrote on last edited by
          #4

          AND regardless of the 'WINVER or other settings, if the VC6 header files on your syetm are 'old' enough, and plenty of them are using the riginal installation media (even with the SP5 updates), the API is not even declared in the older header files. Thus your need to downlaod the newer platform SDK libraries and header files AND define the WINVER and other definitions sufficiently high enough. It is not always sufficient to only do one or the other of the two tasks.

          B 1 Reply Last reply
          0
          • B Blake Miller

            AND regardless of the 'WINVER or other settings, if the VC6 header files on your syetm are 'old' enough, and plenty of them are using the riginal installation media (even with the SP5 updates), the API is not even declared in the older header files. Thus your need to downlaod the newer platform SDK libraries and header files AND define the WINVER and other definitions sufficiently high enough. It is not always sufficient to only do one or the other of the two tasks.

            B Offline
            B Offline
            BlackDice
            wrote on last edited by
            #5

            I stand corrected. However, the reason I saw it only as the #define's is because I actually had this problem using VC7! So in my case, I already had the correct header files on my system, but the stdafx.h file that was generated when I started my project didn't add the #define's correctly. (I'm more asking than telling) Is this correct? My articles www.stillwaterexpress.com BlackDice

            B 1 Reply Last reply
            0
            • B BlackDice

              I stand corrected. However, the reason I saw it only as the #define's is because I actually had this problem using VC7! So in my case, I already had the correct header files on my system, but the stdafx.h file that was generated when I started my project didn't add the #define's correctly. (I'm more asking than telling) Is this correct? My articles www.stillwaterexpress.com BlackDice

              B Offline
              B Offline
              Blake Miller
              wrote on last edited by
              #6

              Yes. VC6 - Download newer Platform SDK and add defines. VC7 - Just adjust the defines. At some point, even the VC7 default installation of header files and libraries will be too old, and then it will also need the platform SDK and defines to see the newer API. Using the recent platform SDK and proper defines, and I can build a VC6 program using all the latest Windows XP API just fine.

              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