visual-studio

Getdate() equivalent for Jet / Access database. Need last month records.

Hello, I was reading other questions posted and found many examples to retrieve last month records. I am using Visual Studio 2008 query builder to retrieve records from an Access mdb and when I enter the following query it is displaying me an error that getdate is not a valid function: where [Transaction Date] between dateadd(...

Why Do Files Need "Prepared" When Finding References in VS2005

Every time I try to find references to a method in a C# (ASP.NET) application I am developing, a screen always displays saying, "Preparing files for project 'MyProjectName.' Visual Studio then appears to "index" my entire project (with a message saying, "Preparing file 'filename' for refactoring.") This process takes very long and is b...

How to view the calls the sql server receives in live mode?

Hi, Is there any tool, or any VS debug option i'd use to watch all the calls my c# application, sends to the SQL server 2k8? I'd like to know how efficient is my c# code at doing the calls, like how many SELECTS is it sending at certain time/situation. Thanks. ...

How to set a Breakpoint When a Register Expression Is True

There is a article in MSDN which provides the procedure: http://msdn.microsoft.com/en-us/library/aa295838(VS.60).aspx#_core_setting_a_breakpoint_when_a_register_expression_is_true But it seems that i tis for visual studio 6 ... Actually I can not find the "Breakpoint" entry under "Edit" Menu... Do you guys know how to do that? I want t...

Is it possible to tell Visual Studio not to treat a source file as a "component"?

Class with System.ComponentModel.Component on their inheritance path are automatically treated as "components" within Visual Studio (2008), triggering a different icon for the source file: While the icon does not really matter, the changed double click behavior is really annoying: instead of opening the source code in the text editor,...

Rapi.dll / OpenNETCF slow issues on Visual Studio

I am referencing OpenNETCF.Desktop.Communication (Rapi.dll) in my project and have the following problem: When I for ex. "private RAPI mobjRapi = new RAPI();"... it takes about 5 minutes to execute that statement. I am basically trying to copy a file from a mobile device An additional issue which might be related is that when I click "...

Visual Studio 2008 - syntax-highlighting and intellisense not working for aspx, js, css

Hello all, I'm having problems with Visual Studio 2008, namely, syntax-highlighting and intellisense for *.aspx, *.js and *.css files (and maybe more) not working. Also, when I go to Tools -> Options... -> Text editor -> HTML -> Format, I see this error message: "An error occurred loading this property page" Everything was working fin...

QTDIR not found error building project in MSVC.

Using MSVC 2008 SP1, and qt-vs-addin-1.1.2 I have a pre-existing project in MSVC that I have QT'ified: In main I added a QApplciation, and my windows are now all QWidgets. I added custom build steps for my .qrc and .ui files and "moc" as a custom build step on any Q_OBJECT header files. This all functions - the project builds and runs,...

Hide console of Windows Application

i have a Qt application. when i run this application, there is a console opening behind the application. in development it is nice because i see debug outputs on the console. now, i want to give this executable to the customer and i dont want to any console window. how can i hide it?? (ps. i use Visual Studio 2008) ...

What does visual studio use to determine that a build is up to date?

I've written a VS addin which intercepts Visual Studio's build command and uses another build system to do a build. I've got my build showing errors in the right format so that you can click on them in VS but the one step remaining for completely seamless integration is to prevent VS's "run" or "debug" commands from whining the it doesn...

To deploy the web application made using VIsual Studio Web Develper tool 2005 express edition

I have installed Web Developer Tool with .NET fraework 2.0 . How can i deploy the pages made via this and see its working dynamically on my browser window. Also the by-default language is VB, can i change by default script page to C# scripting if i have C# module installed in my system ...

Changing font properties to alter the spacing between characters in a string?

Does anyone know how i am able (if possible) to change the character spacing of a string or textbox output? One possibility is by creating a custom font, but i am unsure if there is a property in one of the overloads that will allow me to change character spacing?! Any response would be great, thanks in advance guys! ...

Avoid copying 3rd-party DLL into debug folder.

I have a C++ application that is built in Visual Studio (2008) and links to a Boost DLL. When debugging, it seems like I need to copy the Boost DLL into the debug folder so the exe I am running in the IDE can link to it. I could use a post-build step to copy the DLL, but I was wondering if there is a setting in Visual Studio that can giv...

Is it safe to use TortoiseSVN's "Set file dates to the last commit time" feature with Visual Studio?

TortoiseSVN has a feature to set the file dates to the "last commit time." The default is false. This would be nice to use for the purpose of robocopy install scripts. If one developer does a robocopy install of a website, when I update my repository my file change dates aren't the same as his, so if I try to do an install, the dates ...

Debuging with visual studio : the program crahes when executing a heavy loop

Hello, I am currently trying to extract a file compressed with GZip. I want to do it programmaticaly on a mobile device using Windows Mobile 6. I use the Compact Framework 3.5, and C#. The compressed file size is about 4 MB. And the size of the original file (which is a text file) is about 42 MB. My algorithm crashes during the extract...

Visual Studio 2008 64-bit debugging strategy

We are moving to an all-64-bit development environment. Unfortunately VS 2008 and, more importantly, its built-in web server, run in 32-bit mode. When debugging code that references 64-bit assemblies - Oracle.DataAccess, for example - we experience the dreaded System.BadImageFormatException. Can anyone offer any strategies for debugging...

Visual Studio 2008 - re-prompt to migrate web app from .NET 2.0 to .NET 3.5

If you have already been prompted to migrate your solution from .NET 2.0 to .NET 3.5 and you responded "No" at the time, how do you get Visual Studio 2008 to re-prompt you with this question? Sorry, if there is a real simple solution to this one. ...

.Net xsd.exe tool doesn't generate all types

For some reason, MS .Net (v3.5) tool - xsd.exe doesn't generate types when they are not used inside any element. e.g. XSD File (I threw in the complex element to avoid this warning - "Warning: cannot generate classes because no top-level elements with complex type were found."): <?xml version="1.0" encoding="utf-8"?> <xs:schema target...

How can I make my Visual Studio examples run on different versions?

Hi, I want to produce some examples of use of an API that people can download and run. I want to package the examples as Visual Studio projects that people can just double-click and run the examples. I run VS 2008, what steps will I need to take to make the examples able to run in VS 2005 and possibly later versions such as 2010? Are...

Visual Studio's Access Modifier drop down option is disabled for resource file

Not sure why Access Modifier drop down is disabled for a Resource file. Here are file properties: ...