visual-studio-2008

No dll compiled in visual studio 2008 express when built

Hi, I'm a .NET newb, so forgive me if this is a stupid question. I've inherited a website which I've amended and now need to rebuild. I've opened the .sln file in VS2008, made my changes to the files and clicked 'build > rebuild website'. This seems to run okay - it outputs a load of comments in a panel at the bottom as it's building...

Convert from C++ style printing to my_printf()

C++ purists may want to look away now. You will hate this. I have been given an open source windows console app that I am merging with a pre-existing, very old, very large windows app of my own. My old program started life as pure C though recently has been tweaked so that it can compile as C++. My program makes extensive use of a my_pr...

Debugging with AV Causes crash when LuaPriv checks enabled

This is the line where it crashes: if(!(PixelFormat = ChoosePixelFormat(hDC, &pfd))){ This is what errors it gives me on the SUA tool: 0x332D Error The application was denied access to an object. 0x331B Error Access was restricted to trusted users only. How do i fix these errors and prevent the usage of Application Verifier with...

Is there a one liner to verify XML string structure?

I have a string: Dim strXMLTags As String = "<tags><test>1</test></tags>" And I want to verify that all opening tags have a closing tag in the proper place. So if I put the previous string through, it'd work. However, if I put: Dim strXMLTags As String = "<tags><test>1</test>" Then I want it to give me an error. Is there an XML ...

cannot add Outlook form region in Visual Studio 2008

I created a new Outlook Addin solution in Visual Studio 2008, and tried adding an "Outlook Form Region" item, but I get this error: "Could not load file or assembly 'Microsoft.Office.Tools.Outlook.v9.0, Version=9.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specifie...

Confused about use of 'HANDLE' in piece of Visual C++ code for Real-Time IIS 7.0 Event Logging

I'm relatively new to Visual C++. I'm trying to build a module to consume log events generated by the IIS 7.0 server in order to be able to analyze these logs in real-time. I found a Microsoft article which provides code that accomplishes the real-time capture: http://learn.iis.net/page.aspx/581/advanced-logging-for-iis-70---real-ti...

HTML and CSS version used in VS 2008

I am currently using VS 2008 and Asp.net 3.5 with the basic tool kit provided. What i want to know is the version of CSS and HTML that it uses. I was going through HTML 5 is it possible to use it and the latest CSS version ? Thanks ...

Renaming a Visual Studio .NET 2008 C++ project

I didn't think too hard when initially naming my Visual Studio C++ project and now want to rename it. I'd love to avoid doing a replace all on the name of the project (and renaming all files in the project directory), because this would be error prone and tedious. Is there a way to rename the project within Visual Studio? Thanks, Eri...

WCF Json service AuthenticationScheme problem

I'm trying to host a wcf json service on my localhost on my dev machine, but also want it available to other users on the network for testing purposes. My service works fine when running in cassini, however when running from a virtual folder, I'm getting the error IS specified authentication schemes 'IntegratedWindowsAuthentication,...

Problem downgrading from C# 2010 to 2008

For some reason, I have to move a lot of C# code from Visual Studio 2010 to Visual Studio 2008. I edited my sln file to reflect the changes Microsoft Visual Studio Solution File, Format Version 11.00 to Microsoft Visual Studio Solution File, Format Version 10.00 It allowed the solution to be loaded into VS2008. Afterwards I edited...

ui controls for asp.net

i have been using the basic toolkit that is provided with VS 2008 I am currently looking for UI control toolkit from third party. I am basically concentrating on Gridview, treeview, textboxes, hoover, buttons and graphs(piecharts) Order of preference: 1.) Totally free( can be used commercially no royalties) 2.) semi free ( can be us...

Subsonic ActiveRecord and SQL Server Express

I am trying out Subsonic ActiveRecord to determine if I want to use it on any upcoming projects, and I gotta say I really like it so far. It worked great with MS SQL Server 2005 and 2008, but I am having problems with the T4 Templates and SQL Server Express. From what I can tell, Subsonic is having a problem getting the schema info from ...

C# Difference between Foreach and for (not performance)

Hi, Some time ago I read that foreach works with "copies" of objects and thus it can be used for information retrieval instead of its updating. I do not get it as it is entirely possible to loop through list of classes and change its field. Thanks! ...

ContextMenuStrip renders at top left Windows

Hi, When i render contextmenustrip, it gets render at the top left of my PC Screen. I have a listview, which contains 5-6 items and on right click of each item, the context Menu strip gets displayed.Also i need to change the color of context menu strip including backgrounds and text as well. Thanks in advance! ...

Define "dynamic" enum

I'm working on this project and I have a large number of "services" to execute. I need to have this service codes so I can verifiy and make decisions according to selected services by it's code. I'm tring to define this enum and get its values from the web.config so I can change them easily. public enum ServiceCodes { Transfer= Co...

Extracting all class names from a solution in vs 2008

I am trying to extract all class names from my solution in C3 vs 2008. I am able to do this for a single project using reflection passing the assembly name. But the problem is how can i get this working for my entire solution?. Is there any way i can extract all assembly names from my solution? My solution basically has 10 projects and ...

MSVC9.0 bug or misunderstanding of virtual inheritance and friends?

consider the following code: class A { friend class B; friend class C; }; class B: virtual private A { }; class C: private B { }; int main() { C x; //OK default constructor generated by compiler C y = x; //compiler error: copy-constructor unavailable in C y = x; //compiler error: assignment operator unavailable in...

code coverage in visual studio 2008 pro

I am writing some unit tests using visual studio 2008 professional edition. I learned that visual studio has a built in code coverage utility however it seems that this feature is not available with my version of visual studio. Do someone know which versions of visual studio 2008 include the code coverage utility ? Tzachi ...

How can I configure Visual Studio 2008 Express Edition to c89/c90/c99?

I'm getting lots of compiler errors due to standards' issues. ...

Namespace error when using T4MVC

Just heard about T4MVC but i can't get it to work in my sample project (ASP.NET MVC 2, Visual Studio 2008). I get the following erros when trying to build the project: Error 1 The type or namespace name 'Account' does not exist in the namespace 'Northwind.Web.MVC' (are you missing an assembly reference?) C:\Users\Bruno\Documents\My ...