It is not really a question because I have already found a solution. It took me a lot of time, that's why I want to explain it here.
Msxml is based on COM so it is not really easy to use in C++ even when you have helpful classes to deal with memory allocation issues. But writing a new XML parser would be much more difficult so I wanted ...
Recently , I found some shortcut key really helpful which I never used before .
Such keys like 'F7' ,'F3' ,'Ctrl+g' help me a lot when editing and debuging.
What are your most frequently used shortcut keys in visual studio?
...
My solution is primarily C#, but I have one C++ project that creates a DLL which my C# code calls. Here's the layout:
[Edited: there are two levels of indirection, which causes the problem]
We'll call the solution MySolution. It has four projects:
MySolution
MyCppDll (creates an unmanaged DLL)
MyCSharpWrapper (Managed wr...
I use VS2008 at home and love it, while approaching work about upgrading 2005 to 2008, one of my obvious causes for concern are all the 2005 solutions we have lying around.
While it may be simple for us to upgrade to 2008, we do work with other developers that use 2005 and will not be upgrading to 2008 in the near future.
I understand ...
The following code generates warning C4250. My question is, what's the best solution to it?
class A
{
virtual void func1();
}
class B : public A
{
}
class C : public A
{
virtual void func1();
}
class D : public B, public C
{
}
int main()
{
D d;
d.func1(); // Causes warning
}
According to what I've read it should be possibl...
In Visual Studio 2008, it seems that when I tab on a line it inserts either 4 spaces or a tab, however - when I backspace it removes a tab as if it were 4 spaces, one space at a time..
I checked the text-editor settings in Tools.. tried both use spaces and use tabs, neither seem to work.
Any ideas?
Thanks in advance.
Pete
...
Is it a bad idea (and if why?) to add a a column to the auto generated asp.net (ASPNETDB.MDF, visual studio 2008, mvc framework) "user roles - database"?
(E.g I want to add the columns RealName and LastName to the aspnet_Users table in the database.)
The reason I want to add a column instead of creating an entire new table is to avoid ...
I have installed:
Visual C# 2008 Express
Visual Web Developer 2008 Express
Visual Studio 2008
SQL Server 2008 Express
SQL Server Management Studio
In Visual C# 2008 Express, I can "Add Item" and create a "Local Database" (.sdf file) or a "Service Based Database" (.mdf file).
Visual Studio 2008 is the same as Visual C# 2008 for appl...
I am getting a compilation error when trying to build a C++ project which previously worked.
The code follows:
const wchar_t* pdest;
pdest = _tcsstr(ConnStr, Name);
The error follows:
Error 10 error C2440: '=' : cannot convert from 'const char *' to 'const wchar_t
I'm using Visual Studio 2008. The error message explains the prob...
When I hover over a variable in visual studio, it brings up a small control which shows the variable name, type, and a + box for viewing members, etc. But for some types the variable type is replaced by more helpful information such as "{X = 0.0 Y = 0.0 Width = 0.0 Height = 0.0}" for a RectangleF.
Is there a way to specify what should b...
I have a menu with the following structure (simplified for illustration purposes):
Menu Bar
|--File
| |--Save
| |--Exit
|--Tools
| |--Tool Category 1
| |--Tool Category 2
| |--Tool Category 3
|--Help
|--About
I want to reconstruct this as follows:
Menu Bar
|--File
| |--Save
| |--Exit
|--Tool Category 1
...
Going to try and run VS 2008 Pro on a machine running Windows 2003 Server x64. Are there any debugging concerns?
...
What's happening to me is, when I run my program out of Visual studio, it can't use relative paths to find anything.
This is proving difficult to articulate...
Like, I've got program X, which opens textfile.txt, right? And if I point to textfile.txt with an absolute path, I'm fine. And if I point to it with a relative path and I compil...
Is there support for lambda expressions from C++ 0x in Visual Studio 2008 SP1? Example below throws me syntax errors. Is there any '-Cpp0x' flag for compiler or something?
#include <algorithm>
#include <iostream>
#include <ostream>
#include <vector>
using namespace std;
int main()
{
vector<int> v;
for (int i = 0; i < 10; ++i)
...
Hi there
What is the best way to remove a data source you no longer need from a VB2008 project?
Deleting the Data source in the Solution Explorer throws up loads of errors. Deleting tables in the design view of the Dataset designer throws errors. Deleting the Table Adapters at the bottom of the form throws up errors, and now my Toolbox...
Hi,
I just tested which type of code is executed by the WinForms Designer in VS 2008.
It seems that the designer is not executing the default constructor anymore.
I added a simple thing like this.Text = "foo"; nothing is changed in the designer.
Did I miss a change between VS 2005/2008? (or SP1)
tia
...
We recently upgraded from MSBuild 2005 to 2008. Since then MSBuild stops on the first error when building a solution. This wasn't the case in 2005.
Is there a way to get the old behavior?
EDIT: We call MSBuild form the command line:
MSBuild.exe xyz.sln /p:Platform=Win32 /p:Configuration=Debug
...
Is there a quick way to determine whether you are using certain namespaces in your application. I want to remove all the unneccessary using statements like using System.Reflection and so on, but I need a way to determine if I am using those libraries or not. I know that the tool Resharper does this for you, but is there a quick and dirty...
Hello I have a number of crystal reports in my VS2008 project.
I am making a change to a couple of my database tables and want to ensure that I make all the necessary changes to the reports. I have done a standard VS search for the specific stored procedure that is being used and it found no results. However, when I went into a report a...
Does anyone know good current (.Net 2.0 3.0 or 3.5) basic documentation, books or urls that document the basics of how to program this in VB.Net or C#. Thanks Roy Cotton
...