.net sukbir's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. BoundingBox for Models
Hi, I'm very much used to using Geometry.ComputeBoundingBox() from MDX 1.1 and am wondering where the equivalent in XNA is. My problem at the moment is that my models are having their centres placed at Y coordinate 0, so half is above ground and half is below ground. My solution has always been to compute the bounding box and simply raise the mesh by the amount that the min vertex is below the ground. (So minVertex.Y = 0). The BoundingBox has a constructor that takes a List of Vector3s, but this would presumably mean iterating over every ModelMesh in a Model, reading out the Vertex data from the VertexBuffer and extracting the x,y,z values for each vertex... this seems rather long winded I've seen a lot of people talking about ...Show All
Software Development for Windows Vista "Allow Service to interact with desktop" does not work on Vista
Network Instruments is using extensively "Allow Service to interact with desktop" for the application configuration. The latest build of Vista (5744) still does not support "Allow Service to interact with desktop" feature. I can see the service running and an application that it starts and tracks is also running (seen in the Task manager). Not only that, when I configure the application - running as app - and then run it from the service, it functions and I can communicate with it. However I can't see it on the desktop. Is there a fix on a way We NEED an option to allow Service to interact with desktop!!! Just a thought on this: Is there any way to show the Services desk ...Show All
Smart Device Development Help me-------PPC program
Hello All, I am a new comer to the Windows PPC programming using WTL C++. I use VS2005+WTL.But I have little references and experience on both PPC and WTL. I feel it hard to learn. Would you please give me some advices or resources referring to this field. I am appreciating your doing this .Thank you . My email is :jingxigirl@hotmail.com Hi Maybe i can help u ,plz join my group http://groups.google.com/group/before30 lnk=li&hl=zh-CN . we can communicate each other here ! i am a PPC developer too! ...Show All
Visual C# How to create a LogFile...?
Hi... I want to create a Log file in my application. I want to use this log file to put the text received & transmitted on my PC serial port throgh my C# application. I am receiving large text on my PC serial port. Is there is any special class to create a log file in C#. Thanks in advance, Vinay Thanks, I have some doubts for what you told me to do...can you please give some informtion on these things... In my application if i am receiving data 10 times & i'm transmitting data 10 times then every time i have to open & close the file or no need of opening the file evrey time. Only on the application exit i have to close the file... Since i'll recieve & transmi ...Show All
Visual Studio Team System Instant SQL Scripting for database objects
Hi, Is there any plans to implement instant SQL scripting for the existing server objects in the same fasion as in SQL Management studio. For example: Right click on the table and shoose "Script object as select/insert/delete into clipboard". This is very helpful when creating queries, views and stored procedures. Another nice feature to have: Generate simple stored procedures for the table - Insert, Update, Delete, Select. An in general is there any official place where we can post our wishes/development requests for the product Maxim Jamie is correct, we look at Connect quite often. Especially since they count towards our bug count:-) Maxim the requests you're asking for very ...Show All
Visual Studio Team System Compare local file date time shows as 1/1/0001 12:00am?
When you compare local file to server file that date time shows up for the local time... why Why wouldn't it be time the file was edited or time of the last version you had in your workspace Is that expected Thanks Usually it's the time of your workspace version. I suspect this comes from cases where there is no workspace version. Examples would be pending add, pending branch, cloaked file, etc. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Please Add Non-Generic DrawUserPrimitives and DrawIndexedUserPrimitives methods.
I posted this request in the Suggestion tool as well. Btw- where is the link to actually view the contents of the Bug reports, and Suggestions You'd think that would be handy from the connect.microsoft.com site, but I can't find it. Add the method: Device.DrawUserPrimitives(Type vertexType, PrimitiveType type, int count, Array vertexData); and a similar non-generic method for Indexed primitives. I have a rendering system that captures rendering calls, and retains the call information. Later on, it sorts all of the calls in order to minimize state changes before execution. This is a very commen scenario. IT IS VERY DIFFICULT to call generic methods (in a generic fashion) when you only know the vertex type, and have a un-typed array. For ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Storage
I a bit confused about what things I need to consider when working with storage in XNA. For instance, I normally use xml files to to store data (map files, config). I want to be able to develop simple games that run both on the xbox as well as pc... so my confusion is what do I do about storage to make sure I don't run into any gotchas from one platform to the next I understand that I should be using StorageContainer and StorageDevice... but is that just for for storing game state like save games and so forth Or can I access the game directory using those... I need to be able to do simple things like load map files. What location do I store these files so that I can access them on both platforms at run time. ...Show All
Visual Studio Tools for Office Retrieve Outlook calendar
Can anybody tell me how does one retrieve an Outlook calendar and store it in a database I would like my app. to detect appointements from outlook, display them in a datagridview in my app., and store the info in a DB. I looked at this: ms-help://MS.MSDN.vAug06.en/enu_kbvbnetkb/vbnetkb/313801.htm#2 and it doesn't seem to be working. Just as I get to the line below, I get an error saying: 'type outlook.application not defined'. Dim olApp As New outlook.application Which namespace(s) should I use to accomplish this. I've already added a reference to the outlook object and am using MS Outlook 2003. Any help appreciatd, thanks in advance. OK I solved the time issue now, it was j ...Show All
Audio and Video Development Help in extraction of VC1 elementary streams from WMV sequences
Is there any tool that we could use to extract VC1 elementary streams from WMV sequences. Thanks, Srini Now this may be possible regards to Stegre's filter. Check this tread: How to demux VC1 elementary stream from WMV file ...Show All
Visual Studio 2008 (Pre-release) The futher of WPF?
Hi all Is it true that none of the application that ship as part of the windows vista OS use WPF And if so, what is that saying I'm trying to develop our companies first "for Cash" app using WPF. Is MS really committed to making WPF the new programming model If MS can't afford to use WPF, how can I (It is the state of the tools , more then the readiness of WPF, that really make me ask this question.) I would appreciate your thoughts, it is after all the further of my company. A worried Mike Greenway Mike, Rob and Ifeaniy. Thank you for your responses and reassurance. I'm a huge MS fan, use their tools everyday and have bet heavily that WPF will be widely adopted and supported wi ...Show All
Microsoft ISV Community Center Forums CreateProcessA problem - no DOS windows appearing
Hi I have an Excel model which (once a lot of data is entered) saves some data as a text file and uploads it to an OLAP database. It does this using CreateProcessA to run a command line. (Code at the bottom of this message.) The code wasn't written by me, but comments on the code say it was from the MS web site. This has worked fine in the past, but I have recently upgrated from Windows 2000 to XP (and from Office 2000 to 2003) and it no longer works. The CreateProcessA command fails to open a DOS window. I thought it was an XP problem, but a colleage has the same set up as me and the upload works fine on his PC. So I think the code's OK, but it seems there's something on my PC that's interfering with it. Any ideas where I can start to loo ...Show All
SQL Server Export to Excel 2000
We're running SQL Server 2000 and our client is using Excel 2000. When a report is exported to Excel they can't read them. Excel 2003 works fine. We're both on SP4 How do I get it to export for Excel 2000 Thanks, Johnny Russell -- Thank you. Good to know that it can be done. We're on SP4 here as well as the client. Do I tell it to export to Excel 2000 rather than 2003 -- or is it supposed to be able to be read by 2000 automatically Right now they cannot open it using Excel 2000. Thanks, Johnny ...Show All
SharePoint Products and Technologies Event ID Errors: 6398, 6482, and 6641 for Share Point
Hi I was wondering if someone can help me out with these errors I have been getting. I look on the web and can not find anything to fix these issues. There are a ton of these being logged. Event Type: Error Event Source: Office SharePoint Server Event Category: Office Server Shared Services Event ID: 6641 Date: 2/8/2007 Time: 1:20:00 PM User: N/A Computer: CCSP Description: The SSP Timer Job Distribution List Import Job was not run. Reason: Logon failure: the user has not been granted the requested logon type at this computer Technical Support Details: System.ComponentModel.Win32Exception: Logon failure: the user has not been granted the requested logon type at this computer at Microsoft.Office.Server.Utilities.WindowsSecurity ...Show All
Visual Studio Generate one chm from multiple dlls and their xml documentations?
Sorry if this has been asked/answered already. I quickly browsed through the threads but didn't find any that would answer this in detail. Let's say I have a Logic.dll and an Elements.dll. I also have a Logic.xml and an Elements.xml which contain the vs2005 generated xml documentation. Logic has the, um, well, logic and Elements contains the property classes that could be the input/output parameters of the methods in the Logic.dll. They are not in the same vs solution or project. Logic.dll is referencing to Elements.dll as a dll reference. Is it possible to generate a single chm from those two dlls and their comments with Sandcastle I tried to use the Mrefbuilder like so: " MRefBuilder Logic.dll /dep:[path_to_references]\b ...Show All
