Radim Hampel's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Terrain & Terrain-Physics (intersection, dynamic slicing)
Hi, at the moment i am wondering how to deal correctly with a terrain in XNA. For now i just have a static terrain model loaded from file. So i have an object (a buggy for example) and want to get some physics on it, therefore i need to check for collision with the underlying terrain. The collision with the buggy could be done with a boundingbox, but the terrain needs to be checked per face (3 vertices triangle) i think. But i cant find a way to check this. I think iteration throught all faces of the terrain would take to long for all objects in the world. How do other developers solve this problem So if I do it this way i will always need to calculate every object in the world each frame, no mather if its visible or not, is this th ...Show All
Visual Studio Express Editions How to set up Visual C# Express Edition 2005 to use .NET 3.0
Can I set up Visual C# Express Edition 2005 to use .NET 3.0 If possible, how to do that I believe my current Visual C# Express Edition 2005 uses .NET 2.0. I tried to run the Visual Studio registration tool included in the .NET SDK and got an error message saying "You don't have Visual Studio 2005 or Visual Studio C++ Express installed." Anyone can help thanks, Lin I believe you need to install .NET 3.0 and also the Orcas plugin: http://www.microsoft.com/downloads/details.aspx FamilyId=5A0AE4CD-DC79-4B12-8A05-B6195F89FFA2&displaylang=en however please note: Supported Visual Studio 2005 released (RTM) tool sets: Visual Basic Express Edition, Visual C# Expres ...Show All
SQL Server Password Proctected Excel Subscription
I need to send protected information via a reporting services subscripiton. Unfortunately the receiver can not access our reporting services web page so I have to send it as an excel attachment with email. Is there a way I can protect the spreadsheet automatically before it is sent via the subscription. Thanks Reporting Services doesn't currently have a DRM/IRM or Excel password feature, so you would have to post-process the Excel files that RS generates. ...Show All
SQL Server Can i connect to SQLExpress instance using (local)
Hello, I am using the following connection string to connect to SQL Server 2005 Express Edition installed on my local PC. string sqlstr = "Server=(local);Database=MyDB;User ID=sa;Password=sa;Trusted_Connection=False"; And it gives me the following error. The string works fine in computer with SQL Server 2000 instance but fails with 2005. The string also fails for "Server = localhost". However the string works very fine if I use the name of Server 2005 i.e ./SQLExpress =================================== Cannot connect to (local). =================================== An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the ...Show All
Visual Basic adding minutes to the clock
here's what i'd like to happen... show the current time, you input an integer, click a button, and show future time as (current time + number of minutes inputed in textbox1) label1.text, label2.text, textbox1.text, button1 label1 show current time. textbox1 = you input number of minutes to add to current time click button future time = current time + number of minutes to add label2 show future time i don't want to change the clock, just show what time it would be in inputed # of minutes. anyone know the code to make this work thank you very much! mm123 Use the Dateadd method The following code should set you on your way. Public Class Form1 Private S ...Show All
SQL Server How to enforce SQL Server 2005 to use Worktable?
I have a problem in SQL Server 2005. In some cases SQL Server produces an execution plan of complex query (8 joins of views, some of views contains couple of joins) which does not contain a woktable creation in tempdb. As a result time of query execution increasion for about 5 seconds to about 4 minutes. All necessary indexes are created. It sims all data located in cache. Is there any way to enforce SQL Server to create worktable Query SELECT [a0].[id],[a0].[Priority],[a0].[Heading],[a0].[DocumentDate],[a0].[LastName],[a0].[FirstName],[a2].[Name],[a1].[Position],[a4].[ContactTime],[a4].[Subject],[a0].[WorkPhone],[a0].[MobilePhone],[a0].[FaxNumber],[a0].[PrimaryEmail],[a5].[ContactTime],[a6].[Value],[a7].[id],[a7].[id_class],[a8].[id ...Show All
Visual Studio 2008 (Pre-release) Introduction to WCF.
Hello, I am new to this thread and WCF technology. I have read a little-bit about WCF, but have not yet understood clearly the technology. I have seen various MSDN resources etc, but find them talking too abstract rather than hitting the real point. I understand that this technology does have some advantages over existing .NET Distributed technologies, but I fail to visualize a scenario where WCF 'PROVES' itself over existing technologies. It would be a great help if you'll can help me in clearly understanding the technology and actually outlining the differences between .NET 1.1 or 2.0 based Distributed technologies and WCF. I would really appreciate if you can bring out exact scenarios and how they fare in both the cases. So, for e ...Show All
.NET Development how to edit a satellite assembly
hi, i have created a satellite assembly for a culture "de-DE". I ran the application with the culture setting of "de-DE" inside the application. My application starts displaying all the text in german language. Here i like to modify some german text without exiting from the current running application.Actually i tried to replace the satellite assembly ,in the folder /de-DE, with the modified satellite assembly but it is showing some windows error message saying "cannot copy : it is being used by another person or program. close any programs that might be using the file and try again" . My intension is to replace the old satellite assembly by the new one while the application is running. Is it possible to do th ...Show All
Visual Basic Creating a multi project solution. Problem with web directory structure
Hi all, I've developed Java Professionally for six years now, and I'd like to learn the .NET 2.0 Framework I'm using Visual Studio 2005 for a small starter app to learn with and I’m running into some setup difficulties. I would like to create a solution with three projects, data access, business logic, and the web project. I have accomplished the following. Created a Solution (directory simpleproj) Added a data access project (directory simpleproj\dataaccess) Added a business logic project (directory simpleproj\business) Added a web project (directory simpleproj\web) While my solution and my project dependencies are correctly set up, it appears that not all of my configuration files for my web ...Show All
.NET Development AccessViolationException with C# Ping class
I have a "watchdog" program, c# console application, coded with VS 2005. Program runs every 3 minutes. And one part of program checks pings to ~20 ip's. I'll give that function code: static private bool ping ( ref String ip) { bool success = false ; Ping pingSender = new Ping (); if (pingSender.Send(ip).Status.Equals( IPStatus .Success)) { success = true ; } else { success = false ; } return success; } Usually this works.. but sometimes (once a day on the average) it throws an exception and program crashes: Unhandled Exception: System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt. I checke ...Show All
SQL Server building cube using AMO
hi, i am developing an application which enables the user to create a cube on the fly. I know that i can use AMO to create a Analysis Services 2005 cube. but my question is : Is it possible to use AMO to create a Analysis Services 2000 cube Cheers Anil I am in the process of converting a DSO and SQLServer 2000 process which programmatically creates data sources (now DS views), dimensions, and cubes to AMO and SQL Server 2005, and I've been struggling. Can anyone suggest a good book or documentation source which clearly describes the new AS object model and gives comprehesive, well explained AMO examples (preferably in VB) Thanks in advance. ...Show All
Software Development for Windows Vista GraphEdit records fine, corresponding code does not
I have got DirectShow running nicely for viewing a standard webcam video stream. The graph is registered so GraphEdit sees it-- here is a summary: capture filter(Logitech web cam) -> Smart Tee -> Capture branch-> MUX -> File writer -> Preview branch-> Video Renderer However, when I capture the stream and save it to an .avi file, the file is unreadable. The strange part is that if I use GraphEdit to remotely see the DirectShow graph and then run the graph via GraphEdit, then the .avi file is fine. The properties page of the good (GraphEdit written) file shows a framerate while the one run directly from code does not (all other parameters such as size, resolution, compression format (uncompress ...Show All
Software Development for Windows Vista Building XPS printer driver on windows XP
Hi I want to use XPS printer driver on Windows XP. while installing this XPS printer driver on windows XP it's asking for some DLL files (ex. xdwmark.dll, xdcolman.dll). in WDk folder there is no such DLL that means i have to build this DLL from WDK building environment. when i am trying to build these dll from WDK's Windows XP build environment i am gettting following warning : [source path ] is not valid for the current OS target . can you help me how can i build these DLL for XP I am able to build these DLL from Windows Vista environment. but while printing from this d ...Show All
Windows Forms Small accounting application Big headache (SAAB-H)
Hello, This is part of a small database EntryForm. 9 TextBoxes: 1,2,3,Sum1 (all decimal(6,1), -- V1, V2, V3, EA, VTotal (all smallmoney) , --- EA (smallmoney). Three calculations: Sum1=1+2+3, V1=EA*1, Vtotal=V1+V2+V3. The order of the TextBoxes is 1-EA-Value1, 2-Value2, 3-Value3, Sum1-ValueTotal. The Sum1 and ValueTotal should be always updated regardless in which field the user choose to start entering data. The reason for the If, Else or If ElseIf statements is to always have some values in the TextBoxes. Note: All the TextBoxes.Text was stripped away to see better (1 is 1TextBox.Text, etc) Questions: How to initialize the Form without Fill (it always brings up the first record -eve ...Show All
Game Technologies: DirectX, XNA, XACT, etc. D: Drive
I tried to start Space War and I get a FileNotFound exception. It will not even run to the first line of the program. Note I have Windows and Visual Studio Express installed on my D: drive and not my C: drive. I've also hit this. Looks like there's another thread with a similar issue: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=691789&SiteID=1 ...Show All
