visual-studio-2008

How can I Insert data into SQL Server 2008 of any file in bits format?

Please reply as soon as possible. Because I am working on a project right now and I need the solution of this problem. Thank you! ...

Unable to Evaluate Expression - Visual Studio Debug Mode

I keep getting the following when trying to step through code and use the Immediate Window or Watch Window in Visual Studio. 'Unable to Evaluate the Expression' Im using Visual Studio 2008. Searching the forums there is a lot of talk of using the overloaded Response.Redirect and passing false to the endResponse parameter. I have tr...

"Target Framework" is outgreyed in Visual Studio

An colleague of mine is experiencing a weird behavior in Visual Studio 2008. The "Target Framework" box is outgreyed in all projects (regardless of the actual target version of .NET, be is 2, 3 or 3.5). The same project files are working fine on my machine and displaying the box activated and usable. Why is that, and how can we activ...

C++: How to include all source files from a folder?

I have put each function in own file. How do i include all those functions at once without repeating #include for each file manually? I dont care at which order the functions are included. Edit: All the functions from hundreds of different files belongs to the same group. Actually each file has 4 functions... ...

asynchronous threads and anonymous delegates

Ok, now I can use 2 techniques to launch my threads: Dispatcher and BackgroundWorker. Dispatcher: ' I launch the asynchronous process Dim a As New Action(AddressOf operazioneLunga) a.BeginInvoke(Nothing, Nothing) ' I update the GUI passing some parameters Dim a As New Action(Of Integer, String)(AddressOf aggiorna_UI) Me.Dispatcher.Beg...

Can I import INTO excel from a data source without iteration?

Currently I have an application that takes information from a SQLite database and puts it to Excel. However, I'm having to take each DataRow, iterate through each item, and put each value into it's own cell and determine highlighting. What this is causing is 20 minutes to export a 9000 record file into Excel. I'm sure it can be done q...

How to change the TrackBar Tick Color in Winforms?

I have a winforms app using a trackbar. The BackColor property is available for change, but doing so makes the color of each "tick" almost invisible. I don't see an explicit property to modify the color of the "tick". Is there something I am missing or a way to change the color of the tick? ...

OpenCV VideoWriter Error when using DIVX codec (vs2008, Win7, x64)

Hello, I'm trying to save a video to a file using OpenCV. But when I want to use more advanced codecs like DIVX or something I get the following error as soon as i call operator <<. For example the following snippet will bring up the error: cv::VideoWriter testwriter("C:\\test.avi", CV_FOURCC('D', 'I', 'V', 'X'), 25, cv::Size(500,500...

How to define the locale of an application in .NET

I have an application developted with Visual C++ 2008 Express Edition under Windwos XP, which runs propertly on one computer, where the default langaunge is set to English. However, if run the same application on a different computer with default language German, I run into troubles because a predefined string Infinity is not recoginzed ...

A debugger 'msdbg2.dll' is not correctly installed. Please repair your Visual Studio installation.

This is the message I get when trying to run a web application in VS 2008. I tried reinstalling VS but I got the same error. ...

Debug assertion failed

I keep encountering this "Debug assertions failed!" error when I run my program in debug mode. I tried looking this error up on the visual C++ website but the explanations are too advanced for me and they don't have any resemblance to what my best guess as to the problem is. I have went through my code and narrowed down the point at whi...

.Net Build and File Save in App_Code folder

In Visual Studio 2008, when I save a file in the App_Code folder it takes quite a lot longer to save than a similar sized file that is located outside of App_Code folder. Similarly, when I make changes to the code in a file in the App_Code folder, it takes the .Net Solution a lot longer to compile than it does when making code changes...

WSS tools for VS2008 directory question

Hi, I want to place an aspx inside the TEMPLATE->LAYOUTS folder of the server running WSS. Should I create the same folder structure under the pkg folder of visual studio or under the project root? In other words should I do this pkg->TEMPLATE->LAYOUTS or this project root->TEMPLATE->LAYOUTS Also where should I place the elements.xm...

Why isn't my Visual Studio working properly on Windows 7?

For some reason the Web Development VSExtension isn't working, even though I've installed the SP1. The Web Development templates are available (web forms, generic handlers) and I can compile web projects but the designers are missing. Is there a way I can solve that? ...

How to disconnect an anonymous event?

Possible Duplicate: How do I Unregister 'anonymous' event handler I have code like this: Binding bndTitle = this.DataBindings.Add("Text", obj, "Title"); bndTitle.Format += (sender, e) => { e.Value = "asdf" + e.Value; }; How do I now disconnect the Format event? ...

What is the fastest method for rotating an image without clipping its edges with GDI+?

The title says it all. There are some looooong and hungry algorithms for doing so, but as of yet I haven't come up with or found anything particularly fast. ...

connect vb 2008 with sql server 2005 locally

Hi,I'm trying to connect vb 2008 with sql server 2005 locally. I have the database at the same laptop but I always get an error. Here's my code: Dim strconn As String strconn = "Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Database;Data Source=(local)" Try Dim connection As New SqlClient.SqlConnection(str...

How many threads can I spawn before efficiency drops?

Is there any formula, maybe involving RAM & number of CPUs, which can give me a rough idea of how many threads I can spawn before it starts to be inefficient and slows the PC? I want to load test another machine, so want to send requests as quickly as pobbile. But there's no point of spawning a million threads if they will just get in e...

Jump to MSDN docs from VS

Say I have this line: Foo = reader.ReadElementContentAsInt(); I want to rightclick "ReadElementContentAsInt" and select some kind of "Jump to MSDN" option that opens the documentation in my browser. If it's easily extensible to work with other lib docs (e.g. Qt), even better. Do I need a VS plugin? ...

Visual Studio Tab change color?

http://s12.radikal.ru/i185/1009/82/8f01e59f40b1.png Can I change back/fore color of tabs? ...