sapo's Q&A profile
Visual Basic Kill Thread upon exit
Hello all, I have an app that starts a thread running upon the push of a button. That thread opens a server socket and listens for incoming clients. When I kill the app by hitting the X on the form it closes with no problem. But when I resart the app and I hit my thread start button again it gives me an error. I have to ctrl-alt-delete, find the process and kill it. Then I can restart the app and the thread without a problem. So for some reason when I close the app my server thread does not die with it. Can someone shed some light on how to make all processes that this app starts die when it is closed Any help would be appreciated. Hi Try setting your threa to run in the background eg dim t as new th ...Show All
Visual Basic Embedded MP3 (in resource file) playback
Hi! I want to embed a MP3 as a resource in VB05 and play it with DirectX. I don't want to use any coms (e.g. Media Player ActiveX control). Any suggestions Alternatively, how do I playback a embedded (in the resource file) MP3 file with the Media Player ActiveX to playback media files in WMP, you can include the WMP 9/10 in your application if you want to playback media files, this can be achieved by installing the WMP SDK and adding the AX control on your form. Alternatively, have you looked at the Managed DirectX SDK Alot of cool stuff in there and I believe there are examples on how to play back audio. you may want to check out this article: http://msdn.microsoft.com/coding4fun/gamedevelopment/beginning ...Show All
Visual Studio How to tweak the OutputPath on a Visual Studio .NEt 2005 solution
Hello. I know that this kind of question has already lead to much writing on this forum. I've been digging, with no luck. I explain my need. Context and requirements I am compiling a MS Visual Studio .NET 2005 solution on the command line via a 'msbuild.exe' call. This solution contains several C# projects, with a dependancy graph. By default, each project output path is set via the MSBuild ' OutputPath ' property, defined with the value ' bin\$(ConfigurationName) ', which imposes the output artifacts to be created related to the Visual Studio C# project location on the hard disk, in the directory ' bin\Release ' related to the directory containing as a child the project, in release mode. What I need, is to set this ' OutputPath ' direct ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Drawing a simple rectangle
Hello - I'm trying to use XNA to draw a simple rectangle at the moment, using DrawIndexedPrimitives. I've tried tweaking and adding many different things but I can't even get anything to show, just the plain black screen (and yes, everything else like textures are rendering fine). Here's my code: Declarations: Protected vb As VertexBuffer, ib As IndexBuffer Protected vertexData As VertexPositionColor(), indexData As Integer() DeviceCreated event: vb = New VertexBuffer( _ graphics.GraphicsDevice, _ GetType(VertexPositionColor), _ 4, _ ResourceUsage.WriteOnly, _ ResourcePool.Managed) ib = New IndexBuffer( _ graphics.GraphicsDevice, _ GetType(Integer), _ 6, _ ResourceUsage.WriteOnly, _ ResourcePool.Managed ...Show All
Visual Basic playing a .wav file on expiration of a timer event
I guess I'm rocked up, but I have been unable to figure this out. I need to play a .wav file when the timer event expires. below is the code for the form. Imports System Imports System.Media Imports System.Windows.Forms Public Class frmTimer Dim intCountdown As Integer Private Sub InitializeTimer() Dim intCountdown intCountdown = txtCountDown.Text ' Run this procedure in an appropriate event. ' Set to 1 second. Timer2.Interval = intCountdown * 1000 ' Enable timer. Timer2.Enabled = True btnStart.Text = "Enabled" End Sub Private Sub btnStart_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnStart.Click ...Show All
Windows Forms What's the MSN SMTP server when using SSIS?
Hi, I'm learning SQL Sever Integration Services (SSIS) and am trying to send myself an email. When setting up the send mail task, I am asked for the SMTP server; since I use MSN, I tried "msn.com" and "smtp.email.msn.com", but neither one worked.u'm developing on a single machine with no network except web. Any suggestions for what I use for the SMTP server and also how I would set up the authentication Thanks. Eaton Hi Dave, I appreciate your feedback. Can you tell me how/where to download the smtp server Also, is it pretty straightforward how to set it up Thanks. Eaton ...Show All
Visual Studio Team System Locked for check-out error on rename but lock status not shown by tf status command.
I'm working with Microsoft Visual Studio 2005 Team Explorer Service Pack 1 (KB918525) against Visual Studio Team Foundation Server Service Pack 1 (KB922996) using SQL Server 2005 Standard Service Pack 1. While attempting to rename a file I was presented with an error dialog indicating "The item [item:omit] is locked for check-out by [user:omit] in workspace [workspace:omit]." At the time, I was working with Source Control Explorer in a different workspace so I switched workspaces to the one indicated in the error and attempted to undo pending changes. However, there were no pending changes. So I dug out a command line and ran the following tf status [item:omit] /workspace:[workspace:omit] /format:detailed /recursive ...Show All
Smart Device Development How to Send file to development computer from target device running WinCE5.0?
Hi, sorry to bother you! I develop WinCE Application for the first time. I was wondering how to access file between My PC and target device thank you ! ...Show All
SQL Server sql command oracle oledb connection - parameter issue
I need to extract rows using date as parameter... where source contains millions of rows but few thousands per date. I tried using SQL command in data access mode in OLE DB Source Editor but having problem with passing parameter... Anyone has solution Its not a workaround. Its a very very good way of doing it - the correct way in my opinion (though be aware of SQL injection). This may be of use to you: http://sqljunkies.com/WebLog/knight_reign/archive/2005/10/05/17016.aspx -Jamie ...Show All
Windows Forms International Deployment & Prerequisites
We are using Click Once to deploy an application in multiple sites around the world. The website is located on our intranet in the US. How does Click Once determine where to download the prerequisites (i.e. 2.0 Framework) Since the bootstrapper is running on the end users PC, would it pull it from the closest site to the user Any other suggestions/tips on deploying an application via Click Once internationally Thanks, Jimmy Leonard ...Show All
.NET Development ADOMD fails to connect to Analysis Server on 64-bit
I am trying to connect to a Analysis service 2000 server using ADOMD.net on 2k3 AMD64 platform. The following is the connectstring: "Provider=MSOLAP.2;Data Source=ASServerName;IntegratedSecurity=SSPI;Initial Catalog=\"FoodMart 2000\"" I get the error" "A connection cannot be made. Ensure that the server is running." The ADOMD can connect to SQL Server 2005 Analysis Service server. Any help is appreciate. ...Show All
SQL Server Report server database security question
I am currently the only Reportbuilder / Contentmanager / Publisher and admin in the Report server database. I am using windows authentication when creating subscriptions and saving them in this database. Some of the reports that i create have very sencitive information. What risks and procautions do i need to assess if i want to add another reportbuilder / content manager that can manage subscriptions The main thing is I do not want the other builder and content manager to see my report information. is it just meta data that it holds or do i need to worrie about the data also if so what do others do to block them from viewing other peoples data Summery : I just want them to see data that is relevent to their work and not mine. Is th ...Show All
.NET Development .NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error (7A05E2B3) (80131506)
It seems that most of the individuals are either getting this error message in Visual Studio, one of the Visual Express environments, or an ASP page. I've got a service on one customer's machine that is receiving the following two errors in his Event Log prior to a crash on said service: Event Type: Error Event Source: .NET Runtime Event Category: None Event ID: 1023 Date: 7/25/2006 Time: 9:25:06 AM User: N/A Computer: XXX Description: .NET Runtime version 2.0.50727.42 - Fatal Execution Engine Error (7A05E2B3) (80131506) Event Type: Error Event Source: .NET Runtime 2.0 Error Reporting Event Category: None Event ID: 1000 Date: 7/25/2006 Time: 9:25:09 AM User: N/A Computer: COPYCENTER01 Description: Faulting application XYZ.exe, versi ...Show All
Visual Basic CheckBox Service control (VB, VS 05)
I decided to try and expand my project, I now wish to have the (current, I'm adding more as I find out which aren't required ) two processes here's a brief on what stage the additions are at. I have added 4 check boxes named; SpoolCheck1 SpoolCheck2 MDMCheck1 MDMCheck2 (more will be added as I find out more that can be stopped) and two command buttons named; StopCheckedButton StartCheckedButton I would like to 'link' the check boxes to the command buttons, but the checkboxes job (when checked, then clicking the start/stop command buttons) is to start/stop the selected program/process, in this case spool and mdm. I have these codes for starting and stopping the processes and return a message if there is a problem. ...Show All
Windows Live Developer Forums Windows Live: IE7 Search Bar
Is it still possible to use Windows Live with the IE7 search bar after installing IE7 RC1 Where can I find a place to re-add it Jason Nevermind I guess... it says MSN Search by default, but goes to Windows Live, and allows you to add Windows Live... but reselecting MSN Search still takes you to Windows Live... Is it possible to get back to MSN Search... ...Show All
