visual-studio-2008

Retrieving the installation path from the installer

Hi, I have a Visual Studio 2008 setup which I created for a Visual C++ project. Is there any way that I can get the installation path that the user specifies at the installation folder prompt? Thank You! ...

Static variable not initialized

Hi all, I've got a strange problem with a static variable that is obviously not initialized as it should be. I have a huge project that runs with Windows and Linux. As the Linux developer doesn't have this problem I would suggest that this is some kind of wired Visual Studio stuff. Header file class MyClass { // some other stuff he...

BoundsChecker shows incorrect memory leak message

Hello All, I'm using BoundsChecker9.1 with visual c++. I have a class class Sample{ public: vector<AnotherClass> x; }; When I run my program the BoundsChecker tool reports all push_back() calls such as S.x.push_back(AnotherClass()) as memory leak.. Wouldn't all the elements in vector x will always be deallocated when the Sample clas...

Second WPF project in one solution gives log4Net error

I am totally confused with the following error. I have my application which works perfectly fine and uses log4net for logging. I will now be implementing my own updater system. And I want it to be part of my solution. I have added a new WPF Application to my Solution and when I try to edit the main window or any other window in that p...

Creating Uninstaller Using Visual Studio 2008

I know how to create the Installer for an application but I want to know how to add the Uninstaller into the Applications work group. Is there anyway to add this from the Visual Studio 2008 Deployment Project. Or do I have to create a separate application for that altogether? ...

Configuring xUnit test output in Hudson

I have a simple PoC project in Hudson. The PoC has unit tests written via UnitTest++ and outputs the results as XML for consumption by xUnit to munge into jUnit format. Here are the salient relevant I have my project configured to use MSBuild to build the 2008 solution. The project contains both the dll it is to build and the unit t...

do you have to get rid of the WinMain to turn a project into a lib

say I built an application called App1 with a lot of classes in a single project. And I decide that I want to build another project called App2 and I want to use those same classes so I decide to turn App1 into a lib file. Must I remove the WinMain function to do so or can I leave it and the compiler will ignore the winMain in the lib fi...

why do game engines prefer static libraries over dynamic link libraries

I've been reading a few gaming books. And they always prefer to create the engine as a static library over dynamic link. I am new to c++ so I am not highly knowledge when it comes to static libraries and dynamic link libraries. All I know is static libraries increase the size of your program, where DLL link libraries are loaded as you ne...

turning a project into a static library

I checked out the microsoft documents. it shows how to create a static library upon creation of the project. but not necessarily on how to convert a previously made project, into a static library. So my question is, where do I go to turn my previously made project, into a static lib. so I can include it in my other projects ...

RadAjaxManager (Problem About Knowing) ...

hi my dear friends... my RadAjaxManager Code Is Like This : <%--RAD AJAX MANAGER--%> <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="RequestStartedOfRadAjaxManager1" UpdatePanelsRenderMode="Inline"> <ClientEvents OnRequestStart="RequestStartedOfRadAjaxManager1" /> ...

How to let user set his home page in c# visual studio 2008?

I am creating a browser and I am supposed to provide an option for the user to set his homepage. I have created a tabbed browser. Can anyone suggest me what to do? Thank you ...

Configuration Error ASP.NET password format specified is invalid

I am getting the above error in IIS 6.0 now when I browse my C# / SQL web application. This was built in VS 2008 and SS 2008 on a 32-bit XP OS. The application was working before I added Login controls to it. However, this is my first time configuring Login/password controls so I am probably missing something really basic. This err...

How to Profile the CPU Activity of a Visual Studio Program

Imagine i have a program doing a lot of things wasting about 90% of CPU. I need a way to know (through visual studio) where the program are wasting CPU. ...

How to customize the Error screen in an MSI installer?

In VS 2008 setup/deployment project, is there any way to add a custom error dialog (or customize the existing one) to handle errors encountered during the installation process? ...

How to store values in database C# ?

Hello all, I have a form that has text boxes, buttons on it for the user to sign up and sign in. I need to store the entered sign up credentials in any database(Oracle, Service based database, local database). Then when he tries to sign in, entered credentials should be compared with stored sign up values for authentication. This is do...

Use a named range in an excel worksheet to propagate a listbox

So I have a number of namedRanges in an excel worksheet. I would like to use these to fill in comboboxes on a user form in the same WorkBook. I have tried: cboMember.DataSource = Globals.Sheet1.MemberRange.Value No error is given but the combo is blank. Does anybody have any ideas? I'm trying to use VSTO for VS 2008 on an excel 200...

Entity Framework 4 Visual Studio 2008

I'm been looking around and trying to see if the Entity Framework 4 will run under Visual Studio 2008, but can;t find any references to it. Can you get EF4 working on VS2008? ...

My C# program has been 'published'... how can I change the installation path?

Hi! I 'published' my C# solution in Visual Studio 2008 to C:\Deploy. When I run the setup.exe program, it installs my program to: C:\Documents and Settings\Kevin\Start Menu\Programs\MyProgram Is there any way, within Visual Studio, to set a custom install path? For instance, what if I wanted my program to install to: C:\Program Fi...

OpenMP implementations in VC++ 2008, 2010

Depending on implementation, OMP can be quite useful to parallelize fairly arbitrary bits of code - e.g a parallel section inside a method that calls two independent methods - or it can be bad. It depends on how threads are created/cached, I think. How does the VC++ 2008 implementation work? And is the 2010 implementation significantly ...

VS2008 - Find and Replace - Searches too many files.

I've used VS2008 a lot and have never had this problem. However, I started a new job and am using a new machine. Ever since I've gotten here the VS Find feature has been acting funny. I first noticed it when I did a replace all for "All Open Files". The project wouldn't build because the values had actually been replaced in other files ...