Thread: Did I Install the Platform SDK Correctly?

  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    127

    Did I Install the Platform SDK Correctly?

    Hi,

    I recently installed VS Express 2008. I also installed the Platform SDK. However, I'm not sure I installed it correctly. Basically, I installed it because I want to program a bot for the game Half-Life, and I know I need it for that. However, after installing the Platform SDK, I know you need to go to Tools/ Options/ Projects and Solutions/ VC++ Directories, and change your include and library folder settings.

    For the include settings, I added the line:
    "C:\Program Files\Microsoft SDKs\Windows\v6.1\Include"
    and for the library settings, I added the line:
    "C:\Program Files\Microsoft SDKs\Windows\v6.1\Lib"

    However, I can't get the bot to compile, and it tells me stuff about not being able to find files, so I'm wondering if maybe I havn't set these options correctly? Anyone know if I'm making a mistake with this?

    Thanks.

  2. #2
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    For VS08, you don't need to install the SDK at all.
    What are the errors?
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  3. #3
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by Elysia View Post
    For VS08, you don't need to install the SDK at all.
    What are the errors?
    I believe you do for the Express edition, but I may be wrong.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  4. #4
    Registered User
    Join Date
    Sep 2007
    Posts
    127
    When I try to compile the bot, I get the following output. It seems to work ok upto the linking part:

    "Linking...
    Creating library .\Debug/HPB_bot.lib and object .\Debug/HPB_bot.exp
    Embedding manifest...
    Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
    Copyright (C) Microsoft Corporation. All rights reserved.
    Creating browse information file...
    Microsoft Browse Information Maintenance Utility Version 9.00.21022
    Copyright (C) Microsoft Corporation. All rights reserved.
    Copying to DLL folder(s)
    The system cannot find the path specified.
    0 file(s) copied.
    The system cannot find the path specified.
    0 file(s) copied.
    The system cannot find the path specified.
    0 file(s) copied.
    The system cannot find the path specified.
    0 file(s) copied.
    The system cannot find the path specified.
    0 file(s) copied.
    Project : error PRJ0019: A tool returned an error code from "Copying to DLL folder(s)"
    Build log was saved at "file://c:\SIERRA\Half-Life\HPB_bot\dlls\Debug\BuildLog.htm"
    HPB_bot - 1 error(s), 299 warning(s)
    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped =========="

    Thanks for your help.

  5. #5
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Those errors have nothing to do with the SDK (as far as I can tell) - it is trying to execute some commands that there is no corresponding tool/command to run - you'd have to look in the log file to find out exactly what commands they are - quite possibly custom build commands, but I couldn't say for sure.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  6. #6
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by matsp View Post
    I believe you do for the Express edition, but I may be wrong.

    --
    Mats
    That should be the case for 2005, but not 2008.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  7. #7
    Registered User
    Join Date
    Sep 2007
    Posts
    127
    I looked in the buildlog file, but couldn't see anything there. I've uploaded it here, if you're willing to take a look:

    http://bengreenwood.tripod.com/BuildLog.htm

    Thanks again.

  8. #8
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Code:
    copy c:\SIERRA\Half-Life\HPB_bot\dlls\Debug\HPB_bot.dll \half-life\valve\dlls
    
    copy c:\SIERRA\Half-Life\HPB_bot\dlls\Debug\HPB_bot.dll \half-life\tfc\dlls
    
    copy c:\SIERRA\Half-Life\HPB_bot\dlls\Debug\HPB_bot.dll \half-life\cstrike\dlls
    
    copy c:\SIERRA\Half-Life\HPB_bot\dlls\Debug\HPB_bot.dll \half-life\gearbox\dlls
    
    copy c:\SIERRA\Half-Life\HPB_bot\dlls\Debug\HPB_bot.dll \half-life\frontline\dlls
    These are probably where you are seeing the errors from.

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Error when trying to install platform sdk
    By Shamino in forum Windows Programming
    Replies: 3
    Last Post: 08-20-2007, 12:59 PM
  2. Latest Platform SDK includes MFC 4.2 source code!
    By Codeplug in forum Windows Programming
    Replies: 5
    Last Post: 04-04-2006, 10:49 AM
  3. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  4. Visual C++ 2005 linking and file sizes
    By Rune Hunter in forum C++ Programming
    Replies: 2
    Last Post: 11-12-2005, 10:41 PM
  5. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM