GraemeH's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Keyboard/Mouse Input under XNA Framework
From my reading, my understanding is that XNA Framework will use XINPUT. By design, XINPUT handles game controllers specifically and does not address keyboards, mice, or other HID devices. AFAIAA, current guidance given for DirectInput to XINPUT transition on the Windows platform is to handle keyboard and mouse input via traditional Windows messages or System.Windows.Forms events. However, we are now being advised that cross-platform application implementations built on XNA Framework will need to refrain from referencing the System.Windows.Forms namespace, and that ideally our application window will be managed by GraphicsComponent. Furthermore, on the 360, there would likely not be any Windows message stream from which to handle input fro ...Show All
Visual Studio Tools for Office Email Address of the Current User
Hi, How can I get the Email Address of the Login User from Outlook. The Me.Session.CurrentUser.address return a lot of additional data, what I want is just the Email Address. Thanks. Andy Ho Hi Mike, It seems that the code snippet u have put could be of my help in my scenarios. Can you let me know, how to use ur code in the InfoPath 2003 forms to get the current user and his Manager's name and email IDs from the Exchange Server. I need to display them on an InfoPath 2003 form. Thanx for any help. ...Show All
Windows Forms DataGridView - BindingSource - Cell/Row Style
I am using Visual Studio .NET 2005 I have a DataGridView control in which columns are created manually for greater flexibility. Essentially the DataGridView.DataSource property is set to the BindingSource object. From there, the BindingSource object is bound to an ArrayList - which allows me to update the ArrayList with objects; and simply calling BindingSource.ResetBindings() allows the DataGridView to be updated as well. However I have recently found about the DataGridViewRow.DataBoundItem() method which allows me to identify/retrieve the underlying object corresponding to the data-row. Therefore change to my previous design model is likely inevitable. But the problem I still can't seem to solve is modifying the style of the row ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Tiny Tennis Project Files
Okay I am currently just trying to go through the Coding4Fun tutorial on Tiny Tennis. Problem is, I can't even find the project files im supposed to add... where are they exactly Thought they were supposed to be with the download of XNA or am I wrong Frustrating that I am already off to a bad start. The source code did help. But there also seems to be some files no included. Either that or they are called something different... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Vertex Shaders without Pixel Shaders
Sadly, XNA Beta 2 does not let you use vertex shaders without pixel shaders... If you are targetting GF2, GF4MX or Radeon 7xxx old hardware, here is a workaround: bool [ ] verifiedCanDraw ; fi = device.GetType ( ).GetField ( "_verifiedCanDraw" , BindingFlags.NonPublic | BindingFlags.Instance ); verifiedCanDraw = ( bool [ ] ) ( ( fi.GetValue ( device ) ) ); for ( int i = 0 ; i < verifiedCanDraw.Length ; i++ ) { verifiedCanDraw [ i ] = true; } Will XNA users get a fix for this Even if we removed checking for pixel shaders being set, XNA would not work correctly on cards without pixel shaders. All of our graphics API is based around shaders. Our Sprite ...Show All
Visual Studio Language Filter
Just installed the latest (May) MSDN Library for VS 2005 and the language filter is not being persisted across page views. I saw another post here that said it was a known problem in Beta 2 but would be fixed. Whats the status of it of I am missing something. Thanks Donal You're not the only one. I am using the same Document Explorer but using online documentation, and my Language Filter is not persisting. I keep filtering to just C#, but as soon as I jump to a different document, I lose my setting and have to wade through the menu again. ...Show All
Visual Studio Team System Rule 'InterfacePascalCase' doies not have an XML description present
Hi everybody, I have the same problem. But I don't understand my mistake. Here you are my code (I know it's not a beautiful code but it's just a test): < xml version = " 1.0 " encoding = " utf-8 " > < rules friendlyname = " SwatRules " > < rule typename = " variablesCamel " category = " Microsoft.Naming " checkid = " variables1 " > < name > variables Camel case </ name > < description > Camel case </ description > < url > http://thespoke.net/blogs/richardc/archive/2006/04/19/953454.aspx </ url > < messagelevel certainty = " 100 " > Error </ messagelevel > < fixcategories > Breaking </ fixcategories > < owner ...Show All
Visual Studio Tools for Office Publishing Outlook Addins -- Does Publish Actually Work with Outlook?
I realize that the pseudo-ClickOnce publish feature cannot deploy an Outlook app because it can't set CAS or create the necessary registry entries. So what can it do, with regard to Outlook addins I envisioned an msi-deployed Outlook addin, with an embedded application manifest that points to a deploy point. The idea is that you run setup once to install your addin, using the "add file" functionality of the setup project to include the application manifest from a previously-published deployment package. The setup program sets CAS and modifies the registry to point to the app manifest. Since the app manifest was actually created with the publish functionality, it actually points to a valid deployment manifest. Later, when ...Show All
Visual Studio Team System Global Lists & Default Values
I am using the Process Template Editor to customise some work items. I have run into a problem with defining Global Lists and Default Values and am not sure whether this is a problem with the PTE or Global Lists. Is it possible to define a default value for a field where the value is tucked away in a Global List My XML for the field wants to be something like: <FIELD name="Priority" refname="Microsoft.VSTS.Common.Priority" type="Integer" reportable="dimension"> <HELPTEXT>Priority for addressing the risk.</HELPTEXT> <REQUIRED /> <ALLOWEDVALUES> <GLOBALLIST name="Priorities" /> </ALLOWEDVALUES> <DEFAULT from=& ...Show All
Visual C++ Trouble using C# class in both managed C++ and C#...help!
I have a managed C++ wrapper class that I am using to access native code. One of the methods in this class returns a type of object that is defined in a C# library. I am able to compile and see all the class. I am having trouble with the crossover between C++ and C# though. When I use this class in the C++ managed class it seems that I have to creat a pointer to this object type. In C# however, I can't have a pointer to this type. I need to be able to get across this barrier. Any suggestion on how I need to declare things in order for this to work Thanks One thing that you should remember, in C#, the fact that you are using pointers is hidden from you. But when you create a class you are actuall ...Show All
Visual Basic Microsoft.Office.Core.dll Location
Hi all, From where shall I get the "Microsoft.Office.Core.dll" . I need "Interop.Microsoft.Office.Core.dll". I am trying to use tlbimp to generate the Interop.Microsoft.Office.Core.dll from the Microsoft.Office.Core.dll. Is that way correct where will Microsoft.Office.Core.dll be located in the system Thanks, Benin. Perhaps - 1. Get a license for Office 2003 and install on the build machine 2. Change the build machine to one which does have a license copy of Office 2003 ...Show All
Visual Studio Tools for Office Features or Bugs in VSTO.
Are these features or bugs I've found two things that there may be a reason for but I can think of none. 1. If you have a form field in a word document project that has a default value in it. You cannot populate that bookmark in code with a bookmarkname.Text = "AAA" line of code. It gives you an error along the lines of "Out of Range" or something like that. 2. If I am trying to populate a data island from code on a web server. I open the the document file with a file stream and then assign it to a "ServerDocument" class as shown below If File.Exists(BlankDocumentPath) = False Then Return ("File " & BlankDocumentPath & " Does not exist") Exit Function ...Show All
.NET Development Get the Disk drive information in vb.net
I want to know the free space, used space in the particular drive of my hard disk by vb.net program. so can anyone help me in this issue sure. in .NET 2.0 there is a DriveInfo class in the System.IO namespace For Each curDrive as DriveInfo in My.Computer.FileSystem.Drives If curDrive.DriveType = DriveType.Fixed Then dim theFreeSpace as long = curDrive.AvailableFreeSpace MessageBox.Show(theFreeSpace.ToString()) End if Next You can of course get the name of the drive using the name property to check to see if it is the drive you are after does this help ...Show All
Visual Studio Tools for Office deploying vsto 2003 excel application
Hi, I am trying to install VSTO 2003 application for excel. I copied all dlls and .xls on user machine and now I am trying to give full trust to folder containing .dll and .xls. I went to .net configuration + runtime security policy + code gourps + All_code now in All_code it does'nt show me office_projects where my .net vsto project should be listed... What should I do / How do I give full trust permission to my dll on user machine On user machine I have following installed.. office 2003 framework 1.1 Do I also need to install vsto runtime Where to get it On microsoft download center I can only see vstor2005 and not vstor 2003... Thanks, ...Show All
.NET Development PageBreak Issue
Hi, I am trying to create an excel xml using xslt and am having an issue with adding certain xml input components after the pagebreak. As an e.g ..here is my input file : <ROWSET> <ROW> <SECURITY_NAME>AUD/USD 07/19/2006 DEUTB-L</SECURITY_NAME> <TRANSACTION_TYPE>BUY FORWARDS</TRANSACTION_TYPE> <TRADE_DATE>06/14</TRADE_DATE> <SHARES>92400</SHARES> <COST>69348.97</COST> <PROCEEDS>68063.23</PROCEEDS> <GAIN_LOSS>-1285.74</GAIN_LOSS> <GPS_TXN_ID_CODE>200606150E1P0001</GPS_TXN_ID_CODE> <REPORT_NAME>CHCLM</REPORT_NAME> <ACCOUNT_CODE>250</ACCOUNT_CODE> <ACCOUNT_NAME>STRATEGIC GLOBAL FUND: P ...Show All
