visual-studio-2008

Backtracking Problem

Let's say I have the following Prolog knowledge base: likes( john, mary ). likes( john, emma ). likes( john, ashley ). If I compose the following C code: #include... term_t tv; term_t tu; term_t goal_term; functor_t goal_functor; int main( int argc, char** argv ) { argv[ 0 ] = "libpl.dll"; PL_initialise( 1, argv ); PlCa...

Why does MSBuild fail from the command line where VS2008 succeeds?

I have an ASP.NET solution that builds just fine from within VS2008. However , it fails when i do this : MSBUILD.exe c:\path-to-sln It fails with a CS0006 error ("Metadata file 'dll_name' could not be found"). It also fails when I try with a .csproj of a project within the solution. What is VS2008 doing that MSBuild is missing ? It...

VS 2008 does not understand .resource files

I'm trying to add globalization support to my C# application. According to MSDN, there should be one embedded resource file for neutral culture and satellite DLLs with resource files for other cultures. I've created 2 satellite DLLs without any problems and got my app to automatically load right one using ResourceManager. But I can't em...

Search and replace in *.aspx,*.ascx files when publishing a Webapplication

Hi all I'm attempting to replace a pattern in all my .aspx and .ascx file when I Publish my Webapplication. When I am running the application locally, I don't care about the replace. But as soon as I need to Publish the solution I need a sequence of characters, let's say "ABC", replaced with "DEF" in all my .aspx and .ascx files. How ...

Support for VB.NET's Imported Namespaces feature in C#

I am use to VB.NET. The game source code I am learning from is written in C#. I find it annoying that I have to add using System.Diagnostics to the source code in order to type Debug.WriteLine.... I checked under project properties, but I cannot find the References tab that allows me to add namespaces to Imported Namespaces. Where do I f...

VS compiling Error 1256 ( integer overflow in internal computation ... ) during inheritance

Hi there, my problem occurs during compiling Irrlicht3D Engine in VS 2008. 1>Error 1256: integer overflow in internal computation due to size or complexity of "irr::IReferenceCounted" I'm currently merging a very old Softwaredriver I have written with the rest of the engine which is much newer. The main Problme is that I have tried to ...

Dynamic creation of VS Project

I have a project where I create WiX (Windows Installer for XML) files, when they are not already present. It is working perfectly. Now I want to expand it to add more functionality. I was wondering if there is a way to create a Visual Studio project programmatically? This project is run as part of our nightly build process, and when a ...

Visual studio Solution for two versions of a web application

The issue at hand is this. We have a web application with two different versions, a full application, and a light version of it. In it's most part the light version is a subset of the full version, which means that it uses the same web pages and references the same binaries with the full version. However, some of the pages of the full ...

VS 2008 - Procedure to ship C#/WPF solution to ensure compatibility

I am attempting to collaborate on a C#/WPF project with another developer remotely via e-mail; and although the code compiles perfectly when it leaves, my collaborator has not been able to compile the code on his side. We are both using VS 2008 Version 9. This is the first time trying to work with someone else on an application and I w...

Can visual studio report which file its compiling now?

Sometimes I have errors which are caused by a particular cascading sequence of #include's... it would be much easier to debug if visual studio could give a kind of running commentary on which file it was currently processing. Can it be persuaded to do so? ...

Insert wait in VS2008 web test.

Hi everyone, How can I insert time wait value in web test in Visual Studio 2008 test edition? I have recorded a web test that I want to use in Load test. Now I need to put some time delay between pages in web test. Thanks a lot. ...

What's the meaning of the angle brackets on LINQ methods in Intellisense? (Contains<>, Count<>, Distinct<>, etc.)

They usually involve generics. But some methods with generics don't have them, and not all extension methods have them. They've just "been there" since day one, we've all seen them; but I realized I still don't know what they mean, and I can't find the answer anywhere. Now it's really bugging me. Google just turns up results that a...

Type 'xxx' is not defined, BC30002 error.

Hello, It is possible to create an instance of a C# class within a aspx.vb codebehind file? When I try this within the Page_Load event: Dim oFlow As New Flow(HttpContext.Current.Request) I get the Type 'Flow' is not defined. The Flow class itself is located here: App_Code/CSCode/Cust/Frm/Flow.cs There's no namespace associated wi...

Changing property stubs for Interface refactoring

Is it possible to change the stub used to implement interfaces in Visual Studio 2008? For instance, when I choose either Implement interface 'IMyInterface' or Explicitly implement interface 'IMyInterface' Instead of a number of properties that look like this: public string Comment { get { throw n...

What is the the best way to install .NET reference assembly folders in 64 bit

Installing reference assembly folders in 32 bit is straightforward: 1 Copy your files in ProgramFiles\MyApp 2 Add a registry key HKLM\Software\Microsoft.NETFramework\AssemblyFolders*MyApp* pointing to ProgramFiles\ MyApp But things fall apart in 64 bit. First, the msi installs into program files (x86) instead of program files. Secon...

A Byte Array with all 0x00 is Equaled to 0x08?

I think I encountered something extraordinary strange in VS 2008. All the array values are 0x00, but why it is displayed 0x00000008 at the start of the variable? ...

I Clean Solution'd my Winform App and now it's broken...

I have a Winform App that uses a 3rd Party Library of Controls, DevExpress. I also created a bunch of Controls myself, extending those controls. Everything has been working fine when all of a sudden I opened VS today and on the Design Page all my extended controls were missing. I then tried rebuilding to no avail. Then I tried Cleani...

Simple ASP.NET Database Query

I have loaded my database with one table under "Data Connections" in the "Server Explorer" pane. What is the standard / best-practices way to handle a simple query in a VB ASPX page? My left <div> would be a set of form elements to filter rows, and when the button is clicked, the main <div> would show the columns I want for the rows re...

Does an off-the-shelf server with Windows Server 2008 on it, include the VC90 CRT ?

Same question for Windows Server 2003. Do I need to direct people to install the VC 2008 sp1 runtime? Is the answer dependent upon whether the Server runs an x64 or x86 build? Does the VC Runtime get pushed out with Microsoft Update, or Windows Update? ...

Visual studio erroneous errors when building a website?

Visual Studio 2008 shows a lot of erroneous errors when building a website (not a web project) in the errors list. These errors are usually corrected (removed) when I rebuild the site a couple times but they cost me wasted time. Is there anyway to hide the erroneous errors? Update: I've decided to look into this to see if I could repro...