locked
fatal error C1083: Cannot open include file: 'SDKDDKVer.h': No such file or directory PLEASE HELP RRS feed

  • Question

  • wrong forum sorry

    • Edited by ReyRey8 Tuesday, May 17, 2011 9:30 PM wrong forum
    Tuesday, May 17, 2011 7:10 PM

All replies

  • That is part of the Windows SDK (which includes headers and libs for building windows applications).

    You can either install it, or remove that reference from your stdafx.h or targetver.h file as it only matters if you #include windows.h (or other windows header files)


    Microsoft Test - http://tester.poleyland.com/
    Tuesday, May 17, 2011 8:06 PM
  • I installed the "Microsoft Platform SDK"

    Can you tell me what to do after that?

    Thanks for the reply.


    Reinaldo Araujo
    Tuesday, May 17, 2011 8:19 PM
  • The old platform SDK does not ship with this file. Remove the include statement of the file.

    Since you are not using VC Expression edition (which is only available after version 2005) your question is off-topic here. Try the forums under the Visual C++ category next time.



    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP

    Tuesday, May 17, 2011 8:59 PM
  • I tried doing that. When I delete the include statement for SDKDDKVer.h, it returns 5 more errors.
    Reinaldo Araujo
    Tuesday, May 17, 2011 9:07 PM
  • I am fairly new to C++. I have been trying to open up some projects that I wrote in Visual Studio C++ but I am now using Visual C++ 6.0. On all of the projects I pull up, the error message is:

     fatal error C1083: Cannot open include file: 'SDKDDKVer.h': No such file or directory

    I have tried deleting the include statement for that header file but it comes back with even more errors after that. Before bringing them over to VC++ 6.0 these projects were compiling and working fine. Any help would be great, thank you. This is the code for one of the programs:

    // raa-lab3.cpp : Defines the entry point for the console application.
    //

    #include "stdafx.h"
    #include <string>
    #include <stdio.h>
    #include <iostream>
    #include <conio.h>

    using namespace std;     // introduces namespace std

     
    // *************************************************************
    // Singly linked list example with add and display methods.
    // Also a destructor makes sure that there will be no memory leaks.
    // *************************************************************
    // Edwin Armstrong also know as (efa)
    // Reinaldo Araujo (raa)
    // *************************************************************

    //   date    comments                                      pgmr

    // ========  ===========================================   ====
    //  1/18/06  First working version using C++.              efa
    //  1/20/06  started converting program.                   dmd
    //  1/23/06  Singly linked list with templates.            efa
    //  1/26/07  Added more comments corrected spelling...     efa
    //  2/20/09  Added proper includes for visual C++ 2008     efa
    //  1/20/10  Removed "bool IsString(Type s);"              efa
    //  3/7/11   Wrote in pop(delete) code.                    raa
    // *************************************************************

    //***********************************************************
    //* LinkList:: A class for adding to and displaying a
    //* singularly linked list. Adds on new link to the front
    //* of the list. last updated 1/23/06 (dmd) and (efa)
    //***********************************************************

    template <class Type>

    struct link
    {
      Type data;
      struct link *next;
    };

     
    template <class Type>
    class LinkList
    {
      private:
       link<Type> *first;      // pointer to the first link (newest) in the list
       link<Type> *cur;

      public:
        LinkList()              // constructor (no arguments)
        {
          first = NULL;        // NULL, no beginning link
        }
        
        void push(Type data);   // add link w/data
        void disp();           // display all links
     void pop();            // delete last name or number on queue
    };

    //***********************************************************
    // push:: push a link to the list, add in front of last link.
    // last updated 1/26/07 (efa)
    //***********************************************************
    template <class Type>
    void LinkList<Type>:: push(Type data) // push a link to the list
    {
      link<Type> *newlink = new link<Type>;// get memory for a new link
      newlink->data = data;

      newlink->next = first;       // insert at front
      first = newlink;             // point first at first link (newest)
    }


    //***********************************************************
    // pop:: delete the last name or number pushed on queue.
    // last updated 3/7/11 (efa)
    //***********************************************************
    template <class Type>
    void LinkList<Type>:: pop() // push a link to the list
    {
      //case 0
     if(first == NULL)
     {
      return;
     }

     //case 1
     if(first->next == NULL)
     {
      delete first;
      first = NULL;
      return;
     }

     //case many
     
      link<Type>  *tmp = first;
      first = first->next;
      cout << "popping" << tmp->data<< endl;
      delete tmp;

    }

     

    //***********************************************************
    // disp:: Display all the links in the list.
    // last updated 1/26/07 (efa)
    //***********************************************************
    template <class Type>
    void LinkList<Type>::disp()     // display all the links
    {
      link<Type> *cur = first; // start at first link

      string temp;

      while(cur != NULL)       // traverse the list
      {
         cout << cur->data << "\n";    // display data
         cur = cur->next;  // move to next link

      }

      cout << endl;

    }
    //***************************************************************

    int _tmain(int argc, _TCHAR* argv[])

       LinkList<string> list1; // create a linked list
       LinkList<int> list2;    // create a linked list
     

       list1.push("Braden");   // push links, load data
       list1.push("Rey");
       list1.push("Ricky");

       list1.pop();
       list1.pop();
       list1.pop();
       list1.pop();

     

       cout <<  endl ;
       cout << "The data list1 is as follows:\n\n";

     
       list1.disp();  // Display all the names in the linked list.
       system("PAUSE");
       

       //******  second test ******
         list2.push(12);   // push links, load data
         list2.push(8);
         list2.push(5);
         cout <<  endl ;
         cout << "The data list2 is as follows:\n\n";
      

         list2.disp();  // Display all the names in the linked list.
         system("PAUSE"); 
    }

    //***************************************************************

     

     


    Reinaldo Araujo
    • Merged by Rob Pan Thursday, May 19, 2011 2:05 AM the same thread
    Tuesday, May 17, 2011 9:28 PM
  • What version did you use to create "projects that I wrote in Visual Studio C++"?

    If you used a later version (hinted at by the reference to VS 2008 in the comments), you may well be using features not available in VC++ 6.

     

     

    Tuesday, May 17, 2011 11:31 PM
  • I concur with pvdg42. Also note that template support in VC6 was very rudimentary, and I certainly wouldn't trust it.
    Wednesday, May 18, 2011 3:55 AM
  • The sdkddkver.h file available in C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\sdkddkver.h location. Have you added this Windows SDK path in your project include path?
    Thanks and Regards Selvam http://www15.brinkster.com/selvamselvam/
    Wednesday, May 18, 2011 4:13 AM
  • The sdkddkver.h file available in C:\Program Files\Microsoft SDKs\Windows\v6.1\Include\sdkddkver.h location. Have you added this Windows SDK path in your project include path?
    Thanks and Regards Selvam http://www15.brinkster.com/selvamselvam/
    • Proposed as answer by Selvam Wednesday, May 18, 2011 6:36 AM
    Wednesday, May 18, 2011 4:13 AM
  • They were originally written in Visual C++ 2010 Express. 
    Reinaldo Araujo
    Wednesday, May 18, 2011 4:46 AM
  • what are those errors?

    The following is signature, not part of post
    Please mark the post answered your question as the answer, and mark other helpful posts as helpful, so they will appear differently to other users who are visiting your thread for the same problem.
    Visual C++ MVP
    Wednesday, May 18, 2011 3:52 PM
  • Hi Reinaldo,

     

    I have noticed that you may post two similar thread to our forum. So I will merge them in order that these thread can get better support. Thanks for your understanding.

     

    Best Regards,

    Rob


    Rob Pan [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Thursday, May 19, 2011 2:04 AM