Jeff54's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. System.Windows no longer exists since XGS installed?!?!?!?!?
Trying to get the position of the mouse yielded a standard error for a missing using statement... which is easy enough to deal with. When I went to add System.Windows.Input , the intellisense acted as if I was trying to add System.Martian.Nonsense... so I keyed it in manually. This is what I got when I hit F5: ************************** Error 1 The type or namespace name 'Windows' does not exist in the namespace 'System' (are you missing an assembly reference ) C:\Documents and Settings\SS\My Documents\Visual Studio 2005\Projects\WindowsGame2\WindowsGame2\Game1.cs 5 14 WindowsGame2 ************************** This was the last straw after over an hour of frustration when trying to do what should have been routine things. My v ...Show All
.NET Development Stored Procedures takes long time to execute from Web Application
Hi, We have a got unique problem with one of our Stored Procedure. This stored procedure takes a long time to execute when called from data access layer which is in C#, takes around 5 minutes but takes very less time to execute when executed from query analyzer, takes around 6 seconds. We are using data access block of Enterprise Library 2. All the other stored procedure within the application works fine. It is only this one stored procedure which is behaving very odd. The same stored procedure works fine if we give a short date range (6 months) from the data access layer but takes lot of time to execute when you give a bigger date range (4 years). Also doesn't seem to be a data load or network issue the reason being the 4 ye ...Show All
Game Technologies: DirectX, XNA, XACT, etc. device.Reset and device.Lost not firing.
I'm having problems when i reset the graphics device after a resolution change. Here is how i have the reset and lost events set-up. //handlers for device events device.DeviceLost += new EventHandler(device_DeviceLost); device.DeviceReset += new EventHandler(device_DeviceReset); void device_DeviceReset(object sender, EventArgs e) { LoadResources(device); } void device_DeviceLost(object sender, EventArgs e) { UnloadResources(); } private void LoadResources(GraphicsDevice device) { //set anisotropic filter InitAnisotropy(); debugFont.Reset(device); effect = new BasicEffect(device,null); effect = Effects.InitBasicEffect(effect, device); } private void UnloadResources() { primitiveToRender = null ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA certification exam
I apologize if this is not the right place to ask, but I've seen some requests for DirectX certification, for which there were(/are) no plans, and I've been wondering this about XNA since I first noticed it on the Startpage of VB express: Is there going to be an XNA certification exam, as part of a current development cert, or a MCGD cert for example (covering Net2.0 framework + C# + XNA ) It would justify spending some more time on learning all the ins-and-outs rather than 'just' what I need, and I'd love to see some MS Training Kits on XNA... If there is, can we expect to see a beta around the holidays or is this something for on the long term I'm sure there will be a demand for such a cert from students, professi ...Show All
Windows Forms Why does Control.DoDragDrop swallow exceptions?
I came across a situation where an exception thrown in a TreeView's DragDrop event handler was not bubbling up to my application's UnhandledException / ThreadException event handlers. A little searching led me to this blog post: http://www.vandervelde.co.nz/2006/02/exceptions-disappearing.html I used Reflector myself to confirm the behavior. Any comments from the Windows Forms folks at Microsoft as to the reasoning behind this Well, shoot. I had a really nice article that explained why this is so, but I cannot find it for the life of me. Let me see if I can summarize from memory. Basically, drag-drop operations are dispatched to the operating system, since obviously only the OS has complete knowledge of ...Show All
SQL Server Dattime format problems when retrieved on FreeBSD server
I'm using MSSQL with PHP and this works fine on a Windows server. When i move to a FreeBSD server, the date formatting is not working. FreeBSD retrieves the date as: mon dd yyyy hh:mi:ss:mmmAM - and php's functions for formatting date fails. I've tried using: Convert(varchar(10), Date, 103) AS Date, and the date is formatted fine - BUT sorting on date does NOT work. Are there any way i can do changes to datetime behaviour on server side I NEVER wants the date in mon dd yyyy hh:mi:ss:mmmAM. I don't need milliseconds, and i want 24h format - not AM/PM. Are there any settings on the SQL server for this Where are you doing your sorting With T-SQL CONVERT-style affects sort: ORDER BY Convert ...Show All
Visual Studio 2008 (Pre-release) RowDefinition.Height=Auto => ActualHeight = ?
Is there any chance to find out the real height of a row having its height set to "*" Thanks. Got it! My problem was that the Height property was read-only in the Completed event. But if I set FillBehavior="Stop", it works just fine. So thanks again, IanG, couldn't have done it without your help. ...Show All
SQL Server SQL - Joining 3 tables
Hi Guys, I haven't written any SQL code for a few years and am stumbling on a basic join. I have "Company" "Category" "Sub Category" with each sub category belonging to a category and each company having one category. There is currently only one record in DB and I have joined all three tables but am getting multiple results (ie all combinations instead of just one record). What is the best join to run Cheers Doug Use an IDE to make life a lot easier for you. It generates the SQL statements for you. You can JOIN as many tables as you want (of course, this does not include performance considerations). SQL Server Enterprise Manager and Management Studio comes with these drag-and-drop f ...Show All
Visual Studio Express Editions "Update requires a valid DeleteCommand when passed DataRow collection with deleted rows. "
For god's sake somebody help me. I have become half mad and tearing my hair for the last 2 weeks trying to delete a damn row from sql database but all i get is an error saying: "Update requires a valid DeleteCommand when passed DataRow collection with deleted rows. " i have tried many solutions including parameterized queries.Can somebody give me a simple code for a button which when clicked deletes a row of data from sql. Iam using vb.net & Mssql 2005.I am developing a single windows form connected to a database named - customers, with one table - named address. it would help if you can post the code. you need to implement the correct DeleteCommand in the SqlDataAdapter so it can l ...Show All
SQL Server SSAS Design Aggregation for a Partition
I have an issue where I am trying to design aggregations for a partition and I am getting the following error: The following system error occurred: No mapping between account names and security IDs was done. . To restart the process, resolve the problem, and then click Start. Does anyone know what I can do to resolve this Looks like one of the Roles in your database contains member that is no longer valid. Why is this related to the aggregation design: As part of aggregation design the aggregation design wizard sends commands to Analysis Server asking it to run aggregation design algorithm for it. As part of the process Analysis Server trying to verify your security permission against database roles ...Show All
SQL Server BUG: UPDATE updates not listed fields
Hi Everybody, I am in this forum for a first time. Today, I think, I found a bug in SQL Server 2000. I tried it on SQL Server 2005 and it is alive yet. Before I explain exact the problem I have a stupid question. Is there any type of award if I have found a real bug. It is about a situation when I try to update some fields in a table and I get updated some other wrong fields. There aren't any triggers ot something else. Create a new table, insert one row, update some fields but other ones get changed too. Is there something known about this Thanks, Hristo. No, there's no award, except for bragging rights :) Post your code/sprocs, DDL etc. so someone can try to duplicate. If there's no triggers, ...Show All
SQL Server Hide database names from unauthroized users in SSMS
If a user is not authorized to see a database can I exclude that database from even appearing in Management Studio for that user TIA, Barkingdog Although it blocks users from seeing other databases in the SMSS database dropdown, as the user I can still query sys.databases and see everything and I have used the deny view any database to public. In a hosting environment, this just won't be acceptable. In sql 2000, I just created a sysdatabases view that looked at your credentials and passed what you had rights to. Can't do that in 2005, but definately need this. ...Show All
Visual C++ How to start a COM programming in raw C++ in VS2005
Help would be appreciated : thanks I still consider this this best book on COM and C++: Essential COM by Don Box ...Show All
Windows Forms Error launching Clickonce app from intranet
I have an app which is deployed on an intranet site. When I try to launch the <app>.application file, I get the error below. BUT, if I do a RUNAS and run under a admin user of the webserver, the app will launch. Running framework 2.0 Windows Server 2003 Here is the error: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES ...Show All
Visual C++ MANIFEST file for a COM Outlook Add-In with VS2005 ?
How can I make my COM Add-In for Outlook use the XP style/theme I did this previously under VC++ 6 using a manifest file with success, but in VS2005 I can't get the XP themes. I've tried all of these: 1) Added the old MyDLLName.dll.manifest file to the project. 2) Added this to the stdafx.h file: #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") 3) Added my old manifest file under Properties -> Manifest Tool -> Additional Manifest Files None of these cause my add-in to use the XP styled buttons/theme. Any ideas Thanks, Mark http://www.beil ...Show All
