visual-studio-2008

How can I get a visual representation of my solution's dependency chain and member hooks?

I've been tasked with researching some .NET code that isn't mine. It's a little hard to figure out because there are so many hooks in different areas. In other words, everything seems to be very highly coupled. I'd like to be able to do the following: Very easily see a hierarchical (tree) view of projects and their direct dependencies...

Using VS 2008 Load Test with WebSphere MQ

I need to load test a server that supports WebSphere MQ, web service and MSMQ interfaces. Currently I use proprietary load drivers for testing via WebSphere MQ and the web service, and we don't currently test MSMQ (it's new, and just being developed). I would like to "standardize" on a single load test tool; does anyone know if you can t...

How to extend existing WiX projects in VS2008

Hi, I have to extend a existing VS2008 project which includes many separate WiX 3.0 projects. My concern is: I would like to extend some of the VS-projects and make minor changes in the classes by overwriting them. Can I also extend the existing WiX project by inheritance? I ask this because the existing WiX project is very large and c...

Unit Testing - Lame Error Message - "Failed to queue test run" "Invalid syntax"

I am trying to run my units test and it is failing. Not much info is supplied by Visual Studio. When I click on the "Test Run Error" link I get this screen. This is spectacularly unhelpful. Does anyone know where I can get a call stack on what is really happening? The solution builds just fine so I don't see how it can be "Invalid...

how to use .vsprops file to override VC++ Directories in MS Visual Studio

I'd like to override the directories used by Visual Studio (devenv.exe) for the compiler and library paths. I know how to do this interactively via Tools->Options->VC++ Directories, but I'd like to automate this. http://msdn.microsoft.com/en-us/library/t9az1d21(VS.80).aspx has a tantalizing note on this: "If you want to set up director...

TFS 2008 MSBuild Dynamic Random Messages?

I have added custom build messages so the Visual Studio GUI shows status messages during the course of a msbuild. I would like to now add something dynamic so I can inject random cute thoughts for the build-watcher. How could this be done? Thanks. ...

c++ elevating privileges on an .exe using OpenProcess()

Hi, I have been reading some of the books by Hoglund and I thought I would have a 'go' at his 'simple debugger'... Anyway, I have been trying to use the line hProcess = OpenProcess(PROCESS_ALL_ACCESS | PROCESS_VM_OPERATION, 0, aPID); Every time I use it on a running process hProcess is being returned as NULL, why is this - the targe...

Changing MsBuild error message language

Hello, I'm on a Japanese system and when I run MsBuild.exe to build a Visual Studio project, I get a mix of Japanese and English in the output: C:\path\to\solution>C:\WINDOWS\Microsoft.NET\Framework\v3.5\msbuild.exe solution.sln Microsoft (R) Build Engine Version 3.5.30729.1 [Microsoft .NET Framework, Version 2.0.50727.3082] Copyright ...

How to compile MFC code in visual stdio 2008 with code analyser

I need to run code analyser for my MFC code in VS 2008. I enabled code analysis in following path: project properties -> configuration properties -> Advanced. When I tried to compile, I got the following error unable to find DLL: 'mspft80.dll' How can I resolve this? ...

Restoring web reference in Visual Studio 2008

I had a web reference set in my VS2008 ASP.NET project, but due to some source control weirdness it is no longer listed in the project. I have the set of files in the Web References folder under my project. There's a .wsdl, .disco and several .datasource files. Is there any way to re-add this web reference through the existing files ra...

pClass1 = (Class1*)pBase->next without (Class1*) cast

Hi, i have class Base { Base* next; } class Class1 : Base { } Base* pBase = new Base(); Class1* pTest = new Class1(); pBase->next = pTest; Class1* pClass1; pClass1 = (Class1*)pBase->next; I want to be able to write pClass1 = pBase->next; and get no compilation error C2440 (cannot convert). Or in other words I want pClass1 poi...

Unable to automatically debug "xxxx". Attaching to the server process failed. Mixed mode debugging is not supported on Windows 64-bit platforms.

We are getting the above error when we try and run our tests in debug mode. We have a .net solution written in C#, which we have developed using Visual Studio 2008 on Windows XP. We have now got new machines :). Windows 7 64 bit. The solution has several wcf host and web services host, it also runs some windows workflows. It appears ...

Converting method signatures

Hi. typedef void (__thiscall* LPVOIDPROC) (void); class ClassA { LPVOIDPROC m_pProc; void SetProc(LPVOIDPROC pProc) { m_pProc = pProc; } void OnSomeEvent() { m_pProc(); } } class ClassB { ClassA* pCA; void Proc() { /* ... */ } void Init() { // Assume pCA != NULL pCA->Set((LPVOIDPROC)&ClassB::Proc); // error ...

How to run webkit on Windows?

Is it possible to integrate it with VS.NET? ...

Precompilation of ASP.NET Webapplication

I want to precompile (for deplayment) a ASP.NET webapplication with Visual Studio 2008. The problem now is, that the Publish dialog don't provide me the necessary options. I want to do this as it described in http://dotnetperls.com/precompiled-aspnet, but my Publish dialog differs very much !?!?! My publish dialog has the following appe...

C++: How to add a library in Netbeans (DarkGDK + DirectX SDK)

Hi, I'm trying to learn how to make games with DarkGDK. But I have to write in Visual Studio. I don't like Visual Studio. Its suggestions (Ctrl-Space for Completion) are bad (is my opinion) and the compiler is broken (See my previous questions). So I want to migrate to Netbeans, whit MSys and MinGW. But I'm not able to use the DarkGDK...

How to select the version of the VC 2008 DLLs the application should be linked to?

I'm using Visual Studio 2008 SP1 for C++. When compiling, Visual Studio needs to choose against which version of the CRT and MFC DLLs the application should be linked, version 9.0.21022.8 (= RTM), 9.0.30729.17 (= SP1) or 9.0.30729.4148 (= SP1 with security update). I'd like to know how you can choose which of both versions will be linked...

Visual Studio 2008 give error of component not found.

I'm been using VS 2008 "forever". Rebooted yesterday and now I get an error that says a component can not be found. This is on the devenv.exe executable and is the first thing that is displayed. I've reinstalled, I've uninstalled and installed VS2008 twice and still get the same error. Searching on the net shows people having a simila...

How to hide menu? lpszMenuName

I managed to make the menu with this piece of code and using Visual Studio 2008: WNDCLASS wc; ... wc.lpszMenuName = MAKEINTRESOURCE(IDR_MENU1); ... if(!RegisterClass(&wc)) ... But how i can hide the menu by just pressing a button of my choice? There is ShowWindow() function, but it doesnt work on menus... so what function i use to...

Does Visual Studio 2010 RC play nice with Visual Studio 2008?

Does Visual Studio 2010 RC play nicely with Visual Studio 2008? I am wondering if I need to setup a Virtual Machine to play with VS 2010 or if I can just install it on my Dev machine. If it messes up VS 2010 then that is sad but ok. If it messed up VS 2008 then I would be in trouble. Has anyone tried this out? Does it work well? Poo...