Avi_harush's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Texture2D.getData Woes!
Okay, so I've already read through a couple of the threads here on the same issue, but nothing helps my situation! I'm trying to capture the texture data so I can do some collision detection on it. Texture2D entityA = resourceManager.getTexture(a.CurrentAnimation); uint[] bitsA = new uint[a.currentWidth*a.currentHeight]; entityA.GetData<uint>(0, a.CurrentFrame, bitsA, 0, bitsA.Length); a is the entity passed to my collision detection. a.CurrentAnimation is the name of the sprite sheet containing the current frames for this animation. a.CurrentFrame is a rectangle representing the clipped part of the current animations sprite sheet (e.g. a rectangle that clips out which frame we want to use. Now this code always fails at teh getData ...Show All
Visual Studio Express Editions Lost Toolbox content
I have a beginer problem. I lost all the content to the toolbox. I can not figure out how to reset it and dock it back to the default position. Also I want to some extra tools inside the box. Would some please give me the guidence I need Also if you current window is not a form designer then the toolbox will show no content. Example: Open up a new form, toolbox shows tools, double click on the form to show the code window - toolbox shows no content. ...Show All
Visual Studio Crystal Report test w/o Setup
My development environment is VS2003 installed on my machine. My application is created on a remote devleopment web sever. I created a Crystal Report and an ASPX web form with CR viewer. The report is strong typed. According to CR, I have to create an deployment project to test the report. But I am not there yet, I just new to view the report on the development web server. I copied all the required CR's Merge Modules and correct keycode in the Crystal_regwiz2003.msm. The project compiled without error. When I tried to browse the report I got "Unable to find the report in the menifest resources. Please build the project, and try again". Does anyone know how to fix the problem without using Deployment Seup project Thanks. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. BasicEffect Class Acting Odd?
When I use my own HLSL shader to handle VertexPositionNormalTextured data. My textured quad appears perfect on the screen with no irregularities. But when I try to use the BasicEffect class to handle texturing etc. The texture looks as though it has went through some sort of filter or something. Here is an example image of what is going on. If you zoom in you can see the blurring on the edges and for some reason the white block in the left corner is being partially brought over to the top right My first guess is there is some property in BasicEffect I am missing, but I skimmed through it looking for anything that may do this and found nothing. I'm not at all embarrassed of Allegro, that all just seems like an awful long time ago n ...Show All
Visual Studio Team System Kill connections prior to dropping database
Hi, I'm working on using VSTS4DBP as my deployment tool for databases and I'm excited about the ability to use it from MSBuild. So, I'm working on my deployment script and one thing I want to do is drop the database if it already exists prior to recreating it again. Hence, I clicked the "Always recreate database" button in the project properties which causes the following to go into the deployment script: IF ( DB_ID ( N 'MyDB' ) IS NOT NULL) DROP DATABASE [MyDB] ; GO That's all good except that if someone is connected to the database (which is a possibility) then the deployment will fail with the message: Error 3 Msg 3702, Level 16, State 4, Line 3 Cannot drop database "MyDB" beca ...Show All
Visual Studio Team System Test Manager dropping and duplicating tests from the list
After having some serious problems with Test Manager spontaneously dropping and adding test (for example, tests will suddently show a "Test [TestName] does not exist in the test list" I tried to find anyone else that had a similar problem. After some searching, I came across http://kjellsj.blogspot.com/2006/04/vsmdi-file-weak-spot-of-vsts-test.html which describes the problem we're having to a tee: In particular, Kjell-Sverre's describes the problem that they [...] from time to time get "The test 'TestName' does not exist in the test list. It may have been moved, renamed or deleted". Yesterday, the 'Test Manager' showed all tests duplicated in the test lists. Today, another developer saw just some chinese characters when openin ...Show All
Smart Device Development Programmatically terminate a phone call
Hi. I'm using VS2005 and CF2 to write an application for Windows Mobile 5 Smartphones. Is there a way to programmatically (managed or P/Invoke) terminate a phone call ie. Hang-up the phone. Thanks, Tony 0x73 is how VK_TEND is defined so this key code is indeed standardized. It should be the same for PPCPE. One obvious problem that I can see is that on PPCPE the same button works as "Show Desktop" when there is no active phone call ...Show All
Visual Studio Express Editions How to delete this registry key
reg add HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v hellobob /t Reg_sz /d C:\bobby.exe /f > nul 2 things to make sure of...one is that you have your application setup as a full trust application...you can do this from the myproject window security tab...next is to make sure you have rights to the registry as a user on your PC...if not then you have a security nightmare on your hands and will have to impersonate a valid administrator account. ...Show All
.NET Development connecting to mysql database from a pocket pc 2003 emulator
hi, i am trying to connect to a mySql database running on a server from a pocket pc 2003. I can do it fine from a winform, however from the following code i get an error saying: Error 1 The type 'System.ComponentModel.Component' is defined in an assembly that is not referenced. You must add a reference to assembly 'System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. and Error 2 The type 'System.Data.IDbConnection' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Data, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'. The part of the code highlights is the method name, however, this is the code i am running: private MySqlConnection creat ...Show All
SQL Server =Sum(ReportItems!FinalCost.Value, "group_1") in group footer problem
Hi, Im currently writing a report in SSRS which requires to take data in the fields, manipulate and perform functions on it then display it within its own textbox. For example the field Cost is manipulated so that a column will show the cost depreciated after 5 years. Cost Final Cost 500 250 1000 634 700 500 Footer: Totals 1384 My problem is that within each group (as the data is grouped by its type) I need to have a sum of the Final Cost data. As this is NOT a field I cannot use =Sum(Fields!FinalCost.Value, "group_1") but rather I need to use =Sum(ReportItems!FinalCost.Value, "group_1"). I know that SSR ...Show All
Software Development for Windows Vista Glass with Child Controls like Explorer
Using Vista RC2, I've been digging into Aero Glass and the DwmExtendFrameIntoClientArea function. That much has worked nicely and I've got a glass area at the bottom of the form. Now I'd like to add buttons to it. The problem is that the button is drawn with an opaque white border and transparent text. I've tried owner-drawing it using a variety of DrawThemeBackground/DrawThemeText (etc) functions, but no change. Am I attempting the impossible, or is there a correct way to draw the button that I've missed Thanks! Rob Most GDI functions produce incorrect alpha values in the destination surface, and therefore are not suitable to draw on glass. So if you want to use controls, you need to ...Show All
Visual Studio Express Editions C# Express and Reporting Services
I want to use SQL reporting services with C# Express. If this is possible, is there a control that I can use to display a report with hi, at the top of this forum you will find common questions thread there is a post which has some suggestions hope this helps ...Show All
.NET Development Search an Access database while typing information in a textbox
Hello! Here's the situation: I've created an Access database containing several product's names. I have binded the database with my application. Here's what I want to do: I want to type the first letter of a product's name and on a particular list to be shown all products starting with that letter, after typing the 2nd letter the list shall contain product's name starting with those two letters, etc. I hope you can give me a little clue! Any help appreciated! You dont really want to continually search the database as this is a severe performace hit, you would be better searching an offline copy of the data, the feasibility of this depends on just how much data there is. I presume in your access datab ...Show All
Game Technologies: DirectX, XNA, XACT, etc. newb question: do I have to use files to draw textures
After digging through a few samples and stuff, Im ready to start my first game idea. Obviously my first screen has to be the main menu. I was thinking I would like to dynamically generate the menu. What I would like to be able to make some generic menu classes that can be customized. (aka three options "start", background color is this or that etc....) But this means that Sprintbatch.draw calls wont work because it needs a texture. is there a way to dynamically create a texture rather than using a premade file You dont HAVE to use texture files no, it's just a lot simpler though. The other way is to create textures proceduarally, for more info check on http://gpwiki.org and http://en.wikip ...Show All
SQL Server Exporting to Excel Problems (URL Access)
Hello, I'm using SQL Server 2005 Reporting Services. I'm having an issues when exporting to Excel. I'm using URL Access to generate the report and display it in a browser window. I then choose Excel and click the Export link. Doing this opens a temporary browser window and then a dialog that asks if I want to save the report or open it. If I choose to open it, the report opens in Excel without problem. The problem is that the temporary browser window doesn't go away (close) automatically like it should. What makes this a little more strange is that this behavior only seem to occur on a Windows XP computer. If I run the report from a Windows 2000 or Windows Server 2003 computer, the temporary browser windows closes automatically (and the re ...Show All
