visual-studio-2008

Linking to a Library requires MFC80U.LIB

I am trying to compile the SkpWriter example from the latest SketchUp C++ SDK. However, the linker gives me LNK1104 saying that "mfc80u.lib" could not be found since one of the static libraries (Utils.lib) in the SDK depends on some MFC 8 libraries. I am using VS2008 and only mfc90u.lib is available. Is there a way to use mfc90u.lib in ...

ifstream::unget() fails. Is MS' implementation buggy or is my code erroneous?

Yesterday I discovered an odd bug in rather simple code that basically gets text from an ifstream and tokenizes it. The code that actually fails does a number of get()/peek() calls looking for the token "/*". If the token is found in the stream, unget() is called so the next method sees the stream starting with the token. Sometimes, see...

Need to compile a project to .net 3.5 sp1 in visual studio

Hi there I'm using a cms (mojoportal) and want to install it on a webserver, this webserver has .net 3.5 sp1 installed (a requirement for it to run), and my pc that i compile the project also has 3.5 sp1 (im using windows 7, it comes with 3.5 sp1) Though I'm getting an error that i know only comes up when the cms is running on 3.5. I b...

Datagridview combobox business object updating reference

Hello, I recently asked this question on here and got the answer. However I'm now trying to apply the same logic on a DataGridView which is bound to a BindingList< T > of Curriculum objects. The Curriculum class has a property of type Year. I'm trying to use a ComboBoxColumn to update the reference the curriculum object has of years. T...

Hiding all the 'Skipped Build' messages in VS2005 / VS2008

I'm building a Visual C++ solution that includes a large number of projects, most of which are skipped for this build. Every time I hit 'Build' I get a dozen messages like this in the Build output: 1>------ Skipped Build: Project: this_project_name, Configuration: Debug Win32 ------ 1>Project not selected to build for this solution con...

VS IDE: Split the tabs Horizontally or Vertically

in VS IDE, when more than one tab is open, we can split them horizontally or vertically. BUT they should be different files in each tab. Is there a way I can have the SAME file in BOTH tabs? because when I am working on one method that is calling other methods in the same file, I want to easily see them instead of having to scrolling up ...

Visual Studio finish application on Exception

I have some places in the C# application where potential Exception's are not catched, but there is a try-finally block to release resources before crashing in case of an Exception. When I run the code in Visual Studio and an Exception occurs, it breaks at the corrsponding line, marks it yellow and describes the exception. That's fine. ...

Adding new toolchain support to Visual Studio

I'm looking to add support for a non-Windows platform for Visual Studio 2008. It would need to build C++ using a non-Microsoft toolchain (essentially a customised gcc). I know the easy way is to use a Makefile project, but I'd at least like to explore adding support for a new toolchain directly to VS. I know it is possible; MS do it, ...

Anything I can do to improve usability of 'Solution Explorer' in VS2008?

Hi, In solutions that contain a few different projects, I find myself constantly shuffling around in solution explorer looking for a particular file, when the tree gets expanded a little, there are often 4 'pages' of files to scroll through. Does anyone have any tips for making solution explorer a bit more usable? Perhaps Some 'colla...

how can create specific folder when install setup file?

Hi.I want to make setup for my project and i have one folder "Resource" in this path ..\bin\Debug.now how can i make setup file ,that when i install setup "Resource" folder with it's files become created in the install folder ? my database is sqlexpress for my database file what should i do?it's folder is App_Data in ..\bin\Debug path.Th...

Can you ignore an exception from a 3rd party dll IN A SPECIFIC PLACE with the VS2008 debugger?

I'm using a 3rd party library (Fluent NHibernate) that throws a harmless "file not found" exception on startup when I run with "break on all Common Language Runtime Exceptions" enabled (Debug | Exceptions... menu). I realize I could just uncheck the specific "file not found" exception, but then I wouldn't get a break if this occured som...

Migrating from VS 2008 to VS 2010 (4.0) and VB.NET to C#

I know there are tools to migrate VS 2008 application to VS 2010. But anyone knows a tool that can also convert VB.NEt code to C# code. ...

VS2008 not linking to all functions in a library

Our project is a VS2008 based project using Boost and Qt heavily. However, today we have a new linking problem that doesn't make any sense. What is happening is that during the link For program A, our static library Foobar is finding links to 5 of the 8 member functions. For program FoobarUnitTest, everything from Foobar links and ru...

Is COM object redirection via "TreatAs" supported by WinCE 5.0 and above?

If not, is there a way to obtain equivalent functionality? We want to provide a new COM component as a drop-in replacement for a panel who's vendor can change things in the registry, but not their client code. ...

Office-agnostic way to access data in a .xls file?

I'm working on a VS 2008 C# program that needs to get data out of an excel spreadsheet. Problem is that the users run a mix of office 2007 and Office 2010. So I'm trying to get some pointers in the right direction on a way to programmatically get data out of the xls that doesn't care which version of office the user has installed. Bon...

DataSet Editor is missing from the “Open With” dialog in VS2008

Is there a way to get this option back? it's defaulting to an xml editor. It would be nice to have dataset designer back so that I can edit the typed dataset. Thanks in advance. ...

What's the difference of VS2008 and VS2010 when I do a Load Testing?

Hello, Everyone :) I have a project and I want to do some load testing to it. I have a VS2008 test Edition now, but there is another choice: VS2010 Ultimate. Should I do my load testing on VS2010 Ultimate? Is it a better choice? Why ? What's the difference of VS2008 and VS2010? Thanks for your attention :) ...

Filters on an N:M relation

It's simple. I have three tables, for example: Persons(ID, Name, etc.) Lessons(ID, ClassroomID, Description, Etc.) Person_Lesson_Link(PersonID, LessonID) The third table links the two others in an N:M relationship. A person can follow multiple lessons, and a lesson is given to multiple persons. I've created an entity model around these t...

CMake: defining link directories and libraries for different build targets

I have a vs2008 project here. Its project files are generated by CMake. What I want to do is define libraries and library directories for the Debug and Release target independently, i.e. release libs for the release target and debug libs for the debug target of course. So far I have no idea how to do this. I know I can define different ...

Test deployment failed for indirect reference assembly not found, Visual Studio 2008

Hello, I am new to unit testing. I was trying to run a simple unit test in Visual Studio 2008. The code I was testing uses a third party library. When I try to run the test, following error occurred. "Warning: Test Run deployment issue: The assembly or module 'nunit.framework' directly or indirectly referenced by the test container ......