Stephan Smetsers's Q&A profile
Windows Live Developer Forums msgrp2p.xml
This file worked for me on my computer at home but not on my computer at work! Also did not work on a colleagues computer. Tried encoding the URL and also tried the selection from the main actions menu as well as the start an activity menu after selecting a buddy. Even tried several versions of messenger. No luck FYI ... my computer at home has the latest version of messenger 8.xxx, windows XP home edition. Help appreciated Kajal Are you sure you are placing the file in the right directory (i.e. not the Windows Messenger directory or something) And what version of Messenger do you use at work And what exactly doesn't work Is the activity not showed in the menu Or do you get an e ...Show All
Visual Studio Express Editions Unable to LogonUser with Active Directory domain account
I'm using a workstation in an Active Directory domain, trying to impersonate another user. The user AULAS\Aula11 (or aula11@aulas.es ) has administrative privileges in the domain, as it also has AULAS\Aula8, and both have blank passwords, but the following VB .NET code fails Private Declare Function LogonUser Lib "advapi32.dll" Alias _ "LogonUserA" ( ByVal lpszUsername As String , _ ByVal lpszDomain As String , ByVal lpszPassword As String , ByVal dwLogonType As Integer , _ ByVal dwLogonProvider As Integer , ByRef phToken As IntPtr) As Integer If LogonUser( "Aula11" , "AULAS" , vbNullString, 3, 0, elToken) <> 0 Then Console.Wr ...Show All
Software Development for Windows Vista Shell Extensions?
In Vista Beta 1 our shell extensions worked but in beta 2 Build 5384 it no longer works. I found some mention of Like all COM objects, Shell extension handlers must implement an IUnknown interface and a class factory . Most must also implement either an IPersistFile or IShellExtInit interface in Windows XP or earlier. These were replaced by IInitializeWithStream , IInitializeWithItem and IInitializeWithFile in Windows Vista. The Shell uses these interfaces to initialize the handler. In some msdn documentation but I can't find any samples. Anyone have any information Thanks. Whatever was the problem seems to be fixed in RC2. With no code changes my extensions are working again. I'll have to test further but th ...Show All
Audio and Video Development Playing a short clip in preview window
I'm trying to figure out how to play a short looping clip of a title in a preview window. The second step would be to have that clip change based on button focus. The idea is I have several videos, all selectable by a separate button. When any given button has focus a short loop plays in the preview window. Just like say chapter in a movie. For now though I'd be happy with the first step. The only two ways to play video are through the main video and the "PiP" (secondary video) -- but you can scale and crop the PiP (and move it anywhere you want on-screen) so that should work for you. You can have static images on all the buttons and then move / scale the PiP to be over the button that is pressed. Is there a reason why y ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Runtime Image loading from filepath
Hi all. Im building an application that requires image content to be loaded at runtime, from paths that are not known before the solution is built and the program deployed. Because since beta 2 this is something no longer supported for some weird reason by the XNA team, despite its near incredible necessity in a variety of situations, I have built a library that basically performs the MS Build task necessary, as detailed in various forums and blogs. My question is this: My knowledge of MS Build and the Pipeline is limited, especially as far as how it works as opposed to how to use it. The code below seems to work fine and is reasonably fast. Could there be any ramifications Im not aware of Cheers. class DynamicPipeline { str ...Show All
SQL Server Requirement to use Management Studio
What are the requirements to use Management Studio /Management Studio Express for local instances Are the requirements same for both studios and same for all OS Based on my own testings: Remote connection is required for Management Studio in Windows XP SP2 . But it is not required in Management Studio Express in Windows XP SP2 . For Windows 2003 and 2000, remote connection is not required for Management Studio. Have not tried Management Studio Express yet. Peter SQL Server supports connections using shared memory (which can only work with applications on the same machine), named pipes (an inter-machine communication technology that is mostly used by older applications running on ...Show All
Software Development for Windows Vista SetupIterateCabinet failing from Custom Action .dll
I use Visual Studio 2005 to deploy my application. I have a Custom Action .dll that's called during the Install phase. (The entry point is the standard Install( MSIHANDLE ).) I'm installing a .CAB file and am calling SetupIterateCabinet() from this Custom Action .dll and it is returning ERROR_ACCESS_DENIED. Appears as though Custom Action .dll's are not run with the UAC elevated privileges of the .msi file. I tried adding a .manifest to give the .dll elevated privileges, but then Windows XP barks that there is an unrecognized token. I need this .msi file to run under both Windows XP, Windows 2000, and Windows Vista. Because this is a Custom Action .dll there is no way I can wrap the function in a COM object and call it with ...Show All
SQL Server Date out of range?!
Greetings! I have a data source that gets generated based on a variable with the following SQL : "select * from result where deletion_ind = 1 and when_deleted >= '" + (dt_str, 50, 1252) @[User::Last_Run_Date] + "'" But when I run my package I get an error message saying: The conversion of CHAR to DATETIME resulted in a DATETIME value out of range The Last_Run_Date variable is set to '2006-06-25 14:35:05.450' When I run the code in a QA session it works, but in the package it complains! What am I doing wrong Thanks for your help in advance. Hi Jamie, I am not quite sure how to use profiler for this problem. I have a data source coming from SQL Server 6.5. The data source i ...Show All
Community Chat Kyro KidSafe Browser (beta)
Hello all, I am making a "KidSafe" browser for kids. Please download my program and post any noticed bugs,etc. It takes only minutes to set up. I am 10 years old, so who can make a browser for kids better than a kid Progress: Final will be started in January Thanks you everyone for your contributions and encouragement. *Has 3 tabs for browsing. *Has a "My Websites" button with up to ten of your programmed websites in it. Beta Features: *Has 3 tabs for browsing. *Has a "My Websites" button with up to ten of your programmed websites in it. *Talking Help guide *A new install program Updates in final version: *Button text replaced with graphics. *A game room with games, and fun KidSafe software (suc ...Show All
SQL Server Sql Delete Question
I don't know if this is where I should post or not. I am trying to figure out how to get this select statement which generates all of the records I need to delete. Here is the select statement. SELECT * FROM SrcComputer as c join SrcDriverEntry as d on c . DriverEntryId = d . DriverEntryId join SrcFileList as f on d . FileListId = f . FileListId where c . compid = 567721765 I tried writing the Delete statement like this, but lo luck. DELETE FROM SrcComputer as c join SrcDriverEntry as d on c . DriverEntryId = d . DriverEntryId join SrcFileList as f on d . FileListId = f . FileListId where c . compid = 567721765 How would I re-write the statement t ...Show All
Visual Studio 2008 (Pre-release) Creating a board game
Hi all, I'm trying to develop a board game using WPF. Each player will be placing tiles (squares) on a playing area one after the other. I'm planning on using a Canvas for the board, I'm not sure if this is the best choice but since the board might be growing as tiles are placed it sounds to me like it's the best choice. Should I dynamically grow the Canvas or create it with a large size that will be able to host all my tiles On a second note, what is the best way to zoom and pan on a Canvas I tried the ScrollViewer but there might be a better way. Any advices Samples Thanks, Pierre-Yves Troel Hi Pierre, I am just wanting to know what you did in this situation. It appears the post was never answered. Danny ...Show All
SQL Server how can I obtain message_id?
Hi all! How can I obtain message_id when I SEND the message, before I execute RECEIVE statement Thanks a lot for the help! Hi, SimonS_! Thank you for fast response. I'm send the message in one procedure: create procedure [dbo] . [proc_Client] as begin set nocount on ; declare @conversation_handle uniqueidentifier begin dialog conversation @conversation_handle FROM SERVICE [My Service1] TO SERVICE [My Service2] ON CONTRACT [Custom Comtract] send on conversation @conversation_handle message type [//Messaging/CustomMsg] ('message data' ); and here I want to save the Service Broker message_ID in the my table end conve ...Show All
SQL Server how to write Crosstab Queries
I need to write Crosstab Queries just like this, Qty + previous qty = TOT QTY TOT 1 1 5 6 3 9 9 18 2 20 FYI, that's a running sum, not a cross-tab. Here are some resources: http://sqljunkies.com/WebLog/amachanic/archive/2006/02/28/18286.aspx http://sqljunkies.com/WebLog/amachanic/archive/2006/02/28/18309.aspx -- Adam Machanic Pro SQL Server 2005, available now http://www..apress.com/book/bookDisplay.html bID=457 -- <Tharindu Dhaneenja@discussions..microsoft.com > wrote in message news:1dbe93ef-2c64-4c56-b617-5d3938bea80c@discussions.microsoft.com ... I need t ...Show All
Visual Studio Express Editions Tab Controls and Toolbars
How can I get the toolbar that is auto create from drag a dataset on to the stage into the tab control. I only want to see that database toolbar when I am on the tab that I have insert that database into. Thanks Hi, try the following: 1. Open the Document Outline tool window (View | Other Windows | Document Outline, or Ctrl-Alt-T) 2. Reposition the toolstrip - using your mouse, drag the toolstrip which you'll find under the form's name, to under the wanted tab page (the insert line should appear under it's name). Hope this helps, Andrej ...Show All
Windows Forms interacting text boxes & events question
hello: I have a user form in vb.net 2.0. When a user enters a price in one of 10 price fields, their corresponding percent fields and dollar fields(which are read only fields) are computed based upon the change in price. These computations involve a cost and a quantity field also on the form. In addition when either the cost or quantity fields are changed, all read only fields of the 10 price fields must change since these computed fields involve cost and quantity. So I have an event each time a price is changed to compute that price's read only fields, and I have an event to change the read only fields of ALL the prices if the cost or quantity fields are changed. I was thinking of putting these in the validating event routines ...Show All
