visual-studio

Where should I put my breakpoint to check XML Response string from a web service?

Hi, You know, once you add a web reference to a webservice a wrapper code is generated by Visuel Studio. I was wondering if there is a method (or property) which is generated by Visual Studio whatever web service you add to your project so that I can put a breakpoint there and once the debugger stops there, I can simply read the respon...

visual studio macro - getting started | copy a definition from .cpp to .h

Is it possible to do a macro that copies a definition of a function to a declaration(, and maybe also the opposite)? For instance Foo::Foo(int aParameter, int bParameter){ // } int Foo::someMethod(char aCharacter) const { return 0; } from the .cpp file would be: class Foo { Foo(int aParameter, int bParameter); i...

Visual Studio: What approach do you use to 'template' plumbing for similiar projects?

When building ASP.NET projects there is a certain amount of boilerplate, or plumbing that needs to be done, which is often identical across projects. This is especially the case with MVC and ALT.NET approaches. [I'm thinking of things such as: IoC, ORM, Solution structure (projects), Session Management, User Management, I18n etc.] I w...

child objects in rdlc (Studio 2010RC)

Hi, I am attempting to reference a sub-object in a field expression in a studio 2010 report. This used to work in prior versions. When account references another object with properties the following used to work. =Fields!Account.Value.Name (Name is a property of the child object, Account is the parent object) The same expression syn...

Visual Studio .NET C# executable traces

Hey, i've got a question, is it possible to identify the creator of a .NET assembly, just with traces from VisualStudio within the assembly ? Or can you even get a kind of unique ID of the creator out of it? I don't mean the application information like company or description, they can be edited too easily. ...

Select calls seems to not time out.

HI Folks, I have a threaded C++ program where up to three threads are calling select on a three separate socket descriptors waiting for data to become available. Each thread handles one socket and adds it to the readfds with a timeout of 300 seconds. After select returns if there is data available I'm calling recv to read it. Is ther...

How can we visualizat a binary tree in C++

Hi, When I have implemented binary trees , one of the first utilities one writes is a visualization function that given a tree prints it to the screen. using cout function to print it every time like a stack is probleme to me , I can't represent the value of my job . Printing trees properly in ASCII is quite difficult to understand.Mea...

Trying to right click on code in VS2008 causes lockup.

Working on a Win32 DLL using Visual Studio 2008 SP1 and, since yesterday, whenever I try to right click on code, to go to a variable definition for example, VS completely locks up and I have to manually kill the process. To make it even weirder, whenever this happens the devenv.exe process uses exactly 25% of the CPU. And I mean exactly...

Need advice on organizing two WPF applications within one Visual Studio solution

I have a WPF application (KaleidoscopeApplication) organized as follows: Solution (6 projects) Cryptography (DLL) Rfid (DLL) KaleidoscopeApplication (buildable "startup project") Basically, KaleidoscopeApplication contains a bunch of resources (sounds, images, etc) and your standard WPF junk (App.xaml, App.xaml.cs, other xaml and c...

How to add datasource to a report in VS2010?

In VS2008 we have menu Report->Data Sources... which opens "Report Data Sources" from here we can see Project data sources & we can add them into our report by pressing "Add to Report". but in VS2010 RC there is no such thing like this (no Data Sources... option inside Report menu) any help? ...

Why does the MSCVRT library generate conflicts at link time?

I am building a project in Visual C++ 2008, which is an example MFC-based app for a static C++ class library I will be using in my own project soon. While building the Debug configuration, I get the following: warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other libs; use /NODEFAULTLIB:library After using the recommende...

How to log when a particular memory location gets written and by which function?

I have a bug which happens very rarely but crashes my C++ program. It's seems I have a buffer overflow problem or something similar. I find that these types of bug are the most difficult to diagnose. My program always crashes because of the same corrupted memory location. Is there some debugging tool which could detect when a particular...

video dsp plugin for Media Player 12

Hello, I am trying to build a video dsp plugin for Media Player 12 x32 running on Windows 7 x64. I installed Visual Studio 2008 and the Windows SDK 7 on the target machine and used Media Player SDK wizzard to create the example video dsp plugin project. Built the project successfully and registered the resulting dlls (wmpplugin1.dll and...

ASP.Net Web Site Project vs. Web Application Project

I'm trying to convince my co-workers to switch from a web site project to a web application project, because I want the use of the project file. However I can't diffuse this argument against: The web site project allows each page to be compiled into a single dll. Their argument is this enables easy fixing of errors found after publis...

How to see variable in calling function in visual studio?

Hi all, Does anyone know how to watch a variable in calling function. For example: C#: void fn a() { int myVar=9; b(); } b() { Throw new Exception(); } How can I watch myVar when I get the exception in function b?? I have a really big recursive function with in a loop and get an exception in one iteration. I don't know which iterati...

Visual Studio: Debugging non localhost domain, locally

I have an entry in my hosts file that points somesite.com to 127.0.0.1 (localhost) so that I can test certain aspects of my web app (i goto http://somesite.com in a browser to test). Can someone suggest a way to debug a setup like this (in visual studio) that does not include using http://localhost? I understand that this can most likel...

Can I use the newer versions of Visual Studio to do "old" things?

I have several ATL/COM-based DLLs that I've been using Visual C++ 6.0 on. I require a couple of "old" things out of the generated DLLs: (1) They must be compatible with projects developed in Visual Basic 6.0 (the old VB6, emphatically not VB.Net). (2) They must be compatible with old operating systems - minimum Windows 98 SE. To be c...

How to Integrate ILMerge into Visual Studio Build Process to Merge Assemblies?

I want to merge one .NET DLL assembly and one C# Class Library project referenced by a VB.NET Console Application project into one command-line console executable. I can do this with ILMerge from the command-line, but I want to integrate this merging of reference assemblies and projects into the Visual Studio project. From my reading, ...

IE7 Debugging with Visual Studio Express

How do I debug IE7 javascript with Visual Studio Express and which version should I use? Update and Answer. You have to enable debugging in IE, create an empty web site in Visual Studio, press "Start" and navigate the browser to whatever you want to debug. ...

Why does adding a reference to project targeting .NET Framework 4.0 fail?

We have two projects that are both class libraries. Project 1 is a VS 2008 project and targets the .NET Framework 3.5. Project 2 is a VS 2010 (release candidate) project that targets the .NET Framework 4.0. When I try to add a reference to Project 2 in Project 1, it fails with a less than informative error message. I know that if I chang...