visual-studio-2008

Automated Visual Studio Source Changes on Build (Update DBML etc.)

Every time I rebuild by DBML, I have to adjust settings for auto generated value etc. for individual fields. Is there a built-in tool which I could use to automate my changes in the DBML when I build? I'm using Visual Studio 2008. ...

How could I open a file, read 9 seperate letters, and pass them all to another function? I struggle with arrays! (c++)

The text document is TTT.txt ...in it is X X X O - X O O - I need my program to read each and then be able to pass it to a different part of it...HELP! ...

How to make VS2010 behave like VS2008 when it injects an interface implementation stub in the code editor?

Dear ladies and sirs. I could not find a better title for my question, but you are welcome to edit it. Anyway, here is the question. When a C# class implements an IBlablabla interface we can run the "Implement interface IBlablabla" command in the editor and the studio would inject a stub implementation of that interface. Now, in VS2008...

Display time for webtest plugin in playback UI window

I have written a Visual Studio (2008) Webtest plugin, and need to display the time it takes to run in the playback ui window. I've tried: e.WebTest.BeginTransaction("B2BValidate"); // then call my plugin e.WebTest.EndTransaction("B2BValidate"); This indeed adds a "B2BValidate" transaction to the playback window, but the "Total Time...

what is a recommended way to create a dependency for a windows forms application?

I want to associate a text or xml file with my project. So when the applications gets published this text file should tag along. How do you do this in visual studio? ...

Is there any way to debug the events on ajax update panel?

i am using ajax update panel for all my webpages but not able to debug on the events on the panel. any way? with visual studio? ...

Copying a file to a specific directory during installation using Visual Studio Setup Project

I have a file - say readme.txt that I want to copy or insert to a directory say C:\Documents and Settings\fooUsername\Application Data\BarSoftware during the installation of my program using Visual Studio's setup project - I know it is something to do with File System Editor but not exactly sure as it has been some time since I ha...

Is the error C1083 cannot open compiler generated file 'somePath\someFile.cod" related to Whole Program Optimization?

Hi, When I build I find I'm getting errors about missing cod files. The compiler seems to be trying to link to a lib that had some flag set when it was built to output .cod files. I don't see why the cod files are needed though to link, shouldn't the lib be enough? Thanks ...

searching data in a database

Hi, Here is the aspx.cs file for my web application: protected void Button1_Click(object sender, EventArgs e) { SqlDataReader myDataReader = null; string connectionString = "Data Source=[my source];Initial Catalog=[catalog name];Integrated Security=True"; using (SqlConnection connection = new SqlConnection(con...

How to make a new designer for Visual Studio 2008

Is there a way to make a custom designer for Visual Studio 2008? I want make a custom data context for a cms's api and would like to make it similar to the linq to sql data classes data context designer ...

Problem while building a .dll (Visual C++)

Hi, I am trying to build a .dll in order to link it to one of my projects. But the build always fails : I got these messages in the output and I don't know what it means. It seems that something is missing, but I couldn't find what. I am trying to link a Mesher called Netgen http://www.hpfem.jku.at/netgen/ 1>adfront2.obj : warning LN...

How to block on a OpenFile in a Visual Studio addin

I have a Visual Studio 2008 addin that when I press a certain hotkey, it opens a specific file (different based on the context of the hotkey) and then searches that file for a specific string (again, context dependent.) Most of the time this works flawlessly, but sometimes if the file it's opening is too big, the search will fail. Here ...

Attaching the Script debugger to process '[XXXX] IEXPLORE.EXE' on machine 'NAME' failed..

Few days ago I started getting the following error when I try to run/debug my web application using F5 in Visual Studio 2008: Attaching the Script debugger to process '[XXXX] IEXPLORE.EXE' on machine 'NAME' failed. The process does not have sufficient privileges to be debugged. I am using Visual Studio 2008, IE8 and Visual Studio Devel...

Is there a (Linux) g++ equivalent to the /fp:precise and /fp:fast flags used in Visual Studio?

Background: Many years ago, I inherited a codebase that was using the Visual Studio (VC++) flag '/fp:fast' to produce faster code in a particular calculation-heavy library. Unfortunately, '/fp:fast' produced results that were slightly different to the same library under a different compiler (Borland C++). As we needed to produce exactly...

How to show a hierarchy of browsable properties in designer?

I am writing a windows forms UserControl and want to show a tree of properties for it in the designer. I have seen some controls that do this. For one control example, the "Appearance" property is a node that opens up to a set of properties, and also contains an "Options" node that opens to show even more properties. So far all I can get...

VS2008 'Show all files'

Hi all, I wonder if anybody has any suggesting for an ongoing vs2008 frustration of mine. The chaps at Microsoft HQ, in their wisdom, have deemed that some project types are not worthy of the ‘show all files’ option on the project explorer. Database projects are an example of this. Does anybody know of a method (registry hack, etc) of fo...

Service-based Database in Visual Studio 2008

Hello Everyone, I'm creating a Windows Application in Visual Studio 2008. I've got experience developing business applications using SQL Database and Access Databases as well. But, I've seen "Service-based Database" in Visual Studio 2008 and I've made my whole application working with that Service-based Database. and It works pretty fin...

Using constructors on the Sub New() for a CCW

I'm trying to create a COM Class Library for my VBA Project and one of the limitations I've seemed to have stumbled across is using constructors on the New() subroutine. After creating the new COM class a Public Sub New() is created with the following comments ' A creatable COM class must have a Public Sub New() ' with no parameters, ...

Advantage of using TFS over third party tools combination for entire software Lifecycle.

I need to pitch-in for using of Team Foundation Server 2008 as a complete Lifecycle management tool including Requirements, Source control, Daily builds, Test Cases integration, Bug tracking. Please help me with some of the advantages of using TFS over some of the cheaper third party tools like say, Tortoise/SVN + BugTracker + CruiseCon...

Unable to find a .dll in the modules window (VS 2008 C++)

Hi, This is kind of a stupid question I guess, but I have a library which is included and used in a project, compiled as a .dll. Everything compiles fine. When I reach a function in this library, I get System.AccessViolationException and I cannot enter into it while debugging because it says the symbols are not loaded. I have looked in...