visual-studio-2008

VB.net sendmessge to console box

Hey all, i am trying to send some text to a console box (dos box) from my vb program but i can not seem to get it working. Here is my current code: Dim blah As Long Private Const WM_GETTEXT As Integer = &HD Declare Auto Function SendMessage Lib "user32.dll" (ByVal hWnd As IntPtr, ByVal msg As Integer, ByVal wParam As IntPtr, ByVal lPar...

Unhandled exceptoin using wsprintf

Hi, Below code throws unhandled exception at wsprintf. #define FRONT_IMAGE_NAME "Image01front.bmp" void GetName(LPTSTR FileName) { wsprintf(FileName, "%s", FRONT_IMAGE_NAME); } int main() { GetName(FRONT_IMAGE_NAME); return 0; } Please let me know why exception is generated at wsprintf. Thanks. ...

silverlight communication between client and server

Sorry I cannot post the code but here is what is happening in detail. User opens a form it adds an event listener like: GP.GlobalInfo.CommWCF.serviceClient.GetFilteredMessageCompleted += new EventHandler<GetFilteredMessageCompletedEventArgs>(serviceClient_GetFilteredMessageCompleted); and then sends a asynchronous message to the se...

background worker current status

I am using background threads to run intense search processes in order to allow the UI to be fully accessible. After creating each bgw I update a datagridview which shows the different threads and current status. however once they complete, I have no way or at least I dont know of a way to update the status on the datagridview specific t...

How to prevent Visual Studio from prompting to update .settings file from app.config

We're using a .settings file to store our application settings, and use default values in there so that we don't need to configure every single setting. This has generally been fine. However, during development we'll frequently change values in app.config, which means that when we open the .settings file, we always get the prompt "Value...

NuPack on Visual Studio 2008

Can NuPack be installed on Visual Studio 2008? ...

Building Mesa 3d 7.9 with llvmpipe from LLVM 2.8

First of all, this regards 64bit builds of both in Windows, by Visual Studio 2008, 32bit is no problem. Quite simple question; has anyone successfully built Mesa 7.9 with LLVM 2.8 as pipe? If so, do you happen to remember if you did any changes to SConstruct or any other build related file? I get numerous linking errors whatever I do. ...

How to debug C DLL when called from a C# application in Visual Studio 2008

I have a C# windowed application that needs to make use of a third-party API, which is offered only in C. To solve this problem, I've created three projects within VS2008: two C# projects and an empty C++ project. One C# project is my "Wrapper" project, responsible only for producing managed code that calls the C DLL. The other C# pro...

C# Talk suggestions

Hi, Lately we have decides in our company to have a monthly 30-60 minutes talk on a subject that relates to C#/.Net programming or anything else that will make us better in our work. We are currently programming in C# 3.0 with .NET 3.5 in VS 2008. So... I tried to come out with some topic for the talk (Something that is not too trivial...

Convert to web application error - could not parse aspx file

I occasionally get errors in my aspx files which are caused by problems with the designer file. When this happens I delete the designer file, right click on the aspx file and select "Convert to Web Application". Usually regenerating the designer file works perfectly, however sometimes I get an error which simply says "Could not parse t...

Attach to process WCF service from another machine

I'm trying attach to WCF service which is published at Windows Server 2008. I have this WCF at my machine with XP. I have some weird errors at server and I want to attach to this wcf from server with Windows Server 2008. I can't find good tutorial aobut this issue. Could you recommend me good tutorial ? ...

Visual Studio Fonts and Colors - Ref Keyword

I just imported new fonts and colors for Visual Studio 2008. I want to change the color on the ref keyword on a parameter to stand out a little more. Anyone know what option that is in the Display Items under Fonts and Colors? ...

Application.LoadComponent makes application freeze on shutdown

If I use Application.LoadComponent() to load a UserControl, Page or Window, my application freezes when I try to close it. The app apparently closes, but the process keeps running. Easy to notice when debugging. I've tested it under Windows 7 64bit and Vista 32bit. In both cases I have used VS2008 and .NET 3.5. A repro can be built by...

File operation in presense of trust level in asp.net 3.5

Good Day! i have a dot net website made in VS 2008. The website works fine on my local computer, it deletes files from a folder but when i updated it on the webserver it wont delete. the webserver guy says that i have to built the application in medium level, but i dont understand the concept about trust levels. i have tried to Google i...

Refactor properties into field

If I have a field, I can generate a corresponding property by right clicking on the field -> Refactor -> Encapsulate Field. Is there a way to acheieve the opposite? I have properties like public int Foo {get; set;} I want to generate private fields and change the getter and setter to use the field. Then I can implement INotifyProper...

Running application compiled with visual studio 2008 on .net 4 computer

Hi, I've compiled an application with vs 2008 and .net framework 3.5. I tried to run this application on computer with only .net framework 4 (.net framework 3.5 is not installed) and I've got an error (says that it can't load the assembly ....ServiceModel.... version 3.0). After installing .net framework 3.5 SP 1 it works. I have foun...

LNK1104: cannot open file 'kernel32.lib'

I Had VS2010 installed but found that intellisense wasn't working. I looked on the web and found that I wasn't the only one who had that issue. So, I installed VS2008 and everything was fine. Then I decided to clean up my computer and removed VS2010 and immediately started getting this error on my programs (new and old). Even a simpl...

Delete pointer to a structure

one of the cpp files has a structure pointer created with "new" operator. Should that pointer be explicitly deleted? Or is the pointer automatically deleted? ...

Failed to publish asp.net website project - access denied trying to write to temp folder.

I'm trying to publish my website to a local folder. I have two websites in my solution, one of them publishes with no problems, but the other fails and generates this in the output window: ------ Build started: Project: SSODAL, Configuration: Debug Any CPU ------ SSODAL -> D:\SourceCode\Infrastructure\Single Sign On\1.1\Source\SSODAL\bi...

Help setting up Bazaar Explorer between my VS2008 working directory and my dev web server

All I want to do is setup it up, so that after I make changes in VS2008 (local machine), I send those changes to the dev server. Also, I would like it so my other coworkers can do the same. But I don't seem to be able to get this working. Please help! ...