GrandpaB's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Capturing the mouse
Hi, I control my model with mouse. The problem is that when the mouse reaches the bottom of the screen, the model stops moving. How can I capture the mouse to make the rotation infinite (while I move the mouse to one direction, the model keeps rotating) Here is the code of the current mouse control: MouseState mouseState = Mouse.GetState(); x = mouseState.X; y = mouseState.Y; if (y > previous_y) { modelRotationPitch += 0.01f; previous_y = y; &n ...Show All
SQL Server Dbmail sending mails but recognised as spam by outlook07 and spamassasin.
Just started playing with the server 05 demo I am trying out the dbmail tool/ sp. Problem is that mails are being recognised as spam! Emails are being sent as text. Both Outlook 07 and spamassasin recognise the mail as spam :S.... I sent same info via outlok and all is ok. Difference is the header. Has anybody come across this Know of a solution Thanks Hi, Please explain. I was under the impression that dmail (unlike sqlmail) used smtp directly. THanks ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Log file component
I knocked up a quick log file component based on the C++ one available in the Peon Game Library. It has four levels of importance but uses a bit mask so that more than one type can be used at a time. If something tries to use a log level that is not wanted it will not be written to the file. The levels are Info, Debug, Error and Fatal. Info is the default level but this can be changed using the LogLevel property (LogLevel = LoggingLevel.Info | LoggingLevel.Error etc.). After adding the component it would be wise to open the log file stream using OpenLogStream so that other components can use it as quickly as possible. Calling CloseLogStream in the game's OnExiting method would be advised too. There is a interface service defined so that i ...Show All
Windows Search Technologies Internet Explorer 7 Runtime Error 127 on close
Every time I close IE 7 I get a runtime error. I click OK and it goes away but this is not mormal. This only started when I started using IE 7. I have the most recent update Version 7.0.5730.11. Any suggestions to make this go away would be appreciated! Thanks Dennis dwalthers@freeprinters.com Dennis, This sounds like a question regarding IE7. This forum is specifically tailored to questions dealing with Windows Desktop Search. For better responses, I would suggest posting your question to the Microsoft IE newsgroups here: http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx dg=microsoft.public.internetexplorer.general&cat=en_us_28cca3eb-7037-4d4f-bde1-d8efee1f1420&lang=en&cr=us ...Show All
Visual C++ No binary Editor in VC++ 2005 Express?
I've just moved from VC.NET Standard to VC++ 2005 Express. It appears that the integrated binary editor is not present in this version I checked out: http://msdn2.microsoft.com/en-us/library/hs24szh9.aspx but this didn't refer specifically to the binary editor, mentioning only that resource editors were available in the Standard version and not in the Express version. I guess I have two questions then: 1) am I correct that there's no binary editor in the Express edition 2) does the Standard edition have the binary editor Thanks, Steve. ...Show All
Visual Studio Express Editions Uninstalling express editions
How to uninstall express editions of MS VS 2005 Control Panel - Add/Remove Programs doesn't work, the same message pops up: "Setup is unable to determine valid ordering for installation". I also have problems with uninstalling betas. My system seem to be ****ed up somehow. The autouninstall tool is not working. I've tried to remove all the items listed in the manual instruction, AND STILL it complains that I have beta components left, but it does not say which components. Could anyone list ALL components that have to be removed: - in which folder are they installed - do they have services - registry keys to remove - other things to remove Thx! /Gastronomen ...Show All
SQL Server SQL Express 2005 and BIDS
I'm sorry but I am so frustrated from searching and trying things! I can't understand why this can't be resolved much easier.............anyway I am trying to use BIDS on sql server express 2005 after attempting to install the tool kit a couple of times on different platforms. I have installed: 1) VS 2003 (also Visual C# Express on another machine); 2) .net 1.1 and .net 2.0; 3) SQL Server 2005 Express with Advanced services and the tool kit. The sequence of installs is as follows 1).net 1.1 was there from the beginning 2)VS 2003 3).net 2.0 4)sql server 2005 express 5) tool kit I see BIDS in the menu but devenv.exe does not exist. I've seen several workarrounds including finding and running vs_setup.msi but ...Show All
Audio and Video Development Eventhandler "controller_key_down"
Hi, i have a problem with the eventhanlder "controller_key_down". I write following function, but when i press the Key "1" nothing happen. I also tryed other keys, but it doesnt work. Can someone help me with this problem function handleEvent(evt) { switch (evt.key) { case VK_1: Player.playlist.titles["robots"].chapters[1].jump("00:00:00:00",false); break; } } application.addEventListener("controller_key_down",handleEvent,true); I'm having a similar issue using your code from the BareBones menu. You mentioned something in the blog post about USB keyboards. Is that really an issue and is it possible this person is having t ...Show All
Windows Forms How to Hide Entire Category in a PropertyGrid
Hi Folks, I would like to know if there is a way of Hiding entire category from a PropertyGrid (PG) I have been using the Browsable(False) attribute on property that I need want to be displayed on the PG. Then when all properties belonging to a perticular category have been browsabled-false the category automatically dispeared. However, I still have the a category that are still present and that is the Design category. It contains the Name and Locked properties, but I would like to remove them too. Is anyone knows how to get around doing that Thanks Seve I have solvented this issue using a TypeConverter in my components. The following line implement a custom TypeConverter for a compon ...Show All
.NET Development web service via javascript error
I am calling a web service from javascript and it returns an array of objects. Everything works fine until the array returns a larger number of objects (601), and then I get the error shown below. Ideas _exceptionType: System.InvalidOperationException _message: Maximum length exceeded. _stackTrace: at System.Web.Script.Services.RestHandler.InvokeMethod(HttpContext context, WebServiceMethodData methodData, IDictionary`2 rawParams) at System.Web.Script.Services.RestHandler.ExecuteWebServiceCall(HttpContext context, WebServiceMethodData methodData) Is this an AJAX question (I see System.Web.Script seems to an AJAX namespace) There's a couple of possible solutions at the AJAX forums ( http://fo ...Show All
Game Technologies: DirectX, XNA, XACT, etc. help...NosuitableGraphicsDeviceAvailable
when i run most programs in xna i get this error NosuitableGraphicsDeviceAvailable evception Not handeled. How do i fix this. Even space war starter kit gets this so it cant be all my coding... I noticed that when i build anything wit graphics the happens because i built a blank program just fine. Visual C# apps dont do this its only XNA. Please help im a noob in need. i tried graphics.AllowMultiSampling = false ; and changing graphics.AllowMultiSampling = true ;to graphics.AllowMultiSampling = false ; In device manager under display adapters it says Nvida Geforce $ MX Intergrated GPU i guess that means my graphics cards the problem... though that doesnt exxplain why a simple game of pong doesn ...Show All
Windows Forms ICustomTypeDescriptor vs. Remoting
I am using System.Windows.Forms.PropertyGrid to display the properties of some custom objects. To enable dynamic modification of those properties (and its attributes) this class hast to derive from ICustomTypeDescriptor. Now I want those objects to be marshalled (by reference) across process boundaries. So they can be viewed in a propertygrid on a remote machine. Unfortunately ICustomTypeDescriptor contains several types that are not serializable and not marshalbyrefobjects. So types derived from ICustomTypeDescriptor can never be serialized. Do you see any way how to support dynamic properties in propertygrid AND being able to remote those objects you can try deriving from the said types and implement ISerializable and provide your ...Show All
.NET Development Update statement
why isit i am still able to get a successful update for a row when there is not such a row. ie try to update a row where id=10, but there is no id10 and im still able to get a success reply. what is wrong i shld have found the solution to my problem. but i do need to know how i can perform a check on another table before i perform the update on this table. how will the sql command be like eg. will be reading user input table 1 , table 2 i wanna check on table 1 whether (a and b) exists and if exists, i will den update table 2 user input. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Problem with ALL!!!! Downloads of Direct X SDK
It is really frustrating. I need the Direct X SDK but unfortunately all the sdk i downloaded are saying "filepath is wrong" when i click on download dialog "open" or i would like to unzip it i get pretty much same kind of error- or with the newest one (aug 2006) it told me it is not a WIN32 Application even that it said it is for Windows 2000 what i am running on my machine by the way. I also downloaded the Microsoft platform SDK no problem but i really NEED the DirectX one too because my application gets the strmbasd.lib not found so i need the baseclasses! Thank you! I'm not sure why you are getting the download problems. Downloads seem to work fine via the internet. However, you ...Show All
Visual Studio How to make RDLC Column Widths adjustable depending on data?
Is there a way to make the data in report table (and matrix) to shrink to fit (as in a normal html table when no width is specified). The client requirement is to accomodate as much columns as possible on the report. The CanGrow and CanShrink properties of textboxes in the table do not help me with this. The width of the textboxes seem to be fixed in the report. Any help would be appreciated. Thanks in advance. I am having a similar issue. My reports are designed with a set width, but the user has the option to turn off certain columns. I want to make the columns that are wrapping dynamically resize to fit the page if page space is available. ...Show All
