visual-studio-2008

What's the limit to project size Visual Studio IDE can handle?

Visual Studio stores "projects" in XML (.vcproj files). In my experience as more and more files are added to the project and as more and more projects are added to a solution opening a solution in IDE takes longer and longer. Is there a limit to the number of files or to project tree complexity or to some other characteristic of Visual...

GetPrivateProfileString() returns empty string, despite having a default

Private Declare Function GetPrivateProfileString Lib "kernel32" Alias _ "GetPrivateProfileStringA" (ByVal lpApplicationName As String, _ ByVal lpKeyName As String, _ ByVal lpDefault As String, _ ByVal lpReturnedString As String, _ ByVal nSize As Integer, ByVal lpFileName As String) ...

Put a Mark in aspCode

Hi every one, This is a practical question, i wonder if its possible to put a mark in code to quickly refind the place. So i'm working in the middle zone of a big ASP page (so debug dot isnt possible) and i have to get any information at the top of the page.. It would be cool to put a mark to come back quicly at the first place.. Than...

WPF fake/ghost design time error

I have a strange behavior in VS2008 a few times: After some changes in a xaml file, removing a control with a compile time error, VS2008 keeps saying the error is still there, even when the control itself is not there anymore. I could only fix it by creating a new xaml file, copying the content and deleting the original file. I cleaned t...

Conversion VB -> C #. Regular expression to modify ("abc") in ["abc"]

Hi We are currently converting our old base VB.Net to C #. Converting the bulk of the code is not a problem .. there are good converters around. The problem we are facing is that none of the tested converters can convert () in [] in arrays and collections. Example: Session ("abcd") to Session ["abcd"];. Converters think Session is a me...

How to reorder Folders in Visual Studio 2008 Web Application Project ?

If I create new folder in VS project ,Automatically VS reorder all project folders alphabetically I want to order them as I want .. Is there any way to do that ? ...

Visual Studio 2008 installer omits SDK 6.0A?

As mentioned in this thread, the Visual Studio 2008 installer sometimes silently fails to create the Include and Lib directories that are supposed to be created in C:\Program Files\Microsoft SDKs\Windows\v6.0A\. Does anybody know of a hotfix for the installer, or a reliable way to get the installation to succeed? I am installing on a W...

Visual Studio 2008 - Winforms Toolbox items gone

For whatever reasons, suddenly, all the usual tabs in the Toolbox of my Visual Studio 2008 (SP1, Prof.) are gone :-( I only have stuff like WPF Interoperability, Visual Basic PowerPacks and so forth left. Where did all the usual tabs go?? Can't even add a button and a label anymore! Tried to repair VS2008, run devenv.exe with /setup, ...

Need to read the sector 0 of a USB stick and make it removable

Hi I need to read the sector 0 of a USB stick and make it removable. How can I do that? I am using C#, VS2008 ...

Same project, different machines, one machine has cross threading issue

Hi, I have two machines, one is an old toshiba laptop that I use at home for development, the other is a 1 year old dell at work. Both are running the same version of visual studio 2008. I have been, for the last several months, building a project for a client. It runs fine on my old laptop, but if I run it in the same environment at...

How to apply compiler rules when resource.h or icon.ico should be included in the exe?

I am using #define and #ifndef to strip down the exe size, i noticed the resource.h and icon.ico files eat a lot of space, so i would like to not include those in my exe at all. How do i add rule for this that obeys my #define commands ? I could edit the resource.h, but every time i change it, it would get overwritten by Visual Studio. ...

What is the short cut for opening method definitions in visual studio 2008

I would like to open a window that lists all the method definitions so that I can navigate to the one I am interested in. Eclipse does this very elegantly ; I think it is CTRl + O there. ...

I want both English & Marathi Language on one screen. How is it possible?

Can anybody help me out in this situation. I want to use one entry in Marathi language and one entry in English Language through textbox in ASP. Please help me out. ...

How to enable icons for fields/properties/classes etc in VS2008 C# text editor ?

Hi All, What I want is to see icons in front of my fields/properties/methods/classes etc when I type code in my c# text editor in VS 2008. Same icons which Intellisense uses, I know it's possible coz I saw this in a vedio, but I don't know how to enable it. It's a cool feature. If anyone of you know this , please tell me. ...

Unable to upgrade CrystalReports reports to VS 2008

Hello, I am working on a windows application that was developed in VS 2003 and which uses 100's of reports developed in the bundled version of Crystal Reports. I've been asked to upgrade the system to Visual Studio 2008. The application code upgrades and runs with out problem but I am unable to run ANY of the crystal reports. They ...

Visual Studio: How to open file from Windows command line to specific line in running instance of VS?

Hello - Unfortunately, it is impossible to use the Windows command line to open a file in an already-running instance of Visual Studio at a specific line number. (VS 2008) http://stackoverflow.com/questions/350323/open-a-file-in-visual-studio-at-a-specific-line-number shows a command-line parameter combination that fails, and presents...

Visual Studio: Unable to open Macro editor in VS; get "No such interface supported" error

Hello - When I attempt to open the Macro editor in Visual Studio 2008 by double-clicking a personal (empty) macro project (visible in the Macro Explorer pane), I receive the following error: "No such interface supported" From a Google search I followed a suggestion of repairing my Visual Studio 2008 installation using the original DVD...

Made this query in SQL Server Management Studio Express how to use it?

For my database I create a new query and wrote select * from dbname using SQL Server Management Studio Express 2005. Saved it by name SQLQuery1.sql on the desktop. Now I would like to call this query from C# code when an ASP.NET button is clicked and display the results in a gridview. How do I call the query? Can I tell Visual Stud...

Quantity / Performance Test

I don't know the name of it, but I want to run a test say 10,0000 to 100,000 times to test for variations in performance. For example I want to test the speed variation between json and xml. I am using visual studio. Is there any tool that will allow me to run my code this amount of times and collect the statistics? Please help me ASAP. ...

Output _CrtDumpMemoryLeaks() to a String

Hi, Is it possible to output the contents of the memory leak dump to a String (not a console)? Hopefully yes :) _CrtDumpMemoryLeaks(); // to-string? ...