aliassce's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Manipulating Surface or Texture2D
Hi, I doubtlessly need some help manipulating a Surface. I tried around with SetData(), but I just managed to get from "The size of the data passed in is too large or too small for this resource." to "Eine externe Komponente hat eine Ausnahme ausgelost." (External Component caused an exception). Thanks in advance! Hajo using System; using System.Collections.Generic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Audio; using Microsoft.Xna.Framework.Components; using Microsoft.Xna.Framework.Graphics; using Microsoft.Xna.Framework.Input; using Microsoft.Xna.Framework.Storage; namespace WindowsGame1 { /// <summary> /// This is the main type for your game /// < ...Show All
Visual Studio Error with installation
I would like to install Visual Studio 6 Pack and it reports me error with message that Visula Studio Service Pack 6 was not completed successfully. I kindly ask you to help me what is wrong What OS are you running. Did you logon as local Administrator Didn' it say what was not installed - any setup.logs -- SvenC ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Destructible terrain 2D
Greetings, For lerning XNA i figured why not make a Space Invaders clone in 2D. But something escaped me, being the novice i am. How do i make the shields destroyable, as far i can se it makes no sense to make each shield one sprite. So my question is how do i build these do i build them from 1000 spirtes the size of one pixel. or do i make one sprite and overlay the destruction in some way. I dont know how to do this, anyone care to share ideas br Lasse Knudsen Hi, Maybe you can change the color of the pixels of your texture by changing their value with the method SetData(...). ...Show All
Windows Forms .NET 3.0 Breaks ClickOnce
Ever since I installed .NET 3.0 RTM, only users who have .NET 3.0 can run my ClickOnce applications. Please note that none of these applications are using 3.0 features. Also, I do not see .NET 3.0 in the list of redistributables and the Update link in VS 2005 goes to a dead page. I tried uninstalling .NET 3.0, but once I did that VS 2005 would no longer start. It silently dies after showing the splash screen. Suggestions Jonathan Allen Jonathan, I’m sorry you are running into this issue. Will you please log a bug at http://connect.microsoft.com/feedback/default.aspx SiteID=210 Please make sure to mention you are using the stand alone 3.0 .NET FX redist. Also, p lease feel f ...Show All
Visual C++ Setprop() and property list?
Hi I am trying to understand BOOL SetProp( HWND hWnd, LPCTSTR lpString, HANDLE hData ); and HANDLE GetProp(HWND hWnd, LPCTSTR lpString ); functions.MSDN writes: The GetProp function retrieves a data handle from the property list of the specified window The SetProp function adds a new entry or changes an existing entry in the property list of the specified window But what is the meaning of "propery list" Where is it Is it WNDCLASSEX's members or something else I dont understand the benefits of window properties and window propert list.Please help me. Thanks... sawer wrote: But what is the meaning of "propery list" Where is it Is it WNDC ...Show All
Software Development for Windows Vista Using RegQueryValueEx to get HKEY_PERFORMANCE_DATA's value on Vista is denied? Hurrily, Hurrily!!!
Hi all, I use RegQueryValueEx to get HKEY_PERFORMANCE_DATA's value on Vista, but the rusult is access failed. And my account is an administrator account. I don't know why.If using RegQueryValueEx is impossible, then is there any other way to get HKEY_PERFORMANCE_DATA's value on Vista Hurry!!! Thanks ...Show All
SQL Server Error Code if Row is locked
Hallo, if a row is locked in SQLExpress and an other user want to update this row, SQLExpress waits until timeout. And than I get the errormessage "timeout". What I need is an immediately errormessage "row is locked" ! So that the user dont need to wait if the row is locked and I need the correct errormessage so that I can check if there is a databaseproblem or only the row locked because an other user is editing the same rows. Thx Wolfgang (please excuse my english) Thank you for your help! I need a small timeout if the Updatecommand "meets" locked rows. I do not want to reduce the timeout for the SqlCommand itself. The solution i have found is to use the keyword ...Show All
SQL Server How to set MDSCHEMA_PROPERTIES.PROPERTY_CONTENT_TYPE and MDSCHEMA_LEVELS.LEVEL_TYPE?
Hi In AS2005 we could set DimensionAttribute.Type. What effect does it have on the value of the following fields: MDSCHEMA_PROPERTIES.PROPERTY_CONTENT_TYPE and MDSCHEMA_LEVELS.LEVEL_TYPE that are only accesible with MDSCHEMA_ discovery queries Are there another way to get information about DimensionAttribute.Type What is the exact functional dependensy between DimensionAttribute.Type and both MDSCHEMA_PROPERTIES.PROPERTY_CONTENT_TYPE and MDSCHEMA_LEVELS.LEVEL_TYPE ...Show All
Visual C++ DWMAPI.DLL
I have read post after post about the DWMapi.dll issue with IE7, which is also the problem that I am having, however I don't see any solutions except to uninstall IE7. Is this really the only solution I can't believe I am going to have to tell our customers to uninstall IE7. Carrie Look... SOMEBODY needs to answer this. Since we moved to VS2005 our app now fails to run if IE7 is installed, and it appears that it is due to this dll not being on the box. This is going to be a mjor problem for us if we don't get an answer. I am having the same problem... lots of threads talking about it, NO ANSWERS. Can someone PLEASE tell us how to fix this ! ...Show All
.NET Development Downcasting to a dynamically determined type, given a Type object?
Say I have an interface class called someinterface, and another class somederived that inherits from someinterface: interface class someinterface { public:static operator String^(someinterface); ... } ref class somederived : public someinterface { public: String^name; .... } And I'm trying to convert from a someinterface handle that points to a somederived object into a somederived handle that points to a somederived object. However, I don't know if the somederived object is actually of somederived type, or some other type derived from the same interface. But this doesn't work.. static someinterface::operator String^(someinterface^s) { return safe_cast<s->GetType()>(s)->name; } somederived^a = gcnew somederived; a->name = ...Show All
SQL Server Incorrect syntax near '?' when trying to use parameters
I must be missing something simple. I have the following code that is not too complicated. I am trying to read a session variable (referenced in the <selectparameters> section) and use it to filter my SELECT statement. The select statement runs fine and displays everything in the gridview control until I put the "WHERE PackagingItemNo = " clause in. Then I get the error message in the title. I've tried using quotes, brackets, etc. to see if there's some syntax issue I'm missing here but I'm lost. I see numerous code examples that look identical to mine. What am I missing I'm mostly an Oracle and PL/SQL type so I'm a little lost here... < asp : GridView ID ="GridView1" ...Show All
Visual Studio Express Editions mspdb80.dll was not found !
When I tried to run cl.exe from the command line, the error message I get is "Application unable to start, mspdb80.dll was not found". Can somebody help me with this Thanks, Deepak Hi there, You most likely already figured this out, but environment variables can be set by right-clicking on "my computer", then choose "properies". Select the "advanced" tab and at the bottom there will be a button for "environment variables". You will see these are divided up into "user variables" and "system variables", and in the list one should be "PATH". If you highlight that one and click edit, then you can add C:\Program Files\Microsoft Vis ...Show All
Visual Basic Debugger problem "The breakpoint will not currently be hit. No symbols have been loaded for this document
There was a similar question posed on the C++ forum back in February to which I responded yesterday, but unfortunately, did not get a response. I am therefore putting this question in the VB forum. I have a VB 2005 project which is actually an add-in to Outlook 2003, which was I was able to debug fine until earlier this week. Now I cannot debug it at all - the message in the subject is displayed when I hover the mouse over the breakpoint which shows a yellow icon in place. Can anyone here tell me what I should do to correct this So are we saying this is a known problem that essentially has no solution Man, I'm up the creek if so. I need to develope a PPC2003 app via VS2005 using the VB.NET IDE. ...Show All
Smart Device Development Pocket PC Application
Hi. I wrote a .Net CF application for a Pocket PC. I built it as a regular project first and I run it under windows. Everything works OK. Now I made a new project for Pocket PC WM 5.0, and I recreated all the dlls for Pocket PC as well. Everything compiles and run but I got a weird exception: "form.Refresh();" cause an " System.IO.FileNotFoundException" after a few times its execute. Any idea why Note: If I igonre it the application keeps running and seems to work fine, but VERY slowly, and it keeps throwing those exceptions. Amit. P.S. Just to make thing a bit more clear here is the function, where I got the exception: public void run() { while ( true ) { try { i ...Show All
Software Development for Windows Vista Message "Value cannot be NULL. Parameter name: component"
I receive the message "Value cannot be NULL. Parameter name: component" when I try to open a Windows.Forms.Form in the VS2005 designer . The form contains a user control that instantiates a rehosted workflow designer. The error occurrs on the line IRootDesigner rootDesigner = designerHost.GetDesigner(designerHost.RootComponent as ActivityLibrary. WorkflowActivity ) as IRootDesigner ; within the user control. The error does not appear at runtime. Only in the VS2005 designer. Can someone please give me a hint, what I could check in my code or respectively what the error message means (which "component" is meant) This error can show up when you type cast the rootcomponent incorrectly. Can ...Show All
