• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Help with Visual Studio Express C++

h4ever

Member
I found such problem when I copy a working project with win32 aplication and then rename the project so I cannot compile it. So the copy works until I rename the project. Why is this? For example I copy lesson04 to lesson14 and then want to rename the project name in the copy to lesson14. Just after I do it I cannot compile it or debug. It just prints 1 error but none message about what kind of error happens.
 
Last edited:
The internals of the project have the original name still.

You will need to go into the project file with a text editor and make the corrections
 
which file? sln? I have not found item to edit in sln.

For example if I had lesson04 and renamed the project name to lesson4, I search for lesson04. I dont change directory names or file names, but only one result found is line #4 in the sln file containning registry key and item named lesson04. But after rename this to lesson4 the error is still there.
 
I dont know what is the error. I told it prints 1 error. That is all I know about it.
 
Last edited:
There is also a project file as well as solution file. The solution file is designed to support multiple projects
 
Maybe corrected, I think it could be line
Code:
     <RootNamespace>lesson14</RootNamespace>
in
lesson14.vcxproj

thanks
 
Last edited:
Hello can you again help me with the AOKTS project?
I have downloaded the original project and tried to include headers from
STDAfx.h
I succeed to include some files, but now I have a problem because I got error like one file was not included but it was.
Can you please download this and see?
http://sourceforge.net/projects/autots/files/aokts-1.0.1%20r70b.zip/download
Project name: aokts.vcxproj (VS express 2004)

model\changeplayervisitor.cpp(3) error C2653: 'ChangePlayerVisitor' : is not a class or namespace name
Code:
#include "StdAfx.h" // #include "ChangePlayerVisitor.h"

ChangePlayerVisitor::ChangePlayerVisitor(int to)
: _player(to)
{
}
StdAfx.h:
Code:
#include "ChangePlayerVisitor.h"
#include "Condition.h"
#include "TriggerVisitor.h"
The original project was compiled fine, but now this problem occures because I want to precompile the headers.
 
Last edited:
When I have a huge project and want to create stdafx.h, do I need to include it in every cpp file?
 
Last edited:
Back
Top