visual-studio-2008

Can a C++ dll compiled using Visual Studio 2008 be used with Visual Studio 2005?

I'm going to be working with a C++ library written in plain C++ (not .NET and without MFC). The library is available compiled using both Visual Studio 2005 / Intel Fortran 9.1 and VS 2008 / Intel Fortran 10.1. Obviously I'm going to grab the binaries for VS 2008 since that's the environment on my computer but I'm curious if there are r...

Installing Subsonic - adding Text Templates does nothing...

I'm trying to start using Subsonic (v3). The brief installation instructions indicate that I must: add a reference to the DLL = Done edit Setting.ttinclude to use right connection string = Done; added appsettings to web.config add templates to project = Done, but nothing is generated; no errors and no code. The demo indicates that wh...

LINQ to SQL debug variables

I'm building up a query using LINQ to SQL and C# and when I inspect the final T-SQL that is built the where clause looks like this: WHERE ([t0].[T_SUBJECT] LIKE @p0) AND ([t0].[T_SUBJECT] LIKE @p1) The structure of the T-SQL looks correct and I can test it using SQL Server Management Studio (SSMS) but in the code it's not working. I'd...

how to bind WCF service to IP address

Hello everyone, I am developing a WCF service hosted by IIS, using VSTS2008 + C# + .Net 3.5. I find when reference the service from a client by using Add Service Reference..., client has to be able to resolve the machine name to IP address, because WSDL reference some schema file by machine name. Here is an example of a part of WSDL fil...

How to use a ruby compiler inside VS08 (for LESS CSS)?

I've found http://lesscss.org/ so interesting! It is a good way to improve reuse of elements in css, but I don't know how to integrate it with Visual Studio 2008. (it would fit nicely with asp.net MVC, for sure) Do you have any idea for what I need to do in order to recognize and compile .less files inside VS? ...

Post build on database project

In Visual Studio 2008, I have this database project to manage my SQL Server 2008 database. This has a prebuild and postbuild SQL Script that contains an example like this: :r .\myfile.sql What does this mean? ...

codebehind cannot reference the page controls

Hi, I have controls in ascx file but i can't see them in intellisense in .cs file.It was working nice before. I can see the control names in designer.cs file. I have deleted the Asp.net temp files in AppData folder but still not working.The other user control files in the app can reference coerrectly to it's page controls. What is the ...

C++ Map cant insert with pair

Why I cant insert like here? #include <map> struct something { } some_object; typedef std::map<std::string, something*> list; typedef std::pair<std::string, something*> pair; int main() { list l; pair p("abc", &some_object); // working fine!!! l.insert(p); // 17 errors return 0; } visual studio give me many errors...

Namespaces and folder relation

Ok, I guess do namespaces have to be the same as the nested folders that their in? I keep getting errors saying that the namespace should be xxx.yyy.zzz. Example: Folder1 Folder2 MyControl.cs I have a namespace in it defined as: namespace CustomControls { ... } so the compiler is complaning that it must be namespace...

adjust Gridview Width

I have a Gridview that uses a collapsible panel to show a large amount of text. When the button is clicked to display the text my edit and delete button align on top of eachother as opposed to being side to side so I need to adjust the width of the Gridview in javascript. I already have the label calling a javascript function onclick but...

Disable XAML Preview

In Visual Studio 2008 when I open a XAML file from the project it displays the horizontal split with the preview on the top, and the XAML on the bottom. Most of the time our XAML won't render in the preview, so I just have to wait for it to try to render, and then close the preview. Is there a way to have it default to not showing th...

Why does Visual Studio not reflect the correct version of the application?

In Visual Basic 2008 Express Edition, in the My Project tab, the version is shown as in this picture: But when I run this code: MsgBox(My.Application.Info.Version.ToString) It just shows 1.0.0.0 ...

How do you debug ASP.NET startup issues using the Development Server

I have created a new ASP.NET MVC project using the MVC Project Template. According to the book I am reading the ASP.NET MVC book I am reading (Pro ASP.NET MVC framework by APRESS) the application is supposed to just run out of the box using the Visual Studio Development Server. It DOES compile and run but IE returns a page load error.....

User Controls Not seeing the Day of Light - Doesn't recognize code-behind methods

This is driving me absolutely nuts. I created a new WAP project in VS 2008. Copied over the files in my Web Site Project. Added any required references. Tried to convert the Web Project to a Web Application using the "Convert to web application". None of my user controls are able to see methods in their code behind. They don't eve...

visual studio 2008 collapse html in IDE like regions

Is there anyway to collapse html in the IDE? For example if I have a table, I would like to collapse the table and anything inside of this. ...

Add connection dialog closing when fetching list of SQL servers.

I have jus installed VS 2008 on a new machine and when I open up the Add connection dialog box to conect to the SQLExpress server on my machine the diolog box just closes. It's fine until you try and populate the list of running servers then just closes, with no error message :( Has anyone else come across this problem before? ...

Cannot Convert Master Page to WAP

I have a master page which when I try the "Convert to Web Application" command on it in VS 2008, it fails because of some user controls that it says it doesn't recognize. But I need this Master Page to work and to be converted because practically every other user control uses this master page and references some properties and other con...

How to create setup project for Visual Studio Integration Package on VS2008 SP1?

I just finished for creating Visual Studio Integration Package. But I don't know how to create setup project for this. I only test on Visual Studio 2008 SP1 under Experimental hive. Everything works fine. What's requirements for setup project of integration package? Provide Key like this Update I just found answer about how to inst...

Creating an empty solution in an existing folder using VS 2008

Hi, this is my first question at stackoverflow so please be gentle. I have an existing folder called 'src' where I want to put my VS 2008 projects (BusinessLayer, BusinessLayer.Tests, etc...). Initially, I just want to put an empty solution file directly inside the 'src' folder. But creating an empty solution using VS 2008 always result...

FireFox Com Function

For IE microsoft provides COM to access it programatically. Is there any function to access Firefox from our Program ...