visual-studio

GSL-GNU in Visual studio

I have visual studio 2008, I want to integrate GSL library in my project, kindly give me some guidelines so that I can make it possible. I have added the GSL library but the following error come. Error 1 error LNK2028: unresolved token (0A000010) "extern "C" void __cdecl gsl_matrix_set(struct gsl_matrix *,unsigned int,unsigned int,do...

Saving content of large structure

I have a really big data structure with a lot of fields in it. I want to save its fields to later compare with later values; but I can't print the content to console, because it's too much code to write by hand. (I have roughly 1k fields.) How should I solve my problem? ...

C# Microsoft Office Developer help, tutorials, examples

As a developer I get different assignments and my current one involves interaction with Microsoft Office from C# - which I haven't been doing for a long time now. Having previously developed websites using ASP.NET, I found the site www.asp.net/learn very helpful. Is there a similar site concerning Visual Studio vs. Microsoft Office deve...

How to integrate NAnt with Visual Studio?

Hi guys, I'm just trying to get into NAnt for my build processes, and successfully have a script that sets up a build dir, and compiles a sln file into it. My question now is, on a day to day basis how would you execute the NAnt script from Visual Studio. I'm used to just hitting Ctrl + Shift + B and then just refreshing my browser (I h...

Data-Driven Tests with Data Relationships

If i have for example this two classes, where I have a One To Many Relationship and i want to perform a Visual Studio Data-Driven Unit test, how can I get the data from multiple sources using visual studio or how can i flatten the orders data in a column? What i mean is that if i can´t access multiple sources from a data-driven test, i w...

Linking MTL (Matrix Template Library) in Visual Studio

I have MTL header files; I want to use those header files in Visual Studio 2008. How can I link those header files so that I can write a matrix program using the MTL library? ...

COleSafeArray / VARIANT memory leak?

I want to export a lot of (table) data to Excel. I'm developing on Windows Xp, Vs2005. I'm filling a COleSafeArray, which was initialized like this: safeArray.Create( VT_VARIANT, 2, numElements ); // 2 dimensional, 30000 rows, 3 columns Now the filling is really fast, but in TaskManager/Process Explorer/VMMap, it looks like some of th...

Matching a specific tag with a specific attribute without being greedy in vs-2005

I have a bunch of files (in the hundreds) that have img tags like the following: <img randomAttr1="randomVal" randomAttr2="valueRand" border="0" randomAttr3="someRandValue"> I'm trying to do a search and replace operation in Visual Studio 2005 that will identify a tag as an <img>, but only match the border="0" potion of the stri...

VS 2008 Reporting Services report definition generation

I'm using VS 2008 to generate a Reporting Services report definition. The problem is that whenever I try to load a report definition from a stream I get an error. I have the following code: var loaded = XDocument.Load(filePath); LocalReport ret = new LocalReport(); using (var stream = new MemoryStream()) { var writer = new StreamWr...

Format Javascript in Visual Studio 2008?

Is there a way or a VS add-on to format Javascript in the text editor? Like properly indent each line, align the braces, ... etc? ...

Visual Studio - Addin to allow rows of files

I am a Delphi Transplant to .Net. I really like it, but I am missing one thing that I am wondering if there is an addin for. In Delphi there is an addin (called GExperts) that allows you to make your files show in rows at the top of your code window (rather than just one row that only shows as much as can fit). Is there something like...

download file from server asp.net

I want to download a file from server to a local host. i have a code from the net which should work but is not working protected void Button4_Click(object sender, EventArgs e) { //To Get the physical Path of the file(test.txt) string filepath = Server.MapPath("test.txt"); // Create New instance of FileInfo class ...

Devenv deployment parameters

I have a report project that I want to script deploying to a development server. I need to just change the TargetServerUrl in the project properties. Is there a way to do this? i.e. &devenv.exe RSReports.sln /project Reports\Reports.rptproj /deploy maybe => properties:TargetServerUrl=http://myserver/ReportServer ...

Mobile Emulator Launched for non-mobile unit tests

I have a Compact Framework Project that has two Unit Test projects with it in the solution. One is a Smart Device Unit Test Project (needs the emulator to run). The other is a normal Unit Test Project. The normal Unit Test Project runs fine on my machine and on the build machine, but on my co-worker's machine it tries to launch the em...

Visual Studio add-in hook on solution load

Hi, I'm trying to write an add-in for Visual Studio that needs to be run every time a solution is loaded. Eventually I hope to make it a solution add-in so that it only runs for solutions that need it, but I'm wondering if there's any way to have my add-in hook on the user loading a solution? Thanks. ...

Is it possible to convert a Win32 application project into a console application?

Is it possible to convert an existing visual studio project file that creates a Win32 application into a project file that creates a Win32 "Console" application? If so, how is this done? I've googled and found plenty of people doing the opposite, but none this way. ...

What's the difference between dim on the member level and static on the procedure level?

In Visual Basic 2008, there's two different ways that I know of to accomplish the same thing: The Dim on the member level: Dim counter1 as integer = 0 Dim counter2 as integer = 180 Public Sub SampleSub1() Counter1 += 1 : If (Counter1 > 14) Then Counter1 = 0 Counter2 += 1 : If (Counter2 > 240) Then Counter2 = 0 End Sub Then ther...

Preventing referenced assembly PDB and XML files copied to output

I have a Visual Studio 2008 C#/.NET 3.5 project with a post build task to ZIP the contents. However I'm finding that I'm also getting the referenced assemblies' .pdb (debug) and .xml (documentation) files in my output directory (and ZIP). For example, if MyProject.csproj references YourAssembly.dll and there are YourAssembly.xml and Yo...

Can array bounds checking be disabled in Visual Basic 2008

I know that this was an advanced compiler option in previous versions of Visual Studio, is there a way to disable array bounds checking in Visual Studio 2008? There's no option for it that I can see. ...

Two solutions sharing one project in Visual Studio

Is this doable? if yes? what are some of the things I should be concerned with? ...