Tianyu Li's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Grr, my game wont play, WTF!!!
its coded right, but ist says this, for game.run(); "Could not find a Direct3D device that has a Direct3D9-level driver and supports pixel shader 1.1 or greater." what the hell does that mean, and what do i do about it NVIDI RIVA TNT2 Model64 if this is to low, can i get a driver for it, to work, or make the game run on a lower level, lowering the game graphics would probably work best, if it is possible at all, i just want it do SOMETHING, ya know ...Show All
Visual Studio Team System Error 28925. TFServerStatusValidator:Calling the Team Foundation Server ServerStatus Web service failed.
I followed the .chm file to the letter installing Team Foundation Server RC on Windows Server 2003 Standard Edition using Domain user accounts specified and running all the windows updates and installing all the patches. But I get this error. Error 28925. TFServerStatusValidator:Calling the Team Foundation Server ServerStatus Web service failed. I had two warnings come up about memory requirements before installing but that was all. I'm running this as a VM on my local machine and it's connected to the DOMAIN I'm working in. Any ideas [02/22/06,20:52:26] Microsoft Visual Studio 2005 Team Foundation Server - ENU: Install(): bAttemptInstall: 1 [02/22/06,20:52:26] Setup.exe: GetGlobalCustomProperty({710A502B-4669-405C-A985-BA21545509BA}) [02 ...Show All
Visual Studio 2008 (Pre-release) WPF Bug or What????
While debugging throught WPF (NO COM) I am running into this again and again. I had posted this earlier too but nobody responded back. Just wanted to know where exactly is COM coming into play. Since we are aiming for production release of our app too, wanna make sure where exactly the things are going sour. Managed Debugging Assistant 'ContextSwitchDeadlock' has detected a problem in 'C:\XYZ..\bin\Debug\NoGen.Sandbox.WPF.vshost.exe'. Additional Information: The CLR has been unable to transition from COM context 0x1a1598 to COM context 0x1a1708 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows m ...Show All
.NET Development WriteXML pbm
hi, I'm facing a strange pbm while converting excel file to xml. If excel file has decimal datas, then some of the decimal datas will be appeared in converted xml file as shown below < xml version="1.0" standalone="yes" > <NewDataSet> <Attendance> <Mas>M</Mas> <CustG>X</CustG> <PT>0</PT> <R1>11</R1> <R2>20</R2> </Attendance> <Attendance> <Mas>M</Mas> <CustG>X</CustG> <PT>1</PT> <R1>10.8</R1> <R2>10.9</R2> </Attendance> <Attendance> <Mas>M</Mas> <CustG>X</CustG> <PT>2</PT> <R1>10.6&l ...Show All
SQL Server Totals on last page only - How?
Just started (today) using RS2005. Me and my Brian Larson MS RS2005 book. Can't figure out how to get my Grand totals to ONLY print on the last page of my report. They are calculating correctly, but printing on every page. I guess I wouldn't mind if the totals were page specific, but it's not even doing that... Thanks!! Hi I have a table with grand totals in the footer of the table, to print the grand totals on the last page I set the Repeatfooteronnewpage to False. ...Show All
SQL Server Object Explorer/Server Explorer Error
I have just installed the released VS2005 as well as the released SQL2005. When ever I try to browse my SQL Server with either the Object Explorer in MS SQL Server Management Studio or the Server Explorer in VS2005 I get the following error: Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.VisualStudio.OLE.Interop.IServiceProvider'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{6D5140C1-7436-11CE-8034-00AA006009FA}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). Does any one have possible solutions for me Any help would be greatly appreciated. --Nick ...Show All
Visual Studio Code generation based on checked nodes within a treeview.
All WizardPages I have seen as examples use textboxes from which GAT extracts argument values, although I need a different approach. In a WizardPage I have a treeview with dynamic filled items. I would like to create class files for every item that has been selected. Later on I also want to create class properties for every sub-item that has been selected. Lets only tacle the class generation, and so take a list of animals as an example: -Cat -Mouse -Horse -.... In the Wizard, the user can select one or more items by using checkboxes. So if they select a Cat and Horse it would generate the classes: Class Cat { // Todo: Code to write manually } and Class Mouse { // Todo: Code to write manually } -- Is it possible to create a class file ...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
SQL Server EXAM 70-431: Anyone planning for it?
I would like to collaborate with others who are taking the exam or who took it ... advices, sample exams, study guides, hints etc. Reply and share email etc. I think it is possible. I'm currently studying for one of the MCITP developer exams which I will do at the end of this month. I never really followed a course and I allready passed a few exams. The best thing to do is to read the book and then practice a lot. Greetz, Geert Geert Verhoeven Consultant @ Ausy Belgium My Personal Blog ...Show All
Software Development for Windows Vista Disable File&Registry Virtualization - for my application
Hello, I want to know if there is a way to disable the File&Registry Virtualization for my application. I want to get ACCESS DENIED error instead of success but written in some where else in the hard disk. Is there a way (API or something) to do that Thanks. I would advise AGAINST turning off the virtualization policy for the system in an app you're distributing to other people; if you do, you will probably impede the function of legacy apps on the machine which need things like registry and filesystem virtualization. Use a manifest. As far as turning virtualization off, it's a policy under System: 'EnableVirtualization'. It's exposed through secpol.msc if you ...Show All
Visual Studio 2008 (Pre-release) Message security and Windows credentials
I'm having trouble trying to get Message security to work with Windows credentials. I have a WCF service hosted in an ASP.NET web app and the bindings are configured as follows: < bindings > < wsHttpBinding > < binding name = " myBindingConfig " > < security mode = " Message " > < message clientCredentialType = " Windows " /> </ security > </ binding > </ wsHttpBinding > However, when I call the service from a client and I try to obtain the identity of the caller using: Thread.CurrentPrincipal.Identity.Name I get an emtry string. Furthermore, the value of the CurrentPrincipal.IsAuthenticated property is False . What am ...Show All
Software Development for Windows Vista UAC Shield in menus?
Thankfully there's an easy way to add the UAC shield to buttons by using BCM_SETSHIELD. I wonder though - is there a similar option for menus somewhere The docs say that context menus are supported via DefCM but I'm really looking to add the shield icon to a generic popup menu. Can I do this without ownerdrawing it -Marton '98 or 2000 is not really the issue here. You still need to ownerdraw your bitmaps if you want the icons to look good. Contrary to what's been suggested here, transparency does not really work. (Try saving a bitmap with alpha channel and the LoadBitmap-ing it, then setting it as the hbmpItem.) Unless I am missing something and you need to use some extra-special bitmap format here. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Enlarge a object from a .x file
Hello! I am having a .x file that I use to load a Mesh. At run-time, the object is very small. I f run with the file with DirectX Viewer, the size is OK. I am using this method to load a mesh : private void LoadMesh( string filename, ref Mesh mesh, ref Material [] meshmaterials, ref Texture [] meshtextures, ref float meshradius) { ExtendedMaterial [] materialarray; mesh = Mesh .FromFile(filename, MeshFlags .Managed, device, out materialarray); if ((materialarray != null ) && (materialarray.Length > 0)) { meshmaterials = new Material [materialarray.Length]; meshtextures = new Texture [materialarray.Length]; for ( int i = 0; i < materialarray.Length; i++ ...Show All
.NET Development Transmission of microphone data
I need to listen to a microphone in a client application with .NET Compact Framework and c#, send data to a server that process this samples. At the same time, the server should put datas that the client application read and play. Can somebody help me finding hints/examples or anything helpful Thanks Dave ...Show All
Visual Basic Odd behavior on enter key twice
Converting a program from VS03 to VS05 professional using VB... If you put your cursor after a line of existing code, and hit enter twice, it should just add a blank line and then you paste and then you paste new code and you get a line between your pasted new code and the existing code. In VS05, however, it does that and often highlights the last word of existing code so when you paste, you have messed up your code. This is an odd behavior that did not exist in VS03 and it very annoying. The behavior does not existing in any other program (like Word), so it is a VS05 specific issue. Is it a known bug or does anyone have any ideas Thanks! Bob Hi, Bob, I just gave this a try and I'm not able to reproduce the prob ...Show All
