RLRTech's Q&A profile
Visual Studio 2008 (Pre-release) Problem using event of Timer to set text on TextBlock
Hey, I'm trying to set the Text property on a TextBlock when the Elapsed event is fired on a Timer object. But I'm getting an InvalidOperationException with the follow explanation "The calling thread cannot access this object because a different thread owns it." This is the line of code that fails, it sits inside the timer_Elapsed() method textBlock1.Text = node.SelectSingleNode( "description" ).InnerText.ToString(); I've also tried moving it outside in a service method, but no luck. does textBlock1 need to be in a specific scope or something If yes how do i managed that when the <TextBlock> element is pure XAML Except using Dispatcher.Begin ...Show All
Architecture Live Communications Server (LCS) & IM
I am trying to understand the model of an IM system. I understand that LCS provides Initiation, Control and Termination of IM sessions (including security). What I do not understand is the message path once the session is initiated. Do messages flow thru the server or is a peer-to-peer connection established between the session parties Any other descriptions or information sources for the IM model are requested. The info that I have found on the MS site relates more to deployment than the model. Thanks I'm not sure about how large suppliers like MS do this, but I've build one once and decided that I didn't want all the messages running through the server, simply cause this wont scale very wel ...Show All
SQL Server Error when file is saved to PDF
I am calling a procedure that will save a file to PDF. It runs successfully. When I go to look at the PDF, I get a message, "Acrobat reader could not open 'Doc.pdf' because it is either not a support file or because the file has been damaged." This is how I'm calling the procedure: SaveFile(Dts.Variables( "varSSRS_URL" ).Value.ToString() + " /TestReports/MyReport&rs:Command=Render&rs:Format=PDF" , "C:\" + "MyReport.pdf" ) I don't know anything about a PDF data stream. I read somewhere else on the net that 'rs:Command=Render&rs:Format=PDF' would work. This is the sample that I got and used: //Sample call SaveFile (Dts.Variab ...Show All
.NET Development PingReply is slow
I have developed a Ping application using C# and it worked fine but after sometime, let's say a day it will be two slow so i have to restart the machine. i am currently using DOS ping command without any problem!! what's the solution.. sure.. this is the full code.. and what i want to know is running this application (or simillar) on the machine for 24hours monitoring using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Net; using System.Net.NetworkInformation; using System.Xml; using System.R ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Method for animating rumble on CodePlex
Hello everyone. First, thanks to everybody who is contributing to the community. You guys are awesome! I wrote some code to animate the vibration of the rumble motors. I hadn't seen this topic come up at all and after playing a really great XNA game that had really bad rumble (either fully on or fully off) I figured it wouldn't hurt to put it up. http://www.codeplex.com/acres The first release has a Windows game project demonstrating a few different rumble animations when you press the various face buttons. I'm really curious to know how people handle controller vibration in their games. Is it an afterthought Do you handle its procedurally or through predefined settings Hi, On a title we did for Xbox we used to feed audio wave f ...Show All
Software Development for Windows Vista How do you use ResolveIpNetEntry2?
Hi, On Vista, I want get the MAC address of an IPv6 gateway. I noticed that there's new IPHelper APIs to do so. First I use GetAdpatersAddresses() to obtain the list of network adapters. I then go through each FirstGatewayAddress attribute to find the IP of the gateway. Now I have the IP and I want to use the ResolveIpNetEntry2() function to obtain the MAC for the gateway. However, according to the MSDN entry http://msdn2.microsoft.com/en-us/library/aa814455.aspx I need its InterfaceLuid or InterfaceIndex . So this begs the question, how do I get either of those values that belong to the gateway Thanks. EDIT: It would also help if someone can tell me the API for neighbor soli ...Show All
Visual Studio Why immediate windows in unavailable?
Hi all... Curiously, in a new installation of Visual Studio 2005 I don't have Immediate Window. At MSDN, I read that to make it visible I have to go to Debug -> Windows menu and choose Immediate window. But the fact is that option doesn't appear!! I have VS 2005 version 8.0.50727.42 When I install the program in my office computer, Immediate window appears by default. Any help will be greatly appreciated Thanks Jaime Yes.. I have found the first of your steps and it worked. I wondered why it didn't appear by default, but never mind.. the fact is that I have recovered it Thanks Jaime ...Show All
Visual Studio Team System if i open a project, got latest version then deleted a file in my local folder
if i open a project, got latest version then deleted a file in my local folder next i want to delete the file also from the tfs server so that my project on the server doesn t include the file i deleted. how do i do that. The pb is when i delete the file locally and i do check in, it says, couldn t find the files i deleted Thank you You can do "Get Specific Version" with the "Latest" option and the "Force Get" option. -- Lorenzo Barbieri MVP Visual Developer - Team System, MCT, MCPD EA Win & Web, MCITP DBA IT: http://www.geniodelmale.info EN: http://www.lorenzobarbieri.info " "rtaiss"@discussions.microsoft.com " < "= UTF-8 B cnRhaXNz ="@discussions.micr ...Show All
Visual FoxPro MyEditor (Edit Control) Validation in VFP-9: STOPPING Menus, etc?
I'm trying to *stay within myEdit control(s)* until *pProcessing* is finished. I seek *better ways*, per se, from any of you (besides making the form(s) modal). Here are some of my awkward (non-bulletproof) workarounds. In myEditor.VALID ... If pProcessing This.SetFocus * Return .F. Endif To STOP Menus... In _msysmenu: set skip for pProcessing (for every menu bar()... ) OR SET SYSMENU SAVE SET SYSMENU TO ...when pProcessing is finished SET SYSMENU TO DEFAULT (I'd prefer to make _MSYSMENU/SYSMENU just *freeze* ... in a modal (myForm.windowtype=1) manner and not have it *blink* off and on ) To prevent oApp.oToolbar... If pProcessing oApp.oToolbar.enabled=.F. Endif Hiding forms until pProcessing is completed, Etc. Etc. Thanks in adv ...Show All
Visual Basic Drawaing a line on an Image
Hi guys, hope you can help me out on this one :) I'm developing a small application that contains a distance measurement tool. The idea is to make it a bit like map24.com (you clik once to select a starting point, and again to select an ending point). This works fine and I can use the graphics.drawline method to draw the line. But I would like the user to see the line already after the first click (like drawing in paint). Then when you move the mouse the ending point of the line moves. If I try to do this it draws a new line every time I move the mouse because I'm creating a new instanes og the graphics on mousemove. I have trying to make one instance and use the clear method before I draw a new line, but this method requires a color an ...Show All
Visual Studio Team System if i open a project, got latest version then deleted a file in my local folder
if i open a project, got latest version then deleted a file in my local folder next i want to delete the file also from the tfs server so that my project on the server doesn t include the file i deleted. how do i do that. The pb is when i delete the file locally and i do check in, it says, couldn t find the files i deleted Thank you Maybe the only way for this problem, is to apply undo pending changes, did you try this test with this, but know that you lost all change that you did to the file. Ray ...Show All
Visual Studio Express Editions clink on cell in datagridview to select text and place it into a textbox
I have formated a column in a datagrid view as a link label. I would like to able to click the link a place the contents of that cell in to a textbox. Any ideas OK here's an example - it populate a datatable to use for the databinding - but the cell enter event is whats important - it will use the selected cell to populate a text but important stuff is bold - this should get you going. Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click End Sub Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load   ...Show All
Visual Studio Tools for Office Opening designer crashes VS
Using VS 2005 and VSTO 2005. When I create new Word Template project and double click the document.cs file VS exits leaving a version of winword.exe in memory. This worked until recently, possibly until I installed VS SP1 beta or IE7. Where do I start looking to fix this Thanks I uninstalled SP1 beta - no change Repaired VS - no change Repaired VSTO2005 - got worse. Now when I create new Word or XL solution VS exits. I can re-open the newly created projects, but again, double clicking the cs file to open in designer crashes VS. I will try removing VS and VSTO completely, but not now as it takes forever to install, each with a reboot. If you can think of anything else I ...Show All
Visual C++ Scroll bar in slider
Hi All, i want to attach a scroll bar into a slider. is it possible... plz help me how to do this thing -Amjath take this article as reference it is handling with progress bar and slider. in the same way you can use scrollbar ...Show All
Visual Studio Express Editions Matrix implementation problem
Hi everyone, I am implementing a matrix program which create matrix according to the values on a file and write to or read from files the values of the matrix. However, since I am not able to compile my program, I would like to ask you that whether my class si logically correct and whether it gives a compile time error or not. If there is unexpeted situations in my code, would you please help e to fix them class SymmetricMatrix { public: int index1; int index2; int **matrices; /* * Constructor that initializes an empty matrix with a given size. */ SymmetricMatrix(const int matrixSize){ size = matrixSize; matrices = new int*[size]; for(int a = 0; a < size; a++) matrices = new int[size]; // assigni ...Show All
