axg70's Q&A profile
.NET Development Reading XMLWriter with XMLReader
Hiya everyone, Quick query for you: I have the following code generating an XML file. ' Write XML data. writer.WriteStartElement( "university" ) writer.WriteAttributeString( "name" , txtName.Text) writer.WriteElementString( "address" , txtAddress.Text) writer.WriteEndElement() writer.Flush() writer.Close() Which gives an output like the following: < xml version="1.0" encoding="utf-8" > <university name="Swinburne"> <address>http://allocate.swin.edu.au/aplus/apstudent</address> </university> It would follow then (to me) that you would read this document back in as follows: ' Read XML data. reader.ReadStartElement( "university" ) tempName = reader.GetAttribute( "name" ) tempA ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Minimizing and Maximizing
I have my application set to use the full screen. If I hit alt tab, go into another app, then alt+tab back into my game, it's solid gray, and then locks up. I wrote some simple code to check the keyboard state, and close the app if I hit escape, but that doesn't even work. I just assumed that this would all be handled for me, out of the box... Do I have to write anything myself to fix this Yeah, I am not at home at the moment, but I will show my code, it's pretty simple... I'm only drawing a few sprites onto the screen. ...Show All
.NET Development simple xml parsing - need help
Guys, fixed the problem...please ignore the post thanks Reader.Value will not return you the right element content. Value always returns an empty string if called on the element nodes. You should use ReadString() method on the reader. Reference with code sample is at: http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemxmlxmlreaderclassreadstringtopic.asp ...Show All
Smart Device Development How to update SQL Server Mobile database from DataSet object
I have a DataSet object, created like this: DataSet NamesSet = new DataSet (); NamesSet.ReadXml(cNames); NamesSet.DataSetName = "NamesDataSet" ; Where cNames is the xml file created in another application. Now I need to transfer its contents to SQL Server Mobile database: updating existing rows, inserting new rows and deleting those records in database, which id's aren't in xml file. Is it possible Though, I'll be very glad to know how to update only. Something like this should do (connection and command set up skipped, look for sample on MSDN in needed): SqlCeDataAdapter da = new SqlCeDataAdapter(...); da.Update(NamesSet , "TableNameToUpdateHer ...Show All
SQL Server Activation not working
Hi There Everything works 100% until i activate my sp. I specify to execute as 'dbo' in the alter queue statement. I also define the activated sp to execute as 'dbo'. But i keep getting permission errors from my activated sp. i have tried to excute as 'sa' , i have even tried to write a job that excutes to stored procedure but it also get weird errors. Bottom line if i exceute the sp in management studio logged in as sa it works , but thorugh activation or a job nothing works, as 'dbo' or 'sa'. Thanx The safest option is code signing (as in the exaple in my link ). Getting code siging righ is really hard, so if you can get away with trustworthy bit, is much more easier. sysadmin is no ...Show All
Internet Explorer Development Icon in the address bar
does anyone know what i can do to get an icon to show up in the address bar beside my website instead of the ie icon much appreciated Wayne Hello, I tried put that in my main SharePoint Portal page, and the icon didn't show up. Did I missing some step. I have the xxxxx.ico in the http://xxxxxx.xxxxxxx.com level and hav it link to it just the instruction stated (in the Header tag). When I put http://xxxxxx.xxxxxxx.com/xxxxx.ico try to see if I can see the icon and i saw a red X image. The icon is fine showing in the regular file folder. Any help I appreciate it. Thanks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Capturing microphone in Managed DirectX 10 (2.0.0.0)
Hi all, I was wondering if anyone has been able to record microphone input with managed directx 10 (i'm using c# but any language will help!). Previously it was done in DirectSound, using a CaptureBuffer and an elusive "Read()" function (now missing in 2.0.0.0). I have read a number of times that DirectSound is to be replaced by Xact but it's strange that everything I need to record sounds is available except this Read() function.. So my question is, is this now done through Xact or still through CaptureBuffer but without the use of Read(). If it's done via Xact, does anyone have any good tutorials on recording through Xact (i have searched, but haven't found anything at all yet) If it's done via the CaptureBuffer still, does an ...Show All
Visual Studio Team System Differences between Visual Studio 2005 and
Hi. Could you tell me what are the diferences between Visual Studio Team and Visual Studio 2005 Thanks in advance. Jose Manuel. The difference betwen Visual Studio 2005 and Team System, Team System is a repository for your projects, where you can manage all history, version control, Tasks, bugs, base lines, and you can cotrol all yours project under process template(Methodology), with Source Control Explorer and Team Explorer. With Team System and SQL (Reporting Services) you can create reports about the perfonce from your projects and with WSS you be able to create a Sharepoint Site from your project. Regards, ...Show All
Windows Forms OTP: windows login
Hello, is there any other means of authentication for the windows login... like inserting a compact flash or flopy. i am looking for a hardware input solution to windows login authentication. This forum is for questions on programming windows Forms. Hardware based questions are off topic. However, a Microsoft finger print reader can be used to log in, so long as your PC does not participate in a network ( which tells you how secure they are ). My notebook asks me if I want to use a smart key when I log in ( I have no idea what that is, try google ). ...Show All
Visual C# video component
I am doing a windows form application in C# and I am searching for a FREE component in which you can play, pause, stop the video AND manipulate the video input, and produce a video output. I want to be able to control/change any pixel in each frame of the video. Can you tell me where to search for such a component or point me to one The video is already in raw YUV format, but it would be nice if you the component can convert the video format (this is not primary). To understand better, I need something like the System.Drawing.Graphics class, in which you can manipulate the pixels, but I need it for each frame in a video. Maybe an alternative is to use the Graphics class and just to convert each frame in a video to a Graphics obj ...Show All
Visual C# How to populate xml file
Hi, I am new to populate xml file. My xml configuration file is as follow: <% @ Page Language ="C#" AutoEventWireup ="true" CodeFile ="MainTreeView.aspx.cs" Inherits ="MainTreeView" %> < html > < body > < form id ="frmReport" runat ="server"> < asp : TreeView id ="ReportTreeView" runat ="server"> < Nodes > < asp : TreeNode Value ="Report" NavigateUrl ="main.aspx" Text ="Report" Target ="Content" Expanded ="True"> < asp : TreeNode Value ="EOW" Text =&quo ...Show All
Visual Studio Tools for Office Retrieving attached template in a Word Template project
Hi, I have a created a VSTO Word Template Project using a template "WordTemplate.dot". I will be creating several (9-12) .dot templates which will have very similar functionality so I have decided to use a single code-behind assembly and attach it to each .dot template at deploy time (by adding customization via ServerDocument) rather than creating a separate VSTO Word Template project for each template. However, in my code-behind I need to determine what the currently attached template is so that I can display the appropriate form. I have tried using the this.AttachedTemplate property but it returns a Template object for "Normal.dot" rather than for "WordTemplate.dot". I have also tried iterating through the ...Show All
SQL Server From Sql Column to file, OPENROWSET?
Hi There I am using OPENROWSET to import a file from disk to a varbinary(max) column in sql server. However as far as i can see OPENROWSET is only to import into Sql Server. However i need to reverse this as well, by that i mean export a varbinary(max) column data to a file on disk. How can i do this (The file is a compress text file). How does this work for file types, i mean you can import any file as binary but when you export it back to disk will the file typr still work, will a .xls or a.exe imprted and exported like this still function 100%. Thanx Thanx for the feedback Let me elaborate. This is at a distributed site running SQL Express and only Sql express(No ssis avalable). There ...Show All
.NET Development converting output from transformNode to byte array
Hello, Can someone tell me why solution 1 works, but solution 2 does NOT work; it results in truncated data. There has to be an easier way than soution 1. The goal is to get the string output from transformNode into a byte array. Thanks. Solution 1 (works, but seems like a round about way): Dim ReportDef() As Byte Dim ReportStr As String ReportStr = dom.transformNode(xsl) Using sw As StreamWriter = New StreamWriter( "c:\temp\TestOut.xml" ) sw.Write(ReportStr) sw.Close() End Using Dim Stream As System.IO.FileStream Stream = System.IO.File.OpenRead( "c:/temp/TestOut.xml" ) ReDim ReportDef(Stream.Length) Stream.Read(ReportDef, 0, Stream.Length) Stream.Cl ...Show All
Software Development for Windows Vista MSDTC error : Import of MSDTC transaction failed: Result Code = 0x8004d00e.
Hi everyone! I suppose you've allready heard of this error, I've searched for answers on many other forums and groups but I didn't find a clear answer. So, for something to begin with - I am working on a VB 6.0 - 3 layered application and I get the error when the business layer is trying to persist some data. The broplem is that the transaction is not persisted - the application hungs and returns the "server busy" error. The wole application is blocked after this - when trying to save some data i keep getting this error. The persistent objects MTS transaction mode is set to "Requires transaction" and the component security levels are set to process level, the authentication level is None, and the ...Show All
