visual-studio-2008

VS2008 Installer Project: How to force "installed for everyone"

Is there any easy way to force the option for installed only for this user or installed for everyone? I want the end-user to be able to double click on the MSI file and not have to pass it command-line. Is there an easy way to do this or will I have to inherit an installer class to customize? ...

Unable to access documentation in visual studio 2008

The documentation system in my VS2008 installation seems to have become corrupted. Neither the Help-Contents window not the Help-Index window display anything apart from the Filter popdown (which seems to be empty) - and if I try to use this popdown I get a the error message "The selected filter contains an error that prevents it from b...

VIsual studio pre-build event

Hi, I have to build some C source files using Visual Studio (currently using VS2008) but there is a pre-build script that has to be run so the files are able to compile. So this pre-build script has to modify the source files and here comes the problem: how can I use a pre-build script that modifies the src files. If I modify the ori...

Visual C++ Assembly link library troubles

Hi. I'm having a problem having my projects built in VC++ Express 2008... I'm using a library, irvine32.inc/lib. INCLUDE Irvine32.inc works for me at school (On already configured VS environments) by default, but at home (Windows 7 x64) I'm having a boatload of issues. My original post here was that a file that irvine32.inc referenced, ...

Should this char be unsigned?

I found some confusing code during code review and am a bit puzzled. Doing some research I found this situation. I wrote this sample of code to highlight the problem char d = '©';// this is -87,the copyright symbol , (actually its 169 unsigned) if(ispunct(d)) // will assert. { } so, the programmer who was bug fixing, did the ...

Yet another unit testing / code coverage question. Is my approach sane?

This is yet another Unit Testing question. I'm trying to draw knowledge from a number of places regarding how to proceed, and I wanted to bounce my current understanding off of the collection of experts here. assume a project for which all dependencies except opengl funkiness are statically linked (except the c run time) My current un...

How to change Setup.exe Properteis in .NET Installer

Hi All, I am using Visual Studio 2008. I made an installer , if i right click on setup.exe and click on properties, it show wrong company , File Version, Product Name , Product Version. Is there any way to set these values. ...

Is there a way I can extract an interface code from a class in VB on visual studio 2008 like C# does?

In C# code, we can just right click on the class name and then select refactor and then extract the interface for that class. I wonder if this could be done on VB. Im using the same IDE VS 2008 ...

DSL: How do you remove a CompartmentListItem from the context menu

In my DSL I have four DomainClasses that inherit from an abstract base DomainClass. These DomainClasses can all be items in another DomainClass's CompartmentList. My context menu for the CompartmentList is automatically populated with Add MenuItems for each of the 4 domain classes. My problem is that I do not want a context MenuItem for...

Stop creation of .lib and .exp when building a .dll with Visual Studio

I am building a .dll using the Visual Studio toolset (2008). When I do the linking step: link -nologo -OUT:Foo.dll Foo.obj -DLL -IMPLIB:None.lib This creates None.lib and None.exp. It also displays the message: Creating library None.lib and object None.exp I'd like to suppress the creation of those two files, and the associated mes...

ClickOnce: BadImageFormatException when running x86 package on 64 bit windows

My .NET 2.0 application imports unmanaged 32 bit dll. The dll is loaded (first interop call happens) when user opens a file via a dialog within the application. When I deploy the application via clickonce with target platform "Any", users on 64 bit windows get BadImageFormatException when trying to open files from the application (at th...

ReSharper: How do I turn off ReSharper for all VB Projects

Is there any way to turn off ReSharper 4.5 just for on VB projects? ...

VS2008 build multiple configurations of the same project

I have three solutions which build two clients and a server, and share many libraries. I would like to be able to combine these into a "master" solution that builds all the necessary projects. For various reasons, which perhaps deserve a question of their own, some of the shared libraries are linked statically (.lib only) to one applic...

Starting to Use Visual Studio Database Edition

I am about to start suing de VS Database Edition I am have the following question: When I do a Import in the wizard VS create all the tables but not the data, How I do that? Thanks ...

Inconsistent Accessibility error

I tried upgrading an ASP.Net application from Visual Studio 2005 to 2008, and I tried compiling just to verify that it would compile and I received this error. Error 1 Inconsistent accessibility: property type 'Web.Properties.UITitleSettings' is less accessible than property 'Web.Ctrl.BasePanel.UISettings' \\projectLocation\Ctrl\BaseP...

How many projects in a solution is too many?

How many projects in a single solution is acceptable? And for those apps that have large project numbers do you put the other compiled dlls in some common folder to be able to run the app? ...

C# Why Accesing ListBox.SelectedItem.ToString(), the form tries to dispose?

Hey Guys. I'm developing a small POS for a university proyect. I have a form who acts as a POS main window, with a datagrid and so on. Also, i have one form who is the Sensitive search or Incremental search, and i want that form to, select one item in a listbox and return it to the main window. Now i have a property in the main wich gets...

How to determine which C/C++ objects use most memory

Hi! I have a mixed mode application (managed and native) which has a high memory footprint. I already have found out that most of the memory is allocated by native code. I am not talking about a memory leak, but about a high memory consumption that occurs very early after the program starts and then is relatively stable. Are you aware ...

x86 TargetPlatform with XBAPs

I've got a XAML Browser Hosted Application (XBAP) project that has a dependency on another project that is x86 only. All sorts of hell breaks loose at runtime (with respect to grabbing the DLLs) if I leave the target platform as "Any CPU". However, if I switch the XBAP project to target x86, I get the following compile time error: ...

What value has Visual Studios CSS support?

Hi, So I'm supposed to be a .Net Developer but have found myself getting stuck with allot of css and html stuff lately. I would now consider myself to be very strong in css and all it's intricacies. With that said I still see any use it any of the Visual Studio support for it outside of the intellisense (when it works). I want to ask i...