.net sukbir's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Camera Mouse-Look Algorithm
Hi, I'm writing a camera class and have gotten just about everything laid out. But for some reason, when doing the Mouse Look method (basic first person shooter look around), I get completely screwed results. The camera never seems to properly orient itself and something is very wrong. I've checked my algorithm a dozen times and I can't figure out what's wrong. If anyone can tell me, I'd appreciate it. Here are my MouseLook and Orthonormalize methods: public static void MouseLook(float x, float y) { // Rotation speed is always 0.001f and I've also substituted the Object's 'Up' and 'Right' Matrix xRot = Matrix.CreateFromAxisAngle(Vector3.Up, x * rotationSpeed); Matrix yRot = Matrix.CreateFromAxisAngle(V ...Show All
.NET Development Creating a proxy Server
Hi I need to create a proxy server which will accept the url as a request from the other machine search for the page (internet as well as in intranet) and sends back the requested page as a response to the client machine.How can it be implemented using dontnet framework 2.0 Any code snippets or suggesting would be really greatful Thanx in advance Here is a sample web proxy written in C# to get you started. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using xna with windows forms???
Is it possible to draw with Xna, on my windows form, if so, how because when you have it draw, the normal way, it automatically pops up its' window, also, even if the 1st one is possible, game components are like controls correct Could somebody also point me in the direction of\ tell me how to use them, the basics, otherwise I wouldn't be asking this question, I just started working with Xna. Because 'the whee is round' and a square just wouldn't cut it. It's not the project it has problems with, its just the code itself. Can you use game components almost just like designer-based controls Like, create labels Could you tell me how then, so I can just put up with not using the designer ...Show All
SQL Server server timeout
In SQL server management studio: When doing ex count(*) for a big table or create index or like, I get timeout error. The timeout setting = 0 Even timeout = 888888 gives timeout Does not the query execution timeout parameter work Or are there other parameters needed to be ajusted There are several places to configure execution timeout in SQL Server Management Studio. Specifically: (1) File -> New -> Database Engine Query -> Options -> Execution time-out (2) Tools -> Options -> Query Execution -> SQL Server -> Execution time-out (3) Tools -> Options -> Designers -> "Override connection string time-out value for table designer updates:" and "Transaction time-out after ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Fixed Function Pipeline
Removing the fixed function pipeline is simply a bad idea. Lets face it, as an indie-developer, we are targeting 3 year old intel on-board chipsets... maybe the fixed pipeline is available via effects files I have a nice little terrain engine in C++ - using DX8 - most users don't even have the big nine installed - that I would like to port over to XNA... it uses the fixed function pipeline and can blend 2 textures per patch via a coverage factor and modulate this with a shadowmap (if there are 4 blend stages)... and runs with high framerates even on intel on-board. For older hardware with only two stages, it simply do two passes. So for indie-developers, wo loose 95% of our target audience due to the removal of the fixed function pipeline ...Show All
Visual Basic Convert double or decimal to datagridviewtextboxcolumn (window applications)
Using VB2005 Can anyone help me with this How to convert the datagridviewtextcolumn to strings that good u have answer my qns ... I was wondering how u do it but i study ur code and i knz that u convert the rows to string and use for SQL insert quer later on ...Show All
Visual C# Override Attribute
It’s possible override a attribute Example: public class CBase { [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)] public virtual int Prop { get { } set { } } } public class Test : CBase { [Obsolete("Dont use this property!", true)] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] public override int Prop { get { } set { } } } This is don't work, any ideas Thanks in advance Yes you can override attributes but it doesn't necessarily mean it'll work in all cases. For example if you override the CategoryAttribute it'll work (I believe). It really depends upon the caller. The callers can opt to retrie ...Show All
Visual C++ Erase Window border
Hello, I want to create a CMainFrame window that has the WS_POPUP style. But there is a border of 2 pixels around the window that I want to erase. How to erase such border Thank you, Christophe See Windows SDK forum for Windows programming questions Note however that you might not get an answer there either, since the question can be answered so easily from the documentation. I hope you do get an answer if you post the question, but you probably will get an answer faster by looking at the documentation. ...Show All
Visual Studio 2008 (Pre-release) How can I change caret's color in the textbox?
How can I change caret's color in the textbox I can't find this property or something. ...Show All
Windows Forms Display text in an ownerdrawn listview - again.
Hello, The concept goes like this: The user selct n number of rows in a listview, and then right-click the mouse, and select an item from the popup menu. How many items - and which one - the user selected, and the text to display in the columns 1, 2 and 3, is determined in the sub shown below. So far, so good.The problem is that I can't see a way to get the text into the listview, and I don't know what triggers the DrawItem event in this case - control is Ownerdrawn. I would be grateful for some hint to point me into the right direction in this matter. Thanks for your help! -- Doffen Private Sub SettInnHToolStripMenuItem_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SettInnHTool ...Show All
SQL Server 2000 active x doesn't work in 2005
I have an active x script written in vb that just counts the records in a table and fails the step if there are not enough records. It is simple and effective. But when I transfered this task to my SSIS package I get a function not found error. I am not familiar with active x or vb script so I have no idea what is wrong. I can do without while I build the package but I need it in the end to prevent possible problems.... Here is the script... '********************************************************************** ' Visual Basic ActiveX Script '************************************************************************ Function Main() dim myConn dim myRecordset dim iRowCount ' instantiate the ADO objects set myC ...Show All
Visual Studio 2008 (Pre-release) Bug? - .Net sensitive to the ordering of parameters in the HTTP Content-Type header
Hi everyone I'm doing some web service interop testing with Apache Axis, and we've discovered that the ordering of the properties in the Content-Type http-header seems to be an issue to .Net. .Net doesn't add the (optional) action parameter to content-type, but so does Axis, which causes some trouble. A http Content-type: application/soap+xml;charset=utf-8;action="myAction" is ok to .Net, but not a: application/soap+xml;action="myAction";charset=utf-8 Since I can see nothing in the specifications about the parameters needing to come in a certain order, I would think that this is a bug in .Net. Could that be right Some nice 'ol links to the definition of Content-Type and action: [1] http://www.w3.org/ ...Show All
Visual Studio VS 05 SP1 installed but not showing....
Hi... Im using Microsoft Windows Server 2003, Enterprise Edition SP1 with the following VS info after installing VS80sp1-KB926601-X86-ENU.exe with no errors and finished successfully. Why does it not say SP1 Thanks, BillB My Dev Studio minus the keys looks like this: Microsoft Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600) Microsoft .NET Framework Version 2.0.50727 Installed Edition: Enterprise Architect Microsoft Visual Basic 2005 Microsoft Visual Basic 2005 Microsoft Visual C# 2005 Microsoft Visual C# 2005 Microsoft Visual C++ 2005 Microsoft Visual C++ 2005 Microsoft Visual J# 2005 Microsoft Visual J# 2005 Microsoft Visual Studio Tools for Office Microsoft Visual Studio Tools for the Micros ...Show All
Visual Basic open WMP with url
I was wondering if it's possible to open up Windows Media Player with a certain link. I need to automate some connections and would like to do so in a loop, but I don't know how to connect to media player with a certain url. Any help/comments/suggestions would be much appreciated. you can use the process class giving the arguments of a url. example: imports System.Diagnostics .. .. Dim theProcess as new ProcessStartInfo("wmplayer") theProcess.Arguments = url Process.Start(theProcess) or you can embed WMP in your application using the WMP SDK ...Show All
Visual C++ filebuf::sh_none - compiler error
Hello , I am tring to compile code that was previosly built with v.Studio 6.0 with v.Studio.net 2005. pFileStream->open(buf,ios::app,filebuf::sh_none); I am getting the following error: Error 2 error C2039: 'sh_none' : is not a member of 'std::basic_filebuf<_Elem,_Traits>' e:\varicom\version 6.0\smpp_service\datawriter.cpp 33 sh_none is used for exclusive access to the buffer, can I rewrite this line maybe without sh_none thanks in advance I think in case of Windows OS you should try this: #include <share.h> . . . pFileStream->open(buf, ios::app, _SH_DENYNO ); I hope this helps. ...Show All
