visual-studio-2008

Visual Studio only runs code analysis on common.cpp

I tried to enable Code Analysis in my Visual C++ 9 project. When I build the project Visual Studio only compiles common.cpp, emits a set of warnings and stops without proceeding to other .cpp files. How do I make Visual Studio analyze all the .cpp files? ...

Visual Studio IDE - return to previous

In VS2008, is there a way to return to the cursor’s previous position after pressing F12 to jump to a function definition? I know this is possible with some add-ons, but if there a way to get the core product to do this? ...

How can i return list looping select to monitor datagrid with linq?

How can i return list from looping select statements with linq. i need list<list<T>> but i dislike this method. how can i do that? public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { ISt...

How to build IccLib for 64 bit windows

I am trying to build IccLib for x64 bit windows but I am having problems finding any help to do so. Does anyone have experience with it? Thanks ...

How to embed language resources into the main exe file

In a form I set the "Localizable" property to true and added a new language resource by selecting a language in the "Language" property - but... Then the VS 2008 creates another dll file for the resource I checked so the "build action" property of the resource is set to "Embedded Resource" Why the VS do that? and what can be done about ...

DotNetNuke - Pretty Text with SqlDataProvider files in VS2008?

Is there some way to get code highlighting / pretty text in VS2008 for DotNetNuke's SqlDataProvider files? They're very difficult to read otherwise. For those who aren't familiar with DotNetNuke, it's mostly SQL code with some placeholders spread throughout. Thanks ...

How to detect client connection to a named pipe server using overlapped I/O?

I was studying the MSDN examples of using named pipes: Named pipe server using overlapped I/O Named pipe client The server easily detects when the client is disconnected and creates a instance of a named pipe. But I cannot figure out how the server knows that a client is connected to a pipe before any data from client is sent. Can s...

Subtle syntax error in default parameter not caught by compiler

I started getting the error, "error C2059: syntax error : 'default argument'" for a line of code that declared a function with a string argument that was given a default parameter. This was obviously a bit frustrating, as the error message was not exactly enlightening (I know it's a 'default argument'!), and the exact declaration would ...

DataGridView how to display grid lines in entire client area?

Hi, Is there a way to turn on grid lines in the entire datagridview client area rather than them becoming visible as you add rows? I have read the msdn but find nothing of use. C#, winforms, visual studio 2008 Thanks, R. ...

VS2008 Resize text editor macro

Hi, I'm using Visual Studio 2008 and I split my text editor into two vertical text editors. I thought it would be useful to have a macro that re-size the active text editor to take up most of the screen but I haven't gotten very far. I get an error whenever I try to change the width oh a text editor. DTE.ActiveWindow.Width = 800 And I...

Is there a stoll()/stroll() (string to long long) alternative in Visual Studio 2008

Is there an alternative, either built into windows or apache license compatible, to stoll() for Visual Studio 2008. Even installing the windows 7 platform SDK does not add stoll() to the string header. On unix the same function is be called strtoll(). ...

Exception not throwing (in Win7?)

Hi I have application reads in data from text file. Recently I realized that I should make a data checker for the data in the text file, to see if I can display/handle it correctly. Basically at the moment all the checker does is see if data is in the correct format, i.e. double is a double, int is int, etc... And if it isn't I'm thro...

How can i access anonymous types without FOREACHLOOP?

How can i get test all data . i want to access test.stockdescid and test.barcode please don't post : foreach (var person in myQuery) { Console.WriteLine(person); } var test = (from s in stock.StockMaterials where (s.date<= DateTime.Now if (I...

profile selected functions with VS profiler

I am profiling my code using instrumentation, but it takes a lot of time : About 6-7 minutes to run and then further 10-20 minutes to analyse. One of the major bottlenecks in performance is SQlBulkCopy and I wish to optimize the parameters I use for it. The data I run it on can't be generated easily and I wish to test it only in real en...

SQL QUERY showing Between Dates as specific dates + Data belonging to each date!

This is how a table is presented SELECT RequestsID, Country, Activity, [People needed (each day)], [Start date], [End date] FROM dbo.Requests There will be a lot of requests, and I would like to sum up the "People needed" per day (!), not as Between Start- and End date. Also I would like to group by country, and have the possibility ...

PostSharp build targets not running when using Debug configuration

I have setup a Visual Studio project that I have edited to reference the PostSharp build targets. I did not use the MSI installed to install PostSharp on my development machine. The problem that I am having is that the PostSharp Targets are only executed when I change the build configuration to 'Release', but not in 'Debug'. I can veri...

Templates for Visual Studio 2008 missing after full install of Standard Edition

I have a server with something called Visual Studio 2008 Shell (integrated mode) - ENU which only provides templates for SSIS work. I did not remove that before installing the VS 2008 Standard Edition (at the end of this there was no demand for a reboot). I then installed the Service Pack 1 for this VStudio product (again, no order for a...

TypeLoadException occurred when drag-and-drop a User Control into VS Designer

I created a customized ListView class, BinableListView, which inherits from ListView. I was able to drag and drop the custom ListView into a Form in the designer window. Now, I am trying to add the custom ListView in another User Control first, and add that User Control into the form. However, VS displayed TypeLoadException when I drag a...

How to disable VS compile warning "class or css class is not defined"

In VS 2008, when I compile, I get a large series of The class or CssClass value is not defined messages. How do I get the error/warning code (something like "C0167") for that message, so I can disable it? Answers that won't work: The compiler gives you the warning number. No, it doesn't. See the list of MSDN compiler errors (found a...

Serialization Problems on Windows 7 64-bit with Visual Studio 2008

Has anyone experienced issues with Serialization on Windows 7 64-bit under Visual Studio 2008? I can Serialize my object before exiting with no errors, but when I open the object back up, my changed data is not there. The only difference I know of is that I am on Windows 7 64-bit (previous was Win XP 32-bit). My code below works fine,...