Software Development Network Logo
  • IE Development
  • SharePoint Products
  • Visual Basic
  • VS Team System
  • Game Technologies
  • Visual Studio
  • Windows Vista
  • .NET Development
  • SQL Server
  • Audio and Video
  • Visual C++
  • Visual FoxPro
  • Windows Forms
  • Microsoft ISV
  • Smart Devicet

Software Development Network >> Darren McGowan's Q&A profile

Darren McGowan

Member List

Likewise
Byenary
John.Doe
PeterTPeterT
Michael Collins
markand
Gravy
sandyrae
Debartsa
mranzani
Jonathan Ward
ST Ravi Shankar
nwonline
HemantMishal
Ben Arnold
alltime
DaveSmith
Sundararajan
fripper
Joe_Cool
Only Title

Darren McGowan's Q&A profile

  • Visual Studio 2008 (Pre-release) Imaging::CreateBitmapSourceFromHBitmap() bug?

    Hi, When beta2, I use Imaging::CreateBitmapSourceFromHBitmap() to create BitmapSource, it works. But after I updated June CTP runtime, I get a transparent bitmap. Is it a bug or the behavior changing CreateBitmapSourceFromHBitmap will use the alpha channel. If you are expecting an Rgb24 bitmap, then you should format convert to that pixel format. ...Show All

  • SQL Server Capture date and timestamp of a file?

    Hi, I am pulling files from the FTP site using the FTP task. I want to also capture the date and timestamp of each of these files so that I can insert the values into a database and track when are these files get created normally on the FTP server. Any ideas Thanks in advance for your help. $wapnil spattewar wrote: No the transfer of files do not preserve the date and time. When i download the files all the files show the same date and timestamp. Can the FTP task be configured to preserve the date and time Thanks! $wapnil Well.... You can write a custom script to perhaps issue an 'ls' command inside the FTP session. Remember, FTP isn't designed for file interrogation, it's ...Show All

  • .NET Development SelectNode - create if does not exist

    I am looking for a slick solution for this scenario: Input to a method should be an XmlDocument, an XPath expression and a string value. The inner text of the node found by the XPath expression should be set the the string value, if the node is not found it should be created first. The creation of the node is the biggest challenge here and I wonder if there is a good solution or functions which I am missing which can help me to accomplish this. Currently I put many restrictions on the XPath expression to make it work (no complicated queries: no back and forward, no search expressions). If the expression would be, e.g. /Root/Node1/Node2 I would split the expression by the slashes and navigate forward node by node and create one if it ...Show All

  • Visual Studio 2008 (Pre-release) Zooming issue

    I'm working with a Slider which controls a ScaleTransformation on a control. That Control is inside a ScrollView. When you want to apply a transformation on a control you can choose between a RenderTransformation and a LayoutTransformation . A RenderTransformation is a low level transformation, which only alters the rendering of a control. This means that the container control won’t know that the control’s size has been altered, and for instance, if you have a ScrollView set on it, it won’t know about the change and you will miss some of the parts while zooming . Then, we would think that the right choice for zooming, is using a LayoutTranformation . A LayoutTransformation does change the ...Show All

  • Visual Studio Express Editions Getting Drive Info

    Hi, I have a couple of questions getting drive information from a PC. I am using the system.io.getlogicaldrive command to get drives in a PC. What i want is to be able to differentiate between the type of drives - ie, floppy, HD, CD, etc. Also, i want to be able to determine which drive is the system or OS drive. Thanks! Josh not really. The best way to do this is using the .NET way/classes. the application will no doubt run on Windows however the question is how to get the drive which contains/has Windows installed, and that way is to use the Environment.SystemDirectory which gets the system directory which Windows is installed in ...Show All

  • Visual Studio Team System Check-in of a big file problem

    Hi, Sometimes when I perform a check-in of a big file (size > 3 Mb) I get the following erron in Team Explorer "Error. <file path>: Unable to write data to the transport connection. An existing connection was forcibly closed by the remote host". If I keep trying I am able to check-in the big file. Here are some messages from Event Log on the TFS server: ---------------------------------------------------------------------- Event Type: Warning Event Source: ASP.NET 2.0.50727.0 Event Category: Web Event Event ID: 1309 Date: 2/7/2007 Time: 6:38:06 AM User: N/A Computer: TFSDEV01 Description: Event code: 3001 Event message: The ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. How to display chinese character

    I have already read http://blogs.msdn.com/garykac/articles/732007.aspx .But that solution is useless to display chinese character because there are 6000 more characters in GB2312 character set,far more than A-Z in english.We can not create a texture to hold all characters.It's too large. Is there a easy way to display chinese character I posted a short example of this a few minutes ago, here . :) ...Show All

  • Visual Studio 2008 (Pre-release) .ForEach on Dlinq objects and Linq CTPs

    In future version of LINQ will I be able to do a .ForEach directly on the Dlinq objects For example: var batches = from b in this.m_Database.Batches where b.EndTime == null select b; batches.ForEach(b => b.EndTime = DateTime.Now); Also will there be any other CTPs of Linq for Visual Studio 2005, or will I have to download the entire Orcas CTP if I want to use the newest features Thanks. Also will we be able to .ForEach on a query For example: List<string> test = new List<string>(); test.Where(s => s.Contains("LINQ")).Select(s => s).ForEach(s => s.ToLower()); ...Show All

  • Visual Studio Team System Server name in Changeset.aspx

    I changed the name of my TFS server in all sorts of places, but there is one left which I can't figure out. When I get an alert email that something new was checked in, I get an email with a link to the changeset. It ends with /VersionControl/Changeset.aspx artifactMoniker=16&webView=true. In there is a reference to a XSL stylesheet, but that reference is using the old, original server name. How can I update that one as well Thanks, David Jeff, I am afraid I didn't explain myself clearly. I changed the server name of our TFS server with the activateat from tfs01 to tfs01.mycompany.com. I also changed the TFSNameUrl and the TFSUrlPublic in the web.config in the Web Service directory. But ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Collision Detection in 2D?

    I am trying to make an event where if two 2D sprites collide with each other. like this... if (sprite1 and sprite2 collide) } //Event } You could: a) give each sprite a collision Rectangle and test whether those two rectangles intersect. You could extend this by giving each sprite multiple Rectangles and testing whether any of them intersect. b) use circles instead of rectangles above. c) do pixel-perfect collision (I'm not sure how this is done but some have done it in XNA pretty easily I think). Probably worth checking out how Gary Kacmarcik did it in XNAExtras here. Maybe if you don't even want to write your own then that link will help you out a lot ;) You could have your collision test function as part of a separa ...Show All

  • SQL Server SQL Server 2005 Install fails on Vista

    During the install, I get the following message: Setup has detected a problem with Microsoft .Net Framework installation and cannot proceed. Microsoft .Net Framework 2.0 is either not installed on this system or is corrupt. I cannot uninstall 2.0, as its part of the Vista. I have tried repairing it. I tried downloading 2.0 and installing it, but it says that its allready installed. I was able to install Visual Studio with Sql Server 2005 express. I am stuck. Is the case that Sql install dosent know about the latest version of 2.0 that came with vista Only one log file named "summary'. There is also a log directory with several files for each attempt to install (23 so far). let me know if add'l are needed. ...Show All

  • Smart Device Development how to sync only a portion of sql mobile with sql server 2005

    I want to use active sync to sync only 3 tables on my PDA with sql server 2005 and visa versa. Can someone please help me to accomplish this Thanks, DD It depends on how you want to sync them. If you use Merge Replication then when you crete the Publication on SQL Server you only select the 3 tables that you want to transfer. That's it. Were you looking at some other way Dan Fergus ...Show All

  • Smart Device Development Audio Capturing

    Hi, I'm developing smart device applications by using CF 1.0/2.0. I have a question about recording. The question is "How to capture the audio . for eg. I play the audio/video file using WM player on the Pocket PC device. I want to record that audio voice in the audio format as you want programmatically". Please send your suggestion or links. Thanx. M. GANESAN You'd need to P/Invoke waveIn* API: http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnnetcomp/html/PInvokeLib.asp ...Show All

  • Visual Studio Express Editions Transfer MP3 Files

    How do i create a program that can transfer music files from drive C:\ to E:\ Also if that didn't work could i still copy and paste the music files to another drive if so how Could i have Sample codes please. use the System.IO.File.Copy() class to copy from source to destination. System.IO.File.Copy( sourcePath, destination ) and thats it! you can get a list of files to copy from a root drive for example then copy each one: Dim theFiles() as String = System.IO.Directory.GetFiles( sourcePath , "*.mp3 ") for each currentFile as String in theFiles System.IO.File.Copy(currentFile, destinationPath ) next this would copy all the mp3 files it has found from the source path and copy them to the d ...Show All

  • Visual Studio ReportViewer & Master Pages -- strange behavior

    I have a very simple Table based Local Report that passes two parameters - FromDate and ToDate. Every thing works fine in a normal .aspx page, but when I put the ReportViewer in a Master page, the parameters are not passed or not recognized. Very Strange. Is there a known issue regarding ReportViewer and Master Pages Thanks! I have tried using master pages with the ReportViewer control and have not seen any issues. Can you post a simple master page and aspx page that reproduces the problem so that I can narrow down the cause ...Show All

©2008 Software Development Network