visual-studio-2008

Programatically building an MSI

I would like to create a C# program that creates an MSI based on a number of parameters. For example, based on user settings, certain files would be included, or runtime parameters set. Can anyone point me towards any documentation that might help, or give me an idea where I might start with something like this? ...

How to prevent a dll from being loaded in other apps

Hello, currently I develop a C#.Net application in which I'm using a custom control I developed some time ago. I need the dll to be shipped within the new application - but understandably I do not want the dll file to be used for foreign apps. That's why I need the custom dll to be somehow compiled within the new application. Currentl...

Is there any tool to convert multiline text for Visual Studio 2008/2005?

Is there any tool that will convert a multiline text, to a compatible multiline string for Visual Studio 2008/2005? For example: line1 line2 line3 line4 Should become: "line1" & _ "line2" & _ "line3" & _ "line4" ...

implement button click in html

I have been trying to execute a button event in html page that displays additional content on the web page. I am getting a null reference error when using the getelementbyid and not sure how to change this. Here is the html reference I need to engage: <div class="button" style="float:none;width:180px;margin:20px auto 30px;"><a href="#" ...

Is it possible to skip over an abitrary amount of a loop during debug?? Visual Studio

I am trying to find an error in my code. The problem is the error occurs in a loop. But the loop iterates about 500 times. Instead of clicking through the loop. Is it possible to skip over a certain amount of the loop ?? ...

Ms Test or NUnit?

Is there any advantage to picking NUnit for unit/integration testing vs the built in MsTest? ...

Failed to generate a user instance of SQL Server

Hi. I been trying to get my Visual Studio 2008 to run my Web Application on IIS7 on my Windows 7 machine but I just can't get it to work. I'm using the SQLEXPRESS I been following this Tutorial, but I get the following error message. "Failed to generate a user instance of SQL Server due to failure in retrieving the user's local applica...

from where i can get button with picture - for Windows mobile ?

hi from where i can get button with picture - for Windows mobile ? i work on Visual-studio 2008 i need a free one thanks in advance ...

Ordering test according to when they were executed in Visual Studio

We are using Visual Studio 2008. We have a solution with ca. 1000 tests. We run the tests from a script which produces a trx file. Two of our tests timeout, due to what looks like a database lock. When we run the tests alone, they run fine. How can we findout which tests were run just before the ones that are getting the timeout? ...

Visual Studio: reset user settings when debugging

In a C# Winforms-App I have several user settings stored. Is there an easy way to clear those settings each time I start debugging the project from Visual Studio 2008? Otherwise it always starts up with the settings from the last debug-session. Thank you! ...

refactoring my code. My headers (Header Guard Issues)

I had a post similar to this awhile ago based on a error I was getting. I was able to fix it but since then I been having trouble doing things because headers keep blocking other headers from using code. Honestly, these headers are confusing me and if anyone has any resources that will address these types of issues, that will be helpful....

TableAdaptor's auto-generated method is returing the wrong type.

I have created a table adaptor method that I would like return a int or an ?int or something useful, however, it is returning an object. I created the method in the wizard and chose "SELECT which returns a scalar value" The sql is: SELECT COUNT(*) FROM myTable WHERE (firstID= @firstID) AND (secondID= @secondID) The auto ...

Why does /MANIFESTUAC:NO work?

Windows 7, C++, VS2008 I have a COM DLL that needs to be registered using "runas administrator" (it is a legacy app that writes to the registry) The DLL is used by a reports app which instantiates it using CoCreateInstance. This failed unless I also ran the reports app as administrator; until I changed the linker setting from /MANIFESTUA...

Compiling a C# project as a class library and executable at the same time in VC# Express 2008

Hello Everyone, I am working on a C# WinForms application in VC# 2008 Express, writing unit tests with NUnit 2.5.5, and running them via the NUnit GUI program. Right now to run them I switch the output type to 'class library' and then switch back to 'windows application' after I'm done testing. I just have NUnit reading from the bin/Rel...

Visual Studio 2010 is asking to convert RDLC created on VS2008 to RDLC 2008 format?

I've created my project on Visual Studio 2008, as well RDLC files on it. But now, when I open the solution on Visual Studio 2010 and want to open RDLC file, it's showing me a warning. That's a little funny. The report was created on VS2008 and VS2010 is asking to convert to 2008 format. Perhaps there was a problem on my VS2008 instal...

using python library in .net

is it possible to include a library created in python/php in a .net application. In this scenario the library handles authentication for an API. ...

Why does visual studio think js file is a cs file?

I have a ASP.NET solution in Visual Studio 2008 and I added a file identical to http://plugins.jquery.com/files/jquery.cookie.js.txt named jquery.cookie.js in a subfolder of my project containing other javascript files and Visual Studio is treating it as a C# file, giving me errors like CS1012: Too many characters in character literal an...

C#: is there a need to convert a VC#2008 Express solution to a VS2008 Professional solution?

I've been using Visual C# 2008 Express for a good while now, but after comparing it with Visual Studio 2008 Professional, I've decided to 'upgrade' to Visual Studio 2008 Professional, which is easy since I can just grab it for free from DreamSpark (I have a student account there). I cannot upgrade to Visual Studio 2010 Professional as my...

Using libcurl & SSL

Hi there. I've found there is really very little information around on this topic. I already have a dll making successful posts using libcurl. I've compiled libcurl with openssl for ssl functionality. Here is an exert of my original curl setup. curl_easy_setopt(handle, CURLOPT_ERRORBUFFER, errorBuffer); //curl_easy_setopt(c...

ASP.NET - Missing #includes cause compilation errors: Failed to map the path '...'

I have an ASP.NET application which features some server-side includes. For example: <!--#include virtual="/scripts.inc" --> These files are not present in my ASP.NET website project because my website starts in a virtual directory: /path-to-my-application When I choose Build Web Site, I get this error: Failed to map the pat...