VS2012 migration "HasTrailingSlash" issue - c++

I am trying to migrate a VS 2005 project to VS 2012. But it reports the following error.
The "HasTrailingSlash" function only accepts a scalar value, but its
argument "$(IntDir)" evaluates to
"C:\Users\Mahesh\HelloWorld_obj\DebugW7-Win32;\" which is not a
scalar value. C:\Program Files
(x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.targets
I understand its a string literal and not a scalar value. But how to resolve the issue. Can anyone please share your ideas. Googling didn't help much.

Failed attempt : Though changing the delimeter to / from ; for the macro serving as intermediate directory in the property sheet did not work.
Success: I opened the property sheet in Notepad and removed the following lines for the user macro "ObjOut" which serves as an intermediate directory for my project.
InheritsFromParent="true"
Delimiter=";"
The same can be achieved via IDE as well when "Macro inherits from parent property sheets" is unchecked for the macro.
Hope this is useful to someone in future. I posted the same on MSDN forum as well.

Related

OpenCart Integrate wih template

Currently I using OpenCart v2.3.0.2, after me purchased the theme template, I tried follow the documentation but stuck on here.
Before met this errors, I get some similar error, which is
/var/www/html/public_html/catalog/view/theme/logancee/template/extension/module/featured.tpl on line 2
at the end i solve this error by deactive and active the extension. Now I stuck on the footer.tpl, which is this error.
Notice: Undefined variable: registry in /var/www/html/public_html/catalog/view/theme/logancee/template/common/footer.tpl on line 2
Notice: Undefined variable: registry in /var/www/html/public_html/catalog/view/theme/logancee/template/common/cart.tpl on line 2
Notice: Undefined variable: registry in /var/www/html/public_html/catalog/view/theme/logancee/template/common/header.tpl on line 2
Please advice me if you face this kind of error before.
You can end notices in the settings by setting Display Errors to No. Or you can back-trace these errors and variables and fix them accordingly.
The theme you purchased is not prepared to handle some of the extensions, you have already installed.
I suggest you remove ALL extensions, modifications & vQmods that you have added and start adding them again by testing one by one to find out which one is giving you the error!
Also remove all your cached content & files before each step including your browser's cache.

Object 'X' already exists

I'm learning C++ and am redoing a tutorial that I did before. I deleted the project folder and recreated it. I right clicked on the solution, clicked Add Class and entered my class name, but I get the error that 'Object 'X' already exists' even though I deleted the previous folder. I'm just learning C++ so I guess I don't understand how C++ creates objects.
Probably some stored data are still there from the previous project.
1st solution: I would suggest you to change from the name tag, your project name. Maybe something was still there.
Then, second option: restart Visual studio
2nd solution: Watch also to the solution explorer, if there are hidden folder named as your class name. If so, delete them and create the class again
Let me know.
To solve this problem I created a file with the name that did not work via windows explorer in my project folder. I then dragged the file into visual studio and it worked.

How to write and display C++ parameter info in VS 2010 Ultimate?

I've been following a C++ tutorial, and would like to comment some of the parameters and methods for convenience so that their associated comments are displayed when I hover over them (uses Intellisense I believe). I know how to do this in C#, but haven't been able to figure it out in C++.
In Visual C# 2010 express, I could do the following:
Type "///" and the summary and param tag were automatically created. Filling in the comments I could create:
/// <summary>
/// Constructor.
/// </summary>
/// <param name="value_Initial">Initial value.</param>
public DataObject_Float(float value_Initial){
...
}
such that hovering over them displayed their parameter and method info. The closest I've been able to get is:
// Constructor.
// value_Initial = Initial value
which is not ideal.
How can I do/emulate this behavior in VS Ultimate 2010 in C++, even if I have to manually type out the tags, variable names, etc. I have been unable to figure out/find the syntax for this.
The compiler does not use CLR, which apparently isn't supported by Intellisense. I've also installed a trial version of Visual Assist X, if that could be used to help with this. Additionaly, should the comments for the methods and parameters be placed in the header file or the .cpp file?
The syntax for VC++ doc comments is reasonably documented in two places. One is the recommended tags and the other is the delimiters.
The doc comments will not show up in hover text, but they will show up in when the auto-complete list is up (i.e. that will show the symbol declaration, any doc comments, and the symbol the file is declared in.
I believe you want to put the doc comments in the header as it seems to be picked for the current translation unit only (i.e. meaning if it's the .cpp you'll only see it when you are in that single .cpp file).

Visual Studio C++ project error re: LOCALAPPDATA

I'm trying to create a new C++ project in VS 10, and can't even get an empty project to load from the template. I get an error...
The "exists" function only accepts a scalar value but its argument "$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" evaluates to "{~}" which is not a scalar value.
The {~} value is what I have stored in the LOCALAPPDATA variable in the computer Environment Variables, concatenated with "\Microsoft\MSBuild\v4.0\Microsoft.Cpp.Win32.user.props" at the end.
I'm reluctant to go changing any template files without understanding what's going on.
Well, it looks like Windows XP doesn't provide any default value for this variable and "~" is definitely not a valid directory on your PC. Try to set it as described here, and maybe you'll get lucky. VS2010 had some bug related to this. Perhaps you also need to upgrade it to SP1.
The links provided by #Mihai gave the information I needed to find a solution. The problem was that LocalAppData didn't have the value it was looking for (just what the error message says). I couldn't change that data because other apps had modified it for their own purposes (the value wasn't "~", that was a placeholder for this post).
Instead, I opened the .vcxproj file in Notepad, and modified the ImportGroup nodes causing the error. Instead of the attribute:
Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')"
... it now reads
Condition="exists('$(UserProfile)\Local Settings\Application Data\Microsoft.Cpp.$(Platform).user.props')"
The project now loads.

CFEclipse doesn't recognize structName in cfimage tag

This code:
<cfimage action="info" structName="imageInfo" source="#imagePath#">
is giving this error:
The attribute 'structName' is required for the tag. (Found:
[source, structname, action])
When I run this code in CFBuilder - everything is OK, but I must use CFEclipse.
What should I do (I use CF9)?
Thank you for your answers!
Of course this problem won't prevent you from running your application on ColdFusion. It is just an IDE warning that something is wrong.
You have a few options.
Try using a lowercase N in structName. i.e. structname. ColdFusion is not case-sensitive, but Java is, and CFEclipse is a Java application.
If that does not work, then it probably means that the dictionary file that drives the code assist is not correct. You can go earch forthose XML files and update them to include that attribute.
You can use CFBuilder. I know you said you can't, but I have to question why. You know there is a free version that is just as good as CFEclipse, right?
The problem is that there's a casing glitch in that file Peter mentions. There's one reference to "structName" to define the attribute itself, and another "structname" which is in the list defining which attributes are needed for action="info". If you make them both the same, then restart Eclipse, you should be OK (that's I've needed to do to make the error indicator go away).