_TCHAR* strGroupName = NULL;
const _TCHAR* strTempName = NULL;
//Assign some value to strTempName
strGroupName = _tcschr(strTempName, 92) //C2440
I get an error at the above line while compiling this code in VS2008. In VC6 it compiles fine.
Error C2440: '=' : cannot convert from
'const wchar_t *' to '_TCHAR *'
What seems to b...
I have a Windows Mobile application in which I want to check the device orientation.
Therefore I wrote the following property in one of my forms:
internal static Microsoft.WindowsCE.Forms.ScreenOrientation DeviceOriginalOrientation { get; private set; }
The strange thing is that after that whenever I open a UserControl, the designer s...
I'm using Visual Studio 2008; is it possible to configure a project debugging options to automatically attach to a process with a certain name when hitting F5?
Edit: actual macro, specifying to attach to managed code:
Sub AttachToMyProcess()
Try
Dim dbg2 As EnvDTE80.Debugger2 = DTE.Debugger
Dim trans As EnvDTE80.Tra...
typedef map<wstring , IWString> REVERSETAG_CACHE ;
REVERSETAG_CACHE::iterator revrsetagcacheiter;
.
.
.
wstring strCurTag;
strCurTag = revrsetagcacheiter->second; //Error C2593
Error C2593: Operator = is ambiguous
Why does the above assignment give this error? It works in VC6. Does not compile in VC9.
...
Where is the physical path of the aspx files from which the webpage is served? I am pressing F5 in my VS 2008, and I want to know where VS stores my aspx files during the debugging process.
...
I am using some 3rd party libraries in my solution and have saved these in a separate source-controlled folder called 3rdParty. I have added references to the DLLs in this folder from the VS2008 IDE. However, I find that after saving, closing and opening the solution, the references have been changed to point to the assemblies in the GAC...
I have been told that the automatically generated tests in VS2008 can be made compatible with NUnit just by adding
#if !NUNIT
using Microsoft.VisualStudio.TestTools.UnitTesting;
#else
using NUnit.Framework;
using TestClass = NUnit.Framework.TestFixtureAttribute;
using TestMethod = NUnit.Framework.TestAttribute;
using TestInitia...
One of the things I like about the Java IDEs out there is that they typically have the ability to allow a user to right-click on an Ant file and run one of the targets.
I've got an msbuild file in my solution that is used for migrating the application database, and would kill to be able to right-click on it, select "update" or "rollback...
Hi
I do not understand the following things:
What is the difference between app.config (applicationname.exe.config) and settings file ?
I am unable to locate the *.settings file in Windows7 AppData directory under the specific account (I heard that it should be located somewhere over there) ?
Let's assume that *.settings file is somew...
Is there a tool to convert a VB.NET 2005 project to a C# 2008 project. I am trying to convert our project to VS 2008 and mostly port all the vb.NET code in some projects to C# 3.0/3.5.
...
Randomly and without warning (or apparent reason), VS 2008 decided to act as if debugging was working just like it always does, except for the fact that my application window never shows up on the screen. I’d been running my app from VS all morning, and I don’t see what I could possibly have changed that would make my window no longer sh...
Is there a way I can show the progress of a single TestMethod In Visual Studio 2008 ?
Within a set of unit tests, I have a single TestMethod that runs for a very, very long time - normally it will take between 30 and 60 minutes. I've set the Timeout using the [Timeout] attribute, no problem there. But I'd like to be able to get a visu...
Thinking about installing Visual Studio on my Asus eee 1000HE. Since it is not a very powerful machine, I am wondering if I should install 2008 or the new 2010. Looks like there has been a lot of changes done to the UI, etc. Does that mean that it now runs smoother as well? Or is it actually heavier to run?
...
I am using VS 2008 and trying to step into a stored procedure on a SQL Server 2005 database. I bring up Server Explorer, double-click on the procedure. It comes up in the text window. I set a break point in it, right click and select "Step into stored procedure". It comes back with "canceled by user". MSVSCOM.exe is running on the SQL Se...
How can I check whether another application is minimized or not? For instance in a loop like this:
foreach(Process p in processes)
{
// Does a process have a window?
// If so, is it minimized, normal, or maximized
}
...
MyControl.Margin.Left = 10 ;
// Error
// "Cannot modify the return value of 'System.Windows.FrameworkElement.Margin' because it is not a variable"
...
Hello,
I hope that I can explain my problem well enough for someone to help.
Basically, I have a horizontal scrollbar (ranged 0 to 1000) and an edit control that represents the position of the scrollbar divided by 1000, so that the user can use either the scrollbar to select a range of numbers between 0 and 1 up to a 3 decimal precisio...
I am using MSVS 2008, C#, ASP.NET project. Right now i can serve any pages i want under http://localhost:3288/ExistingPageInProject.aspx
In MSVS how do i map http://localhost:3288/u/SOME_USER_NAME/media/TITLE-0123 to point to a file/page i have. Such as /u/ExamplePage?name=SOME_USER_NAME&title=TITLE-0123
NOTE: 0123 is the mediaId so th...
I am pretty new to C# and I am pretty sure this function can be radically improved:
public static Boolean SuffixExists(String strWhole, String sufx)
{
int iLen = sufx.Length;
if (iLen > 0)
{
String s;
s = strWhole.Substring(strWhole.Length - iLen, iLen);
if (sufx != s) retu...
Windows Vista - using the following plugins - Codesmith and CodeKeep.
I quess it started after installing the CodeSmith plugins ..
...