quacka's Q&A profile
Visual Studio 2008 (Pre-release) Peer to Peer channel in WCF
hi friends, I want to establish a peer to peer channel to communicate between two applications. Can anyone guide me or give me a live example how to create a peer to peer channel between the two applications. Thanks, Abhas. please check this SDK sample(we have more p2p SDK samples,please check all samples) http://msdn2.microsoft.com/en-us/library/ms751502.aspx I like Justin artcle on p2p also,This may be helpful http://msdn.microsoft.com/msdnmag/issues/06/10/PeerToPeer/default.aspx ...Show All
Visual Studio Express Editions getting cursor position
I have already found out how to get a few console functions that are unavaliable in the windows version of the conio.h include file. The other ones that I am interested in is finding how to get the cursor position within a console window that are wherex() and wherey() equivalent. Is there a method that retreives the console cursor position for the x and y coordinate Actually I wasn't really looking for the mouse cursor position but the blinking cursor position within the console window so that a console application could use it in the form of a function call. My mistake, I should have been more specific, but thanks anyway for the info though. I will keep it as a reference. Anyway I think that I ...Show All
Visual C# Using WMI to get Current Logged On User
I am attempting to use WMI to obtain the current logged on user of a remote computer. I query W32_ComputerSystem and look for the value of UserName. This method seems to work fine on my local system but not on a remote system. The query returns >50 properties, just not UserName. The properties returned are listed below. The Username that I am using to make the call has DomainAdmin rights. Any help would be greatly appriciated! Vincent Fournier CODE: public string GetW32_ComputerInfo( string strComputer, string strUserName, string strPassword) { string strReturnValue = null ; ConnectionOptions options = new ConnectionOptions (); if (strUserName != null && strUserName != "" ) ...Show All
Smart Device Development Determining when activesync is running and then starting another program.
We are developing a VB.net application that runs on CE5 and we wish to start another program whenever activesync is detected. Our current program can poll to see if activesync is running. We initially have tried to do this by evaluating the processes running but have ran into a problem becuase the CE platform does not support the VB.net GetProcessesByName method call. The following code was place within a button on a form and works on a standard window application. But because CE doesn't support the above mentioned method call we have not found an alternative. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click   ...Show All
Visual Studio Tools for Office Guidance on passing data to VSTO docs / spreadsheets
I have two vsto apps. One in Outlook, one in Word. I would like to pass some data about the current item selected in Outlook to the word document. If this were two standard .NET apps, I could use args to pass the data, .NET remoting, etc. When faced with VSTO, the standard command line is that of Word, not a .NET assembly. In it's simplest form, I would like to do: Get selected item in Outlook and put in variable foo Do a 'Process.start' on word and pass variable foo In the VSTO startup of the doc, parse variable foo Is this possible or is there some recommended alternative for doing this standard pattern Hello Bart Elia, i have done some similar but not with VSTO, but should work s ...Show All
Game Technologies: DirectX, XNA, XACT, etc. More XBOX 360 Controller Button Graphics
http://360p.blogspot.com/2006/09/xbox-360-controller-button-graphics.html I know there was some others posted before, but a little choice never hurt anyone. I made these for my own game, but I figured other people might like them too. Cheers! [edited because I didn't realise this forum doesn't auto-link urls ] Even after all this time, these darn buttons are still the most looked at thing on my blog! In an attempt to stave off the emails I get about this, I would like everyone to know that these buttons can now be found here: http://www.360prophecy.com/site/downloads/ As always, these are completely free for use on whatever you want. If you're intent on using them for commercial use... that's okay too. ...Show All
Visual Studio Visual Studio 2005 and IE 7 Compatibility Issues?
Is there any reason not to install the IE 7 upgrade if I already have VS 2005 installed on a Win XP Pro system Can I expect any loss of functionality/integration between Visual Studio and IE Will I wind up building sites that will require IE 7 Don't see any reason why you would not install IE7 although it is not needed there are some known vulnerabilities that have been fixed in IE7, anyway you do not need IE7 for Visual Studio. ...Show All
SQL Server Using result from one query for data flow task
I have a table with five entries. For each row read in that table I want to pass the value to a data flow task to be used to set the filename in a flat file connection. Thanks. David Jamie Thomson wrote: Enumerating files in a Foreach loop ( http://blogs.conchango.com/jamiethomson/archive/2005/05/30/1489.aspx ) Actually - now that I think about it I have a similar package - it has 4 text file sources which it needs to import to DB. At the moment I have all 4 sources in data flow - they will be "Unioned All" and then processed to DB. Each one of those files contain about 25000 rows - 50% rows will be filtered out in "Conditional Split". In performance w ...Show All
Software Development for Windows Vista Conditional start of workflow
I'm working on a workflow hosted in SharePoint 2007 ... is it possible to only start the workflow when a certain field of a document has a certain value How would you do this Start the workflow from an eventhandler Any other ideas Joris [http://jopx.blogspot.com] Hi Joris, I'm sure you'll get better advice on a SharePoint discussion group. See the SharePoint home page , the SharePoint news groups , or the SharePoint support home . Regards, Paul ...Show All
Smart Device Development Garbage memory on array creation
Hi all, When I create an array is there any chance that I could have garbage memory in the array Is the array created with all null chars ...Show All
Visual Studio Team System Team Build fails with 0 errors?
I've noticed that in a Team Build, if you use a task like <Exec> with ContinueOnError="true" and it fails, even though the log at the end of the build says Errors=0 (the error was "converted to a warning"), Team Build still sets the status of the build as Failed when it clearly has succeeded. What gives Thanks for your feedback! Sounds like you've put a lot of thought and effort into your build process. * Your guess about how Team Build works is essentially correct - it kicks off MSBuild on TFSBuild.proj setting various properties and invoking the EndToEndIteration target. The extra stuff (updating the TfsBuild tables, etc.) happens within the various custom Tasks and with ...Show All
Visual Basic Accent Characters
Here is the problem. I am accessing data, usually using streamreader, reading a line at a time. The data is in CSV format, so I parse it with the .split. However, a lot of the text contained in the files have the funky characters, such as: 6,"Jose","Grandon","",28, However, when I pull that in, I get Jos Grandn. Which is NOT what I want. Is there any quick and easy way to allow the text to be pulled in correctly Thanks, Larry The problem is that you actually need to know the encoding in order to reliably read the text. By default, the stream reader will assume that the text is UTF-8 encoded. Maybe you could try using the default encoding and pass it in to ...Show All
Microsoft ISV Community Center Forums How to delete files ina directory with a certain pattern
Hi, I am littel bit of knowledge on WMI and VB Scripts and i am looking to accomplish the following task on a Windows 2003 Server. - I need to scan a directory for files with a certain pattern, once i get the list, i need to delete all the files except the last iteration. Example:- Say the Dir is D:\Logs ; under that directory there will be files with the following pattern. D:\Logs\Trace.trs, D:\Logs\Trace_1.trs D:\Logs\Trace_2.trs D:\Logs\Trace_3.trs D:\Logs\Trace_4.trs D:\Logs\Trace_5.trs I want to delete all the files except [D:\Logs\Trace_5.trs]. - Srini. hey, you could use dir to browse through files in d:\Logs directory and kill if a certain condition is true ...Show All
Visual Studio Team System Protected nested types, should CA1034 (NestedTypesShouldNotBeVisible) apply?
Currently, CA1034 suggests that types encapsulating implementation details of the containing type in a secondary, nested type are useful and should be private (inferred from "not be externally visible" and the fact that it warns about protected nested types). I would argue that the same is true for types that are encapsulating implementation details of the containing type and any derived types. If I want to declare a type that is only visible to subclasses of a type--for various reasons--the only way to implement this is to make that encapsulating type nested and protected in that base type. This, of course, raises a CA1034 warning. > Making a nested type protected is something the designer consciously has to do, ...Show All
SQL Server waittype NETWORKIO blocking spid on SQLServer 2000
I have a series of processes being blocked - after running sp_blocker_pss80 I can see that the blocking spid is coming from a batch program that is issuing a 'sp_prepexec' event and has a waittype of NETWORKIO. It looks very like the problem fixed by hotfix: 884554 in SP4. The db is SQLServer 2000 and running the following command: SELECT SERVERPROPERTY('ProductLevel') GO Gives the result SP4 So I guess I have the hotfix but I'm still experiencing this problem. The event that is 'blocking' is a select statement on a large table. Running the same batch process on identical data in a test environment doesn't give the same problem. I'm not certain that other processing on the test environment is identical though so it is ...Show All
