rock.aut's Q&A profile
Visual Studio Team System Merge Problem
Hi! I have a serious problem with the merge functionality. But first of all to the background of my problem. At the very beginning we decided to create a general project in TFS where our actual code should be placed, just call it PROJECTX. After we released this version and wanted to start on the next one we decided that it would be more comfortable to have a version number within our projects. So we created a new branch PROCJETX2 which was inherited from PROJECTX. Since there is no possibility to rename projects in TFS V1 I created a new project PROJECTX1 and moved all the subfolder from PROJECTX to PROJECTX1. After all this was done I deleted PROJECTX from TFS using TFSDeleteProject. Now to the problem: All subfolders of PROJECTX1 ...Show All
Visual Basic SendKeys from a Windows Service
Hello All, I am having a problem sending keystrokes from a Windows Service Application. I added the <Assembly: AllowPartiallyTrustedCallers()> to the assembly file and referenced the System.Windows.Forms and imported in my service file (Imports System.Windows.Forms). There is a password field that pops up on the screen and is the only thing in focus that the following block writes to. I even tried this in a forms app and it worked like a charm, but for some reason the service is not accepting the Sendkeys. I narrowed down the block with the error by use of a logged entry: For i = 1 To passLenght skey = Microsoft.VisualBasic.Right(Microsoft.VisualBasic.Left(pass, i), 1) 'WriteToLogFile("Sending keys to sc ...Show All
Visual Studio Express Editions Serial Port Programming
Hi All I would like to be able to write an application in C# that can recieve messages from serial device. Can anyone help me with any information for writing serial device applications using C# Thanks Ross I have a web page that shows a simple serial communication example using C# Express. It includes an explanation of how each section works. There are other good examples on the web too but maybe this will help. http://csharp.simpleserial.com ...Show All
Game Technologies: DirectX, XNA, XACT, etc. WOW!! Difference between running the EXE and from within GSE
I've just been playing round writing my sprite class. I already had what was effectively a parallax star field using textures that were 151x68 (some old rockets from when I did Dexters Lab on the GBA) using a custom class but I wanted to try my new generic classes. Each rocket was scaled by speed value to push the slower ones into the distance and each one was tinted to make the distant ones darker. So that's scaling and colour transformations at the same time. The whole lot was sorted by speed to make sure the faster ones appeared on top. Nothing fancy but it was doing quite a bit of donkey work. I decided to start pushing the code to see just how many it would move. From within the GSE, at 200 it was jerky and not very pleasant. I ...Show All
Software Development for Windows Vista AutomationID Best Practices
I am trying to find out whether or not it is a best practice to set Automation properties (AutomationId, HelpText, Name) for WPF controls as a standard development procedure. It doesnt appear that you need to define these properties unless you are creating a custom control, and that in their absence UI Automation would be based on the Name of the control. We are just getting started with UI Automation in WPF and our main focus today is UI Automation for QA Testing. However, other accessibility features are also on the horizon. Are there other benefits to setting automation properties Thanks in advance. JAtkins It should not be necessary for an app to set UI Automation properties on a c ...Show All
.NET Development notifyIcon works with windows forms but not services....
If I create a NotifyIcon in a designer of a windows application and assign an icon to it - it works just fine. It shows up in the tray, and behaves just as it should. However, if I create it in a windows service, then install that service and run it - the icon doesn't show up in the tray. I have no idea why. Any suggestions oh also, I couldn't find a better forum to post this in, so hope this works. For one you will need to set the serviceController.ServiceName property, which is what is wrong with the original example. The original example has serviceController being declared but never has its Name property assigned. ...Show All
Visual C# while (true)... need help!!
I thought I knew quite a lot about programming but when I came accross a bit of code like: while (true) { ...do something... } I had no idea how this works... I know that it's a conditional loop and while it is true it loops through performing whatever tasks there are to do... BUT what is the (true) part how does that work if it loops while(true) what would make it false since it's not a local variable or anything and you cant say IsRunning = false; it just always is true... Does it mean that while app is still running or something... That's the only solution I can come up with is that it means while( app is running){...}... Am I right Can someone please take the time to explain this to me and maybe give me the proper name for referring ...Show All
Visual Studio 2008 (Pre-release) creating complex lookless controls
Hey, What would be the best practice for collecting events from the template controls for a lookless custom control. Say I have 3 text areas on the custom control whose text is bound to some properties. That part is easy enough to do, but say I want to know if any of these areas have lost focus, and which one lost the focus Since these controls that are holding the text are defined in the template I don't have an easy way of discriminating between them. I can handle previewlostfocus or whichever, but to determine which was the control that lost fous means to me I'm left with the rather unsatisfactory solution of relying that they have some identifier in their control name, or something of that nature. Is there any way of rerouting an even ...Show All
Windows Forms Check If sql Server Exits
hi is there a way to check if sql server exist when creating and installer (i want to create an installer for a program and during setup i need the installer to check if sql server exits ) Hello I have this same question, but i am looking for if sql server express edition exist. In VS.NET 2005 Instaler I added serach registry key, but what i must to write to property, regkey or Value in serach for regisrty entry properties ...Show All
Visual Studio 2008 (Pre-release) Concurrency example in service behaviors
Hi, all! I want to ask if some of you have the same experience and know how to overcome the problem. Concurrency example from PSDK's WCFSamples\TechnologySamples\Basic\Service\Behaviors\Concurrency work nice if I'm opening client ( service on IIS ) and close before I open next client, but if I open few clients simultaneously, only first shows all info in callback , second show few results and third and next show only data sending to service and not returned results. In previous (February CTP) WinFX second and next client failed with Async socket exceptions, but work if next client opened when previous client closed already. OTOH such behavior contract example (async) work as a charm when I do i ...Show All
SQL Server Secure Replication from Cluster to Workgroup
I am trying to set up replication (transactional with updates) from a 2-node Active/Passive SQL Server 2005 Cluster to a SQL Server 2005 server in a Workgroup. When configuring the Snapshot Agent, Log Reader Agent and Queue Reader Agent from the Publisher (Cluster) we are advised not to use the SQL Server Agent Service Account for security reasons. When I specify a Domain Account I get an "unknown security error" staring the snapshot agent. When I select the option to run under the service account all works well. Strange thing is when I specify the service account I still get the "unknown security error" message. Anyone got any ideas Peng the srvSQL2005 account is non-admin (i.e. no ...Show All
Audio and Video Development Any sample for ITA?
Hi all From the samples I don't see any implementation for ITA. It is told that to write an ITA we have to create proper interface in Media Source and return an IMFActivate for ITA to be created inside PMP process. "The IMFActivate object exposes the IMFActivate interface, which enables the PMP host to create the ITA, and the IPersistStream interface, which enables the PMP Session to serialize the IMFActivate object from the application process to the PE process." Sounds nice, except one problem -- how to write such a magic object I don't see any further information from all the documents. Does anyone know No, indeed we don't have a sample ITA in the SDK. This is mostly because we expe ...Show All
Software Development for Windows Vista How do you install system fonts in Vista?
Is there anyway for a normal (non-installer) program to install system fonts without making a separate executable that demands elevation so that it can write files in the system fonts directory or to be able to write to HKEY_LOCAL_MACHINE\ SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts Similarly, if you want to install a font permanently for one user only it seems like you have to use the virtualization stuff (which seems like a hack that will break someday, and might not even work now, since it would only be visible to programs running in compatibility mode) or just have an application re-add it everytime that they run. Is there a better way Note that installer detection can be turned off and doesn't apply ...Show All
Visual Studio Express Editions Downloading the ISO...
Can I download the Traditional Chinese version of ISO image of the Express I do not have a definite answer but if your language settings (in the webbrowser) are set to Chinese and you access the MSDN website and try to download the image and it gives you the english version I would assume that there is no chinese image at the moment. My top suggestion to get a better answer is to probe a chinese newsgroup. ...Show All
.NET Development How do I pass data to a background thread while the thread is running?
I have read a number of topics on threading and I have a decent understanding of Threads, Processes, AppDomains, but I have yet to write any thread code. My question is, I am writing a custom Tracing framework because I hate the one that comes with .NET I have studied TraceSource inside out and I don't like a lot of things about it, so anyway, I wanted to have my custom Trace Source class spew messages like you would with Debug or Trace or TraceSource, but I want my listener(s) to be on another thread. How do I pass data from one thread to another on a constant basis like that I have read about passing data to a thread upon creation, but nothing I've read talks about passing data to an already running thread. Is this possible A ...Show All
