Environment : Visual Studio 2008 , wxWidgets 2.8.10 , Vista 64
Code
header.h
#include <wx/wx.h>
class CSend
{
CSend(wxString& name = "");
~CSend();
};
main.cpp
#include "header.h"
void main()
{
CSend dlg(wxString("Hi"));
}
When I compile this program I get the following error
error C2440: 'default argument' : cann...
When I start debugging my IE7 BHO, I often have a strange case where IE 'hangs' and doesn't load its homepage for at least 3min (and probably never). IE itself is responsive (menus, min/max, close etc.) but even attempting to navigate also gives infinite load times.
This happens in debug mode via VS2008, but not in release mode when the...
We just had an interesting experience in trying to link a set of code compiled using Visual Studio Express 2008 with a .lib compiled with Visual Studio 2003. All in C++. To be precise, it was the SystemC 2.2.0 kernel that was compiled in VS2003 into a .lib, and a SystemC model which was compiled in VS2008.
When linking, we kept gettin...
Dev Environment: XP SP3, VS2008, .NET 3.5, SQL Server 2005
I would like to know if there is a way to include different code to be compiled based on the solution configuration that is currently active. We typically have three configurations for our applications: Debug, Test, Production.
For example, I have an application that sends out...
I have a unit test project inside my solution. I keep adding new unit tests and modifying old ones. Some days ago, a message box keeps appearing when running my unit test project. The message box say:
DisconnectedContext was detected
Message: Context 0x2aae50' is disconnected. Releasing the interfaces from the current context
(cont...
Hi,
On a C#/asp.net (VS 2008) project I've just changed a signature of a method that is used in a lot of files in the "code in front".
The problem is that the compiler does not add errors to the "Error List" panel with the location of the method calls on the .ascx or .aspx files.
I now have to manually search/check each and every file...
I am working with VCCodeModel in both C# and C++ CLR and I am having trouble getting the VCCodeModel type in to the CLR project. I have added Microsoft.VisualStudio.VCCodemodel as a reference, but when I type:
Microsoft::VisualStudio::VCCodeModel::VCCodeModel
Visual Studio cannot see the code model. All the other objects in the name...
I create some items from a class X.
I add them to de base, do SaveChanges and all this...
The class Y has a relationship many-to-many with X.
Using another Context, I create a Y instance, putting into the collection of X the elements I've created.
I add Y to Y entity set, it is fine.
When I do Context.SaveChanges(), I get:
A value ...
Hey,
I have a program that crashes (seemingly) randomly after 2-4h of runtime. I am developing in c++ under Visual Studio Pro 2008. Since the crash occurs in an injected DLL (beeing injected into the memory space of a 3rd party software's memory space), I cannot use the Visual Studio Debugger, but I can get some output to the console us...
I didn't realize at the time I create this particular application that I'd need to reuse some of the components - some Windows forms and a class or two.
Now that I've already created the fairly complex forms inside one project, what's the easiest way to transform those forms into inheritable forms that I can reuse in other projects? On...
I am trying to access connectionstrings from the config file. The code is ASP.NET + C#. I have added System.Configuration to reference and also mentioned with using. But, still it wouldn't accept the assembly.
I am using VSTS 2008. Any idea what could be the reason? Another weird thing is the assembly name shown as "System.configuration...
I used to be using visual studio 2005.
Sad news is, I am using VS2008 and I need to call a web service.
can someone paste same code snippets?
Why did I get a negative -1?
...
Hi folks,
I wish to create a TFS Build for my solution. Is there anyway I can just make the TFS Build, build my WDP only .. and not everything in the solution, etc?
Secondly, is there a special keyword I can use to tell my WDP that when it's a TFSBuild, it sets the ouput/drop directory to 'XXX' instead of the current hardocded output d...
...is there any way of checking such thing?
The default option as i remember was checked in my project, but it was long time agoooo
...
hi
i try to work with SqlConnection in C# (VS2008) , and i get this error:
The type 'System.Data.SqlClient.SqlConnection' exists in both 'c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll' and 'c:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PublicAssemblies\System.Data.SqlClient.dll' D:\test\DBDB\DBDB\Form1.cs 15 ...
I just started playing with ReSharper and I think I know why ppl love it now :)
I'm using Vs2008 TS and noticed I have in editor 2 suggestions currently:
one, standard coming from VS, and second from ReSharper...
Eg when I entere something like:
int a = CalculateMe ( 10 );
(Note: CalculateMe method is not defined yet)
So, I can see ...
When building a C++ application in Visual Studio 2008, I receive the following error: iconfile.ico is not in 3.00 format.
I created the icon file using Paint, and saved it as a .ico file.
I tried saving it as 16 bit, 24 bit, and 256 color.
So far, none of these formats appear to be version 3.00.
How do I resolve this?
...
I was using the Visual Studio Profiler on my web application when at some point while it was running Visual Studio crashed. Now everytime I try to run my web application I get this exception in the web browser:
Could not load file or assembly 'Microsoft.VisualStudio.Enterprise.ASPNetHelper
Here is what I have tried so far, but did not ...
I installed a new machine and am using an iso file that was provided to me by my employer (en_visual_studio_team_system_2008_team_suite_x86_dvd_X14-26461.iso). I was wondering how I know whether I need to install the latest service pack for visual studio, or whether it is already installed from the .iso file.
Thanks!
...
Hi all,
Attempting to do TDD, I often need to execute all my tests - in my case a single test project that tests all my assemblies.
Currently I'm selecting the project in solution explorer, then pressing a shortcut to "run all tests in debug mode" (which effects the current selection in solution explorer or in code window).
Can I do t...