visual-studio

Issue with HTML5 audio control in Visual Studio 2010 and ASP.NET MVC

I am trying to add HTML5 audio control to my page. Here's the code: <audio src="../../Content/BattleNet_MusicLoop.ogg" controls="controls" autoplay="autoplay" loop="loop"> Your browser does not support the new HTML5 audio element. </audio> When I click debug, I can see the audio player for about a second and then it turns dark gret w...

Creating a DataTable from CSV File

Hi people. I'm working on a project and I need to read a CSV file and then fill a DataSet with its data. I've been searching and I have found some interesting things in OleDB. I have a class CSVReader: class CSVReader { public DataTable GetDataTable(string filePath) { OleDbConnection conn = new System.Data.OleDb.OleDbC...

In the Visual Studio debugger, you can view special 'variables' beginning with '$'. What are they?

For instance, write a function such as: void foo() { try { throw new Exception(@"whatever"); } catch { int n=1; //put a breakpoint here } } When the debugger is on the line in the catch block, typing $exception will show the exception information. Are there any more? What are these things? Th...

Compiling x64 dll from x86 using Visual Studio 2008: unresolved external __imp_ symbols

Hello again gurus, I have compiled some external C++ code into a dll, thirdpartycode.dll, using Visual Studio 2008. The code is wrapped in extern "C". Since I am cross compiling, creating a 64 bit dll on my 32 bit machine; I am using x64 as "Active solution platform" in the "Configuration Manager". My thirdpartycode.dll compiles and li...

Setting the UpdateCheck.Never mode by default in Visual Studio 2010 DBML designer (MS SQL/ASP.NET MVC)

In my web application I do a lot of updates. And therefore the only acceptable UpdateCheck mode for all columns except for the primary key one is "NEVER". But unfortunately the DBML designer automatically sets the "ALWAYS" mode. So I have to go through dozens of columns to change it manually, and when I have to update the DBML file... ...

Remote debug manage application (c#)

Is it possible to remote debug a C# application? Which VS versions allow it? ...

(List of) Reasonable usage of F# and how OO-Programmer benefit from it

Possible Duplicate: What areas of code are you using f# for? F# is a language that will be used more and more. Microsoft has built in Visual Studio 2010 F# and the potential is huge, like I've read in several IT magazines. So let's collect useful information about the "right" application of F# and what advantages we could ge...

How I can use regex in VS macro?

I want create macro for replacing. But my problem is how to use regular expression in Visual Basic's macro for Visual Studio? document.Selection.ReplacePattern("test{[^']+}test", "testAAAAtest") Doesn't work. ...

Localization of Text File resources in .NET

Localization/Globalization is pretty easy in Visual Studio using RESX files. I just add a resource file, like MyTextSnippets.resx, add key/value pairs, and create copies for every language I'd like to support like MyTextSnippets.de.resx, MyTextSnippets.fr.resx etc. Now think of longer texts, where the String resource editor grid doesn't...

importance of IDE when developing enterprise application

what is the importance of the IDE(Integrated development environment) when we develop enterprise applications. Thank in advance! ...

how can i find repeated Customer detail in target table?

i have repeated data in Target class list new TargetClass{ TID=102, ID=2, Adress="afff", Zip="222"}, new TargetClass{ TID=103, ID=2, Adress="bfff", Zip="222"}, i need reated ID's Data from li2 how can i do that? for example ıD=2 is repeated like ID = 3i want to take 2,3 (ID) detail in li2? How can i do that with linq? ...

How can I specify the database password when running database unit tests during the build?

I'm trying to integrate database unit tests into the build process (Visual Studio 2005, TFS, VS for Database Professionals, MS SQL Server 2005). The build is running on a dedicated build server. When the tests (that work perfectly locally) start running on the server, I get a "login failed" error because the database password I save in T...

Visual Studio for SSRS 2008 - How to organize reports into subfolders in Solution Explorer?

Right now I have a project called reports with several reports. In solution explorer it looks like this: Shared Data Sources -- DEV Reports -- Report1 -- Report2 -- Report3 I want to make it look like this and have the same structure carry over to the report manager website when I click deploy. Shared Data Sources -- DEV Folder...

Unhandled exception at 0x6c70f2ca in xxx.exe 0xC0000005: Access violation reading location 0xcdcdcdf1 how to debug this?

Hello i have c application that im compiling in visual studio 2010 im getting this error in one of my functions generically how can i debug this kind of exception ? the function is from dll , other functions working but not this one . ...

visual studio 2010 intellisence tooltip delay

Intellisence displays tooltip when going through list of methods. This tooltip displays with ~500ms delay. It's very annoying when I'm need to find certain method. Is there any way to make this tooltip to display immediately? ...

Visual Studio 2010: Editor stops working

I've got this very odd bug that appears to be a quirk in Visual Studio 2010: Sometimes, when moving the cursor into double quotes of a CSS style="" attribute the cursor refuses to move. I can't type anything, and the keys that respond are the UP/DOWN cursor keys and the DEL key (but not BACKSPACE). Typing does nothing, but pushing LEFT/...

Construct Process Tree in Windows

Hi, To construct a process tree in Windows "C" given a PID, which one is a good approach to go for Win2k, XP, Windows Server 2008, Windows 7. ZwQuerySystemInformation NtQuerySystemInformation CreateToolhelp32Snapshot I remember ToolHelp had issue in leaking memory for win2k. Please correct me if I am wrong. And using ZwQuerySystemI...

Regular expression for non min files and doesnt contain word

Hey, Say you have the following in files: <script src="../../Public/Javascript/jquery-1.4.1.js" type="text/javascript"></script> <script src="../../Public/Javascript/jquery.easing-sooper.js" type="text/javascript"></script> <script src="../../Public/Javascript/jquery.easing.min.js" type="text/javascript"></script> I'm looking for ...

Displaying Greek Characters in a Label (Visual Studio C#)

Hi, I have an application that uses google translate to translate words. I need to display Greek words in a label .... is it this possible to show greek characters? ...

Visual Studio output file permissions?

I'am using Visual Studio 2010, how to set or automatically change owner of the output file from Visual Studio (such as executable file) to user other than administrator? all output files currently is owned by Administrator (due to Visual studio is launch by administrative privilege), so sometime I can't delete those files due to access ...