Stephen Pickering

I'm presuming this is a very nooby question, but ive tried googling for the answer and cant find it. I dont know where to find it in the help section of the program either. So here I go. I Am following this tutorial

http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/

I am sorry if it is against the rules to post urls

and Ive done everything [im pretty sure] correctly but the only part im struggling with is this

As a final step, test your project by clicking the Start button in the IDE or by pressing F5. Your Win32 application should build and run.

So I pressed F5, And then a window comes up saying 'This project is out of date:

Project name - Debug Win32

Would you like to build it

So I click yes.

Then I get;

Error Message 'There were build errors. Would you like to continue and run the last successful build

I tried no, nothing happens, so i clicked yes instead.

Then i get another message saying

Unable to start program c:\documents and settings\user.pickering\my documents\visual studio 2005\projects\my project name\debug\myprojectname.exe

The system cannot find the file specified.

Now i've checked this folder and the myprojectname.exe is not there. So how do i get it there Im presuming that is the problem. to I have to compile/save it before i build it Because the tutorial didn't mention that. Help would be much appreciated. I might even include you in the credits for my project if you can help. Anyway, bye for now, hope to hear from you very soon, as I have to get this done soon!

myprojectname.exe & My Project Name arent the real names, Im not allowed to say what it really is ;-)

EDIT: Is it possible that I have done this wrong somehow;

Step 3: Update the Visual C++ directories in the Projects and Solutions section in the Options dialog box.

Add the paths to the appropriate subsection:

  • Executable files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin
  • Include files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Include
  • Library files: C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Lib

- Stephen

P.S. Excuse the grammar, punctuation and spellings, typed it in a rush :-)




Re: Visual C++ General Error Message 'There were build errors. Would you like to continue and run the last successful build?

Simple Samples

Stephen Pickering wrote:
I'm presuming this is a very nooby question

I am sorry, but the term nooby is irritating for me in a manner similar to fingernails on a chalkboard. The term beginner is just two more characters. You have the right to use the terms you want to and if I am the only one that is irritated, then you can ignore my comment.

Stephen Pickering wrote:
P.S. Excuse the grammar, punctuation and spellings, typed it in a rush :-)

The value of answers often depend on the quality of the question.

A compile is part of a build; they are not separate. A build consists primarily of a compile for each cpp file that needs to be compiled and then a link. You seem t have at least one error in the compile or the link. I think you can build using F7 and then look at the bottom of the output window. It will probably report the number of errors. If it is a compile error or if (more likely) there are compile errors, then press F4 to see the error and the source code line causing the problem.

Error messages can be confusing; often a single error can cause many error messages. Expect that to happen and expect to spend some time being confused. Don't give up; keep looking and reading and such.






Re: Visual C++ General Error Message 'There were build errors. Would you like to continue and run the last successful build?

reenavade

Hello Stephen,

The problem is simple.First you have to build the program as told by Sams (build includes compiling and then linking).The errors will be shown here.If you are able to remove the errors,great!!!!!!!!!! but else you will start debugging.Then you get a msg to pass the executable where the program needs to be debugged.If you simply write any path and at the end of it give a file name with an extension.exe,it will give the error "Unable to start the program............C:\Documents and....."

To avoid this,first check where you want to see the output i.e. which is the executable If tht is known then you can give the path in the debug mode and you will get the output.But I would suggest,please remove the errors first,else it makes no sense to get to see the output of a program which has errors.

Hope this helps you!






Re: Visual C++ General Error Message 'There were build errors. Would you like to continue and run the last successful build?

Stephen Pickering

Thanks, everyone who replied. Your method worked. Now I have a problem opening tutorial 12_2005.sln from the samples folder in the DirectX SDK file (I Think)

Now I am Getting this error when i am pressing F5 and starting without debugging it:

------ Build started: Project: Tutorial12, Configuration: Debug Win32 ------

Compiling...

DXUTenum.cpp

c:\program files\microsoft directx sdk (april 2007)\samples\c++\dxut\core\dxut.h(91) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory

DXUTgui.cpp

c:\program files\microsoft directx sdk (april 2007)\samples\c++\dxut\core\dxut.h(91) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory

DXUTmisc.cpp

c:\program files\microsoft directx sdk (april 2007)\samples\c++\dxut\core\dxut.h(91) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory

DXUTres.cpp

c:\program files\microsoft directx sdk (april 2007)\samples\c++\dxut\core\dxut.h(91) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory

DXUTsettingsdlg.cpp

c:\program files\microsoft directx sdk (april 2007)\samples\c++\dxut\core\dxut.h(91) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory

SDKmesh.cpp

c:\program files\microsoft directx sdk (april 2007)\samples\c++\dxut\core\dxut.h(91) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory

SDKmisc.cpp

c:\program files\microsoft directx sdk (april 2007)\samples\c++\dxut\core\dxut.h(91) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory

Tutorial12.cpp

c:\program files\microsoft directx sdk (april 2007)\samples\c++\dxut\core\dxut.h(91) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory

DXUTcamera.cpp

c:\program files\microsoft directx sdk (april 2007)\samples\c++\dxut\core\dxut.h(91) : fatal error C1083: Cannot open include file: 'd3d9.h': No such file or directory

Build log was saved at "file://c:\Program Files\Microsoft DirectX SDK (April 2007)\Samples\C++\Direct3D10\Tutorials\Tutorial12\Debug\BuildLog.htm"

Tutorial12 - 9 error(s), 0 warning(s)

Now In the tools > option> projects and solutions > VC++ Directories When i show direcotires for my library files i have it linking to my platform SDK Lib folder. Should it be linking to that, or my directX SDK Lib Folder

Same goes for my excuteables files, with the Bin folder, but theres is no bin folder in the directX SDK folder, except inside the utilities folder, should i link it to there

And again, should i link the include folder from the directX Folder or from the platform SDK Folder.

Help would be much appreciated, and thanks for all your help up to now. :-)

Anyway, I tried linking to my directX Folders, and I got this error message:

------ Build started: Project: Tutorial12, Configuration: Debug Win32 ------

Compiling...

DXUTenum.cpp

c:\program files\microsoft directx sdk (april 2007)\samples\c++\dxut\core\dxut.h(73) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

DXUTgui.cpp

c:\program files\microsoft directx sdk (april 2007)\samples\c++\dxut\core\dxut.h(73) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

DXUTmisc.cpp

c:\program files\microsoft directx sdk (april 2007)\samples\c++\dxut\core\dxut.h(73) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

DXUTres.cpp

c:\program files\microsoft directx sdk (april 2007)\samples\c++\dxut\core\dxut.h(73) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

DXUTsettingsdlg.cpp

c:\program files\microsoft directx sdk (april 2007)\samples\c++\dxut\core\dxut.h(73) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

SDKmesh.cpp

c:\program files\microsoft directx sdk (april 2007)\samples\c++\dxut\core\dxut.h(73) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

SDKmisc.cpp

c:\program files\microsoft directx sdk (april 2007)\samples\c++\dxut\core\dxut.h(73) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

Tutorial12.cpp

c:\program files\microsoft directx sdk (april 2007)\samples\c++\dxut\core\dxut.h(73) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

DXUTcamera.cpp

c:\program files\microsoft directx sdk (april 2007)\samples\c++\dxut\core\dxut.h(73) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

Build log was saved at "file://c:\Program Files\Microsoft DirectX SDK (April 2007)\Samples\C++\Direct3D10\Tutorials\Tutorial12\Debug\BuildLog.htm"

Tutorial12 - 9 error(s), 0 warning(s)

========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

So It Must be somethign else Any of you guys know what it is

Basically, I just want to know how to solve these errors, what It could be, and what I should do.

Again, any help would be appreciated, Im still learning so anything else you can add would be great.






Re: Visual C++ General Error Message 'There were build errors. Would you like to continue and run the last successful build?

reenavade

Wherever you have stored your project,check the Include files.For eg:If I am storing my project in C:\Demo\Newproject..then when I open this project,I will get some more folders...there might be a bin folder,a "your project(whatever is the name of your project) and an Include folder.Check your include folder for the said d3.d9.h file.If its not present,which is visible from the errors given by the build command,import it and add in the Include folder and then try building you program again.I hope this should solve your problems.