missle's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Need to learn c# for xna!
Hello everyone, Just a quick question. I'm really excited about xna and running code on my 360. I'm currently working as a c++ programmer and I'd consider myself at an intermediate level, after finishing my degree and a year in industry. I'm currently teaching myself directX 9 and I want to get started on xna but unfortunately I have no knowledge of c#. I've extensive experience with java from college but I consider c++ to be my native language. Anyway to bring my slightly drink fueled rambling to an end, I've learned the only way to get to grips on a programming language is through small projects. In college we never fully implemented a windows GUI, they taught us swing on linux and I've played a bit with swt in eclipse. So for me it seem ...Show All
Windows Forms Getting the graphics object so can measureString()
I am wanting to use the graphics object .MeasureString() method. But i dont want to call it in the paint method. I want to be able to measure how big a string will bein a key pressed event method. Speedie Try: Graphics g = Graphics.FromHwnd(this.Handle) (C#) A couple of pointers: Get the graphics object, use it, dispose of it -- it is not an instance variable in the traditional sense. Don't make a global variable to cache the graphics object in, for instance. Always round UP to the nearest whole number when measuring things that return floating point numbers. HTH ...Show All
SQL Server VIEW
Hi everyone, I do not undestand why we specify the owner of the table while creating views from different databases. So would anyonee please explain why we specify the owner CREATE VIEW parcal AS SELECT pub_id FROM pubs.dbo.titles UNION SELECT orderID FROM Northwind.dbo.orders It is also better to specify schema qualified or fully-qualified objects to get better plan reuse. See the whitepaper below for more details: http://www.microsoft.com/technet/prodtechnol/sql/2005/recomp.mspx ...Show All
Visual Studio Team System Trying to add a new user to TFS Licensed users
Hi all, I am trying to add a new user to my TFS environment. The user is in AD and can log into the domain so I am pretty sure this is not an account issue. When I go to add the user to the group and search on his name TFS returns no results, when I drill down in to the AD I do not see the OU the user is in. I see what appears to be a cached version of AD. So my questions is does TFS cache the AD information (which I think it does), and if so how do we clear that cache. I have checked the other DC's and it appears that replication is not an issue. Thanks. ...Show All
SQL Server How to simulate Nothing from a deep link
Hello- I'm working on an app that will create an HTTP connection to the SSRS server to gather a PDF generated by SSRS and place it on the LAN. looks something like this : http://server/ReportServer %2fDEV%2frpt_Sheet&rs%3aCommand=Render&rc:Toolbar=false&userID=NULL&StoreID=23&rs:Format=PDF We have a few reports where 1 or more parameters can be null, but I'm having one heck of a time trying get this to work with a null value. Does anyone know what value is actually passed to SSRS when a parameter is NULL I have tried Nothing, but to no avail. Thanks in adavance, Tristan Do not include that parameter in the link and set its default value as null or send some ...Show All
SQL Server How to restore SQL 2000 DB to SQL 2005
Hi, All I am trying to restore SQL 2000 DB into SQL 2005 Database. I backup the database from SQL 2000. From Management Suit, I try to restore database but I can not see network drive from there even though SQL serveris running under network account. I could see network drive from SQL 2000 or at least I can type path to find backup file. However I can not do this.. My Q is: 1. How can I restore this SQL 2000 db to SQL 2005 using network path 2. Since backup is SQL 2000 database, when I restore into SQL 2005, does restore upgrade system tables and other schema to SQL 2005 as well If not, what is the best practice to upgrade this database into SQL 2005 Upgrading SQL 2000 current server to SQL 2005 is not an option at this point. Eventually p ...Show All
SQL Server Cannot Reference and SUM fields from Table Group in Footer Expression!
I'm gonna try this again, Microsoft, Please help! There has to be a solution for this!!!! How can I get around the limitation in SSRS 2005 of being able to SUM on a Table's Group field from my group footer expression! Keep in mind, I'm talking about a table here, not the global Report Footer, a Table object's footer! It's driving me nuts My table footer GrossGoal_gt 's field expression (non of these work and throw the error below): =SUM(Fields!GrossGoal1.Value, "CustomerNumber_Grp" ) neither does this: =RunningValue(ReportItems!ProjFee_AZ.Value, Sum , "CustomerNumber_Grp" ) neither does this: =SUM(ReportItems!GrossGoal1.Value, "CustomerNumber_Grp" ...Show All
SQL Server Simple Problem
Hi, I'm trying to export all data from a table into a file: bcp [PL_T] . [dbo] . [Users] out "Users.dat" - T - c However, I get this message when I run the code: Msg 102, Level 15, State 1, Line 1 Incorrect syntax near '.'. I can't see where I'm going wrong here. The way I'm doing it is straight out of the M$ docs. Thanks ...Show All
Windows Forms destributing .NET applications
Hello, I would like to redistribute .NET applications without installing net framework on the target computer. I've heard that there are programs like thinstall and xenocode that allow to do that. Are there any other programs like them recommended and preferred to use the .NET Framework to be installed on the machine or it should at least have it. creating a VS setup and deployment project will automatically install the required .NET Framework version and then install your APP - its the best way otherwise without the .NET Framework you can't run your .NET Developed application, as you may already know. for safety and for "future proof" - best recommended to install the proper .NET Framework v ...Show All
SQL Server Logical fragmentation
Hi: when does a table not show any Logical fragmentation 1). Is it possible if the table has only non-clustered indexes and no clustered indexes, it wont show any logical fragmentation at all or shows less logical fragmentation . Also what is the difference between logical fragmentation and Physical fragmentation of a index .Is there actually something like a physical fragmentation for a index Thanks AK Logical fragmentation only applies to indexes (clustered or non-clustered). If the physical location of key orders from leaf level of an index is the same as physcial page order in the database files, then logical fragmentation is 0. You can find more information in Book Online from DBCC SHO ...Show All
Visual C# System.AccessViolationException: Attempted to read or write protected memory
I am using .NET 2.0 VS2005. I am writing a network application to allow users from other PC to talk to my application (running at my PC) to print through my printer driver. I got this runtime exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. at PrintGateway.PrintEngine.OpenPrinter(String szPrinter, IntPtr& hPrinter, IntPtr pd) at PrintGateway.PrintEngine.SendBytesToPrinter(Int32 flag, String szPrinterName, String docname, IntPtr pBytes, Int32 dwCount) in E:\PrintGateway\PrintEngine.cs:line 70 at PrintGateway.PrintEngine.SendStringToPrinter(String szPrinterName, String docname, String szString) in E:\PrintGat ...Show All
Visual Basic Calling Class files from dialog class
I've made a class file, "doodad.vb", and want to call it from another class, "foo.vb". Foo.vb is a dialog box, and I'm calling doodad.vb from inside a subroutine. How do I call it though I can't use doodad.showdialog() because it isn't a dialog. Thank you for your help. ...Show All
Visual Studio Express Editions Thanks
Hello world, i've a problem with my application. I must store some information on a specific file in specific folder, i.e.: filename, format, extension. Intially i've the path of the folder that contains the files. How i can search file in a folder How i access file information and store they in a datatable Thanks. Ok, thanks, i've solved my problem. Now, i want create a table with inside image and their attributes (title, format). Those images are load from folder, and so, they are shown in table. How i can do it Thanks ...Show All
Visual Studio Team System VCAdapter.processChangesets throws an Exception.
I'm getting this error every time the Warehouse is trying to update. Can I do something to remedy this, like deleting the changeset Event Type: Error Event Source: TFS Warehouse Event Category: None Event ID: 3000 Date: 25-02-2007 Time: 00:35:01 User: N/A Computer: SYNDROME Description: TF53010: An unexpected condition has occurred in a Team Foundation component. The information contained here should be made available to your site administrative staff. Technical Information (for the administrative staff): Date (UTC): 24-02-2007 23:35:01 Machine: SYNDROME Application Domain: /LM/W3SVC/3/Root/Warehouse-3-128168330489652128 Assembly: Microsoft.TeamFoundation.Warehouse, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v2.0 ...Show All
SQL Server Neural Net algorithm
Hi, Would anyone be able to provide a reference paper on the neural net algorithm implemented in SQL Server 2005 to better understand how it works Thanxs for any info. The Microsoft Neural Networks algorithm is a MultiLayered Perceptron implementation based largely on the conjugate gradient training method described in Christopher Bishop's book "Neural Networks for Pattern Recognition". ...Show All
