jschroeder's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Playing SpaceWars without 2 Xbox Controllers!
I ran out and bought a $40 XBox 360 controller so I play the starter kit demo only to find out it requires 2 players! ! ! arggh. I do I get it going with the 1-controller I don't care if Player2 just stands there. I want to mess with this thing. I just can't bring myself to buy another $40 controller just press the 'Start' button a couple of times. Back when Beta I was out, I didn't have any Xbox 360 USB controllers. So I found my own solution. Turns out there were some pre-processor directives. I can't remember specifically, but I believe there were a bunch of "#ifdef/#endif", and in-between there was code for keyboard support. I believe the #define that defined some debug-Whatnot was commented out. All I did was uncomm ...Show All
Visual Studio Dynamic Requests Issue
Hi, We have a problem with reports using dynamic requests. These reports have beeen made by another team. These dynamic requests are multiline, for example : ="SELECT FirstName, LastName, Title FROM Employee" & IIf(Parameters!Department.Value = 0, ""," WHERE (DepartmentID = " & Parameters!Department.Value & ")") & " ORDER BY LastName" ...instead of... ="SELECT FirstName, LastName, Title FROM Employee" & IIf(Parameters!Department.Value = 0,""," WHERE (DepartmentID = " & Parameters!Department.Value & ")") & " ORDER BY LastName" This does not compile with our workstations (we have SQL Server 2000 (the client only), Studio .NET 2003, and Reporting Services installed separatly because it was not with the CSL Serv ...Show All
SQL Server Error 15401 Adding Domain Group to SQL Server
I have tried rebooting the system, I have ran the script to look for duplicate sids and am still having the issue when trying to add a domain group to SQL. I get the Error 15401: Windows NT user or group'mi\Trust Legal' not found. Check the name again. Running SQL 2000 Std, with SP3a, and the collation is set to SQL_Latin1_General_CP850_BIN, which makes this instance case sensitive, and the group name is spelt right and am following the case sensitivity of the name as well. This is most likely an issue due to using a different casing. You could use a tool like sid2name, to obtain the correct casing of the group name from Windows. Then use that same casing and the statement should succeed. You might want to quickly try and capitalize ...Show All
SQL Server Checkbox
Hi, In the reports tollbox there is no Checkbox control,In my report i want to add the checkboc control,How to add checkboc control to the toolbox. Please help me. Thanks in advance Maybe use multivalue parameter with list of available report columns Every value have embedded checkbox and you can add default value "show all" or something like that. Maciej ...Show All
Visual C# documentcomplete event
I've got a really weird problem with my application; it works on some pc's, and it doesn't on some others. What I've got: A Visual C# 2005 console application with references to MSHTML and SHDOCVW. I use mshtml to get a list of currently open browser windows, and attach events to it to edit the list when a new browser window is created or closed. I attach a documentComplete event to each open browser window and handle it the event there (let's say it prints out the url where is navigated to). So when I run this program, it should detect when I open a new browser window, when I close one, and it should print out the url of a site when it is done loading it. And there's my problem. On a few pc's, it all works perfectly. But o ...Show All
Game Technologies: DirectX, XNA, XACT, etc. xnagse_setup.msi while install i got error message:
There is a problem with this Windows Installer pachage. A Program run as part of ... the status of the setup is "Installing Direct X Redist" I have : - Install and register C#2005 - Restart PC - look for help in other threads - Redownload the setup msi i found the same problem here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=407146&SiteID=1 but the usefull answers dont work .. WinXP Pro SP2 c# is english ... the main menu is english bute content of them is german ! but it must be english because the installer and downloadpage was english - but i have downloaded first VB.net and this is german ! My useraccount is member of Administrators with the ...Show All
Software Development for Windows Vista How to prevent Explorer to open the "Prepare this disc" dialog
Hello, I'm working on a tool to mount arbitrary sessions on a multi session disc. It works fine on W2k and XP. On Vista, it also works fine, as long I issue my mount commands via a command line application. Using a shell extension on Vista with a recorder device, quite frequently causes Explorer to open the "Prepare this disc" dialog. Clicking Next and confirming disc preparation usually damages the media. Question: How to avoid Explorer from opening this dialog Hello Garret, thanks for your reply. I tested the IOCTL, but without success: The format dialog still appears quite frequent. DeviceIoControl(STORAGE_MCN_CONTROL) returns 1. It seems to be a timing issue: My sequence of IOCTLs to execute ...Show All
SQL Server Default constraints
Hello I have about 40 tables where I need to increase the size of the admission number field from smallint to Int . The field used the tables' primary key or part of the key. I am a programmer, but fairly new to SQL Server. I have written some scripts to remove the defaults and primary key constraints off of this field in each table, do the field resize and then put the constraints back on. The scripts get the names and settings of the constraints from system tables before the constraints are dropped, so that they can be reapplied after the field size change. Is this the best way to do it Or should I be looking at a DTS package I would be grateful for your advice Shirley To me (unless you have a database design tool) ...Show All
Visual C# Typing in Visual Studio 2005 Text Editor is extremely slow
Has anyone else noticed that typing in Visual Studio 2005 is extremely slow Whey I type it seems that the screen is always 2 words behind where my hands are. It makes it extremely frustrating to get anything done. I'm mainly referring to C# code. It seems like Intellisense is going nuts trying to guess every word I'm going to type and never actually prints the characters to the screen. Has anyone else experienced this Is there an option I can turn off to get my text editor back ! By the way, I have a very fast computer with Dual 3.0 GHz Zeons with 3GB memory and everything else that should make "typing" very fast. Sub ToggleCSharpNavigationBar()   ...Show All
Visual Studio Team System Using Team Foundation Server with Adobe DreamWeaver
Can someone please let me know if it is possible to use Team Foundation Server with the Adobe Dreamweaver IDE I know there are plugins for Eclipse. I was wondering if there were any for this product. Thanks in advance. Aaron, I'm not aware of an integration for Adobe Dreamweaver. It is something that we (at Teamprise) have considered and have done some basic investigatory work on, but not made any firm plans for. Our company has released Source Control integrations with Dreamwever in the past so understand the problem space pretty well. If you have a requirement for a Dreamweaver plug-in, I suggest you drop a line to support@teamprise.com and let them know - feedback from customers regarding a potential ...Show All
SQL Server Incorrect PageAudit Property
Hello, after a fatal server crash (with no backups!!) I have tried to re-attach a database but I get the following message; " Msg 5172, Level 16, State 15, Line 1 The header for file 'E:\Database.mdf' is not a valid database file header. The PageAudit property is incorrect." The database files ( both mdf & ldf ) where recovered from a file system copy which was made while SQL Server 2005 was still running. The files where copied with Symantec Backup Exec (10d). Is there any way that the database can be recovered from these files (I have tried a few 3rd party tools ie, Apex SQL Log & Recovery for SQL Server, but none of these where successful ) Would Miscorsoft Product Support be able to recover any dat ...Show All
.NET Development Getting wrong path from Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location
Hi I am getting wrong location for my file. My file is at different loaction but "Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location" always returning "C:\Windows\System32" path. But it runs ok on other machines. What could be the reason for getting system32 path instead of actual file path. The file is running as windows service. Thanks SAnjivani Hi, As you said, it runs ok on other machines, then are you sure that on other machines it is being used same way in Windows Service Because AFAIK, windows service will return this path only, so use AppDomain.CurrentDomain.BaseDirectory this will give you installation folder path and this way you can han ...Show All
Windows Forms WebBrowser control freezing up
I have created a windows forms application containing a WebBrowser control. One of the pages that is loaded by the control contains a Windows Media Player ActiveX object. The movie that is being played in a 500MB mpg and it is set to loop indefinately. After it has been in use for a few hours, the application locks up and must be killed with task manager. This issue is not seen if I access the pages in IE, only if I use the WebBrowser control. I believe this is a memory issue and would like to be able to free the memory used by media player when the page is navigated away from. If anyone has any suggestions or help, it would be appreciated. Mike Thanks for the response. The video is a 10 minut ...Show All
Visual Studio 2008 (Pre-release) Border around Grid Panel
I'd like to add a border to a grid panel, but am unsure how this is done. Basically I want the panel to look like a pop up window. Is this just done by brushing the background a specific way Anyone have an example that does this Found an answer to a similar post here. Maybe this is the best way: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1041795&SiteID=1 ...Show All
Game Technologies: DirectX, XNA, XACT, etc. MICROSOFT SOFTWARE LICENSE TERMS
· use the software for commercial software hosting services hey we have byed a web site hosting sulution from commercial hosting services and we are gonna make some tuts and starter kids is the the good bye to all the commity tuts you can download on the net and games we are allso planed to let users download out starter kids GarageGames is doing some ileagly they are commercial company Scope of License. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In ...Show All
