visual-studio-2008

Is it possible to File.Copy a file into a system folder? like System32?

I need to create files inside of a specific folder ("C:\Windows\System32\oobe\info\backgrounds") and possibly create said folder. When I try this with the File.Copy command windows won't grant the program permission, just throws an error. I am writing this in C# with VS2008. EDIT: Windows 7, forgot about that part. ...

How do you determine the cause of crashes when it runs fine on your machines?

I wrote an application for Windows 7 using C# and VS2008 and it runs perfectly on the machine I developed it on and my laptop (doesn't have VS*). How can one determine the cause of these crashes? Is there a way to check for dependencies of a program? The error it gives has zero information in it and I've tried installing the latest .NET ...

Reason for asp.net website error in one server and not in other server

I have a asp.net website which is deployed in a server A and same code has been deployed in server B. The website in server A has problems while in website in Server B doesn't have any problems. The problem is the sequence of order that the page is navigating is wrong while clicking on next button. Its obvious that there is no problem...

Migrant from VS 2003 .Net1.1 to VS 2008 .Net 2.0

Hi I converted my app that was implemented in VS 2003 to .net 2.0 VS 2008 afterward my app became slow about 4 times than previous version! is it normal or not ? Best regards ...

How can I create a std::vector with 64 bit indexes?

I want to create a big std::vector so operator[] should receive long long rather than unsigned int, I tried writing my own allocator: template <typename T> struct allocator64 : std::allocator<T> { typedef long long difference_type; typedef unsigned long long size_type; }; But when I try the following: long long n = 5; std::ve...

how do I create an uninstall file for my windows application

I would like to create an uninstall file for my windows application but I am having a difficult time finding information on them. Could sombody breifly explain the workings of a uninstall file and/or provide me with a link to a walkthrough. vs2008,c#, .net ...

What is a good way to add MFC gui to a Win32 C++ command line application?

We have a command line application that could benefit from a GUI. We want to add some plotting functionality and have identified a plotting library that uses MFC. Initially we developed a separate app, but we'd rather have the GUI in the same process space. I was thinking of possibly a GUI in an MFC DLL that could be hosted in the p...

How to avoid "error LNK2005:" (already defined stdlib functions) when compiling libpng with Microsoft Visual Studio '08?

(Why I am trying to do this: I have had no luck in using the pre-built binaries for libpng on Windows (despite many hours of trial and error), and therefore am now trying to compile it myself. I found this helpful blog post concerning this, complete with a Microsoft Visual Studio 2008 project file, but unfortunately have still not been a...

C# back event in button

I'm trying to code a back event in C# into a button click event, but I cant find the right steps. I am using Visual Studio 2008. ...

***.tmp is not a valid win32 resource file. How to resolve this weird bug on Visual Studio?

I use Visual Studio 2008 SP1. I'm experiencing a boring bug, that sometimes break my compilation processes with something like: Error 4 'C:\dev(...)\obj\Debug\CSC4B.tmp' is not a valid Win32 resource file (...) This file doesn't even is shown in the \Debug folder. The only way I can solve this (temporarily) is to restart the machine...

Is it possible to clear my Visual Studio cache directly from visual studio?

I know how to clear my cache by deleting some file in a folder on my Windows machine. I want to know if there is an easier way, like by clearing it directly from visual studio? ...

Cannot compile CUDA app in VS 2008

I't trying to work with CUDA with Visual Studio 2008 Professional. I'm using Windows 7 64 bit and I've done following steps: - Downloaded and installed CUDA Driver, Toolkit ans SDK. I can run any example from SDK. - Downloaded and installed CUDA VS Wizard When I'm trying to create a CUDA Win App I've got the following compile error: Er...

Which IDE should I use for this art project?

I have an art project that will require processing a live video feed to use as the basis of a particle system, which will be rendered using OpenGL and projected on a stage. I have a CUDA enabled graphics card, and I was thinking it would be nice to be able to use that for the image and particle system processing. This project only needs...

Where are Crystal Reports margins set in VS 2008 edition?

Hello, I'm using the Crystal Reports built into VS.net 2008. A template for a report on our staging server prints (to PDF) as expected. When I used the same template and data on the live server the report exceeds the right margin by approximately 1cm or so. Does anyone know where the margin settings are kept per server for Crystal rep...

Why Doesn't my Application Display Unicode?

I have created an MFC application from scratch being careful from the start to use Unicode aware structures such as CStringW, LPCWSTR Etc. to store and process data. Unicode is also defined in the project. Since I only one speak one language I tried the following test to ensure that a Unicode string was processed and stored correctly...

How to start a windows service in Visual Studio 2008?

IN Visual Studio when I try to start a windows service project it tells me I cant because I have to use "NET Start" and so forth. I remember in VS 2003 that when I pressed play it started the service and stop stopped it. Is there any way that when I press play or start for that windows service project I can have this same functionality....

How to automate Visual Studio tasks following SVN update?

I have several Visual Studio web application projects that include SVN externals. When a new file is added to an external module, VisualSVN brings it down to the file system, but doesn't add it to the Visual Studio project; it has to be manually added. I might write a macro to automate this process, and I'm wondering if I can make it a...

Change Ankhsvn diff behavior

I want to have the diff results window show in the task bar, instead of being a floating visual studio dialog item. Can I do this? ...

Visual Studio 2008 class diagram creates empty properties, not autoproperties

I'm using a Class Diagram in Visual Studio 2008 to create some classes with properties. I notice that when I create a new property in the Class Diagram, it comes out in code like this: public DateTime DateBilled { get { throw new System.NotImplementedException(); } set { } } Yuck. I'd much rather it e...

move through string to next upper case character in visual studio 2008

when im working in xCode i can use the Command-LeftArrow and Command-RightArrow to move to the next word break or upper case character in the source code this is really handy when renaming variable names etc, e.g. if i have "rightAudioFile" and my cursor is at the start of the word i can press Command-Shift-RightArrow and select/highlig...