Visual C++ Problem

Pages: 12
closed account (z05DSL3A)
Can you go to the Build menu and select Rebuild Solution.
Then copy the contents of the output window and post it here?

If you can enclose the text in [tt] [/tt] tags the would be good.
1>------ Rebuild All started: Project: CPP, Configuration: Debug Win32 ------
1>Deleting intermediate and output files for project 'CPP', configuration 'Debug|Win32'
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>CPP.cpp
1>Compiling manifest to resources...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Linking...
1>LINK : C:\Documents and Settings\Colby\My Documents\Visual Studio 2008\Projects\CPP\Debug\CPP.exe not found or not built by the last incremental link; performing full link
1>Embedding manifest...
1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1
1>Copyright (C) Microsoft Corporation. All rights reserved.
1>Build log was saved at "file://c:\Documents and Settings\My Documents\Visual Studio 2008\Projects\CPP\CPP\Debug\BuildLog.htm"
1>CPP - 0 error(s), 0 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
closed account (z05DSL3A)
Hmm...not sure.

The path int the LINK section dose not match the path for the build log, this may point to some sort of problem with the project file.

Try starting a new project, saving in in a path that is not under "Documents and Settings".
Well I tryed saving it in C: and it made no difference.

'Rry2.exe': Loaded 'C:\Rry2\Debug\Rry2.exe', Symbols loaded.
'Rry2.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll'
'Rry2.exe': Loaded 'C:\WINDOWS\system32\kernel32.dll'
'Rry2.exe': Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.VC90.DebugCRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_f863c71f\msvcr90d.dll'
The program '[1244] Rry2.exe: Native' has exited with code 0 (0x0
Last edited on
closed account (z05DSL3A)
OK, so the new program [Rry2.exe] loads and finishes with no errors!

Forgive my intrusion upon your thread as I have no solution for you. I do have a small piece of information which may be of interest to you, though.

Code like this:

1
2
3
4
5
6
7
if (UsersAge >= 0 && UsersAge < = 4)	
	Person = 'b';	
	else
	{
	
		if (UsersAge >= 5 && UsersAge < = 20)
		Person = 'y';


can actually be condensed to

1
2
3
4
if (UsersAge >= 0 && UsersAge < = 4)	
   Person = 'b';	
else if (UsersAge >= 5 && UsersAge < = 20)
   Person = 'y';


Note that unlike else statements you may have as many else if statements as you desire. You may also consider using a switch statement.
you may have as many else if statements as you desire.

Not quite. There's a nesting limit (I've reached it). I don't think it's even 50, but it's probably compiler-dependent.
Ok thanks Malachi and Helios.

Grey Wolf, yeah it loads, but doesn't stay open, thanks for your help though.
closed account (z05DSL3A)
I guess what I am trying to say (with no insult intended) is that; if the project compiles, loads and exits without error, the code that you are typing in is not in the files that are compiled.

Topic archived. No new replies allowed.
Pages: 12