Bander ALSHARFI's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. How to defiine line width
I draw objects using "LineList" primitive type. How can I define line's width Read my answer in your thread: " Can't draw line " ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Where's the Texture2D.Pitch?
I am trying to build a Texture2D. However, the function that I'm trying to work with from Direct3D pushes the bytes in using the D3DLOCKED_RECT. This struct has two members, pBits (which is the pointer to the bits), and the Pitch (which is the width of a row, right ). So, I can certainly create my texture with the same format: D3DFMT_A8R8G8B8, which I assume is SurfaceFormat.Color. So far so good. However, I'm trying to convert this function but there's no concept as Pitch in the new texture object. Is Pitch = 4 automatically in the Texture2D class Here's the function in C++: .code {word-wrap:break-word;margin:10px;padding:10px;border:2px ridge white;background-color:#eeeeee;font-family:Courier New;font-size:10pt;} ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Just about GameComponents.
Hi, your example about GameComponents was really impressing and inspiring, but writing a complex game with this will become very unclear and confusing. Is it possible to write a class GameState, where i can add my GameComponents to just as i can add my GameComponents to my Game class Sebastian So you are saying you want to write a component which itself has a design surface that you can drag other components onto Yes that is possible but you would have to link everything up yourself. Try reading up on design surfaces in visual studio - a simple one like Game uses is fairly simple to code. I am not able to guess the magic words to search for on google to find articles, but since this is more of a vi ...Show All
Visual Studio Team System how to view all the work items in a browser
Is it possible to view all the work items(testcases) under particular Iteration path to view in a browser. If so can u tell me how. I mean, suppose say i want to view all the test cases under a particular iteration path how to view those in a browser at once. As we can view the details of a particular work item in a browser using a URL. thanks in advance vratz Like Mohammad says there isn't any such out-of-box functionality in V1. Check out the teamplain solution to see if it meets your needs http://www.devbiz.com/teamplain/webaccess/details.aspx ...Show All
.NET Development Installation of .Net 1.1 on Vista
I am facing issues while installing .Net 1.1 on vista OS 5372 or 5384. Following are the errors I am not able to attach the error message so below is the text Regsvcs.exe - Common language runtime debugging services ------------------------------------------------------------------------------------------ Application has generated an exception which could not be handled Process id = 0xeac(3756) Thread id = 0xe34(3636) Click Ok to terminate the application ----------------------------------------------------------------------------------------- Please suggest if someone else have seen the same issue and pointers for resolution. Hi, I am facing the same problem during installing .N ...Show All
Visual Studio Team System "check out" age monitoring
i think having a file checked out for a long period of time is a smell of bad practices, so i wonder if there is a way to automatically send a notification if an item is checked out for more than xxx days If there is no script for that, can anybody please give me keywords related to how can i implement it myself - i guess what i need is to list all (checked out ) items, than check the check out date Or is there a way to directly quiry items checked out more than xxx days ago What is the name for the email notifications object Hi: You can use Attrice's tool or write against the Object Model to get that information. If you wish to write against the object model, then download our SDK and then look under Source Control ...Show All
Visual Studio Express Editions Why Is It So Difficult To Save and Load Form Text Boxes?
I would appreciate any help someone could give me. I have searched this forum endlessly trying to find a way to save 60 or so text boxes on form1 to a file and then later read the information back into the same text boxes. It seems like I have tried every bit of sample code that I can find and nothing works. I have 5 books on VBE and VB5. I am a complete novice at this so please be gentle. Thanks in advance for any ideas/help. Glenn Tall Dude, Thanks. That worked great. But perhaps I am not being clear. I need to enter a bunch of data into these text boxes. Then click a button like Run Simulation and do the aforementioned calculations and return some results. Then I need to save t ...Show All
Visual Studio 2008 (Pre-release) Best approach for fetching images from the data base
I am working on a sample in which I am storing some records of employees (through the client UI) along with their images (each image is of 6-10 Kb) into the MS SQL 2005 database through WCF Service. The limitation comes with the size of image. If my image size is more than 20KB then it doesn’t allow me to send it to the server through the service and vice versa. Although I have increased the maxReceivedMessageSize in app.config to 5 crore bytes, getting more than a few records becomes problematic. That’s one thing. The main problem of concern is my Employee Search screen (in the client UI) in which I am searching for employees on their name. This is implemented in an auto-suggest manner. Means, as soon as the search keyword text ...Show All
.NET Development Retrieving username of a running process
Hello, I've a windows service who's looking the owner of the Internet Explorer running process. I retrieve the PID with following code : Dim theProcesses() As Process = System.Diagnostics.Process.GetProcessesByName("iexplore" ) Dim PID As String Dim tp As Process For Each currentProcess As Process In theProcesses PID = currentProcess.Id tp = System.Diagnostics.Process.GetProcessById(PID) Next The question is now : how can I retrieve the username who is executing Internet Explorer Thank you for your help. wum Thank you for the tip but unfortunally, it doesn't work. tp.StartInfo.UserName always seems to contains an emptry string. ...Show All
Visual C# How to study Thread
Who can tell me how to study and use the Thread well.Especially on managing it. Hi there. Sorry, are you able to give us more details or make the post a bit clearer on what you are trying to achieve From what I understand (could be wrong) you wish to learn about the Threading in .NET and how to manage it If so....the best resource are these forums as well as the MSDN documentation: http://msdn2.microsoft.com/en-US/library/system.threading.aspx http://msdn2.microsoft.com/en-US/library/system.threading.thread.aspx Threading is used to execute lenghty or main thread blocking processes, such as perhaps connecting and executing some webservice from your application. It makes the main thread of the a ...Show All
.NET Development "bindingRedirect" in web.config does not work (but in machine.config is does)
Hello everybody, I'm using the "bindingRedirect" element in my web.config to allow updates of my referenced assembly without recompiling my website. But I still receive the same error: Could not load file or assembly 'TestLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c417d4d39ba0d6b2' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040) I built my website with version 1.0.0.0 of "TestLibrary". After that I created a version 1.1.0.0 of "TestLibrary" which I placed in the "bin" folder of my website. When accessing the website, the error above is shown. I read that it's possible to redirect a ...Show All
Windows Forms how to create a resizable custom control
I need to create a resizable custom control. I inherit from usercontrol and create an handler for the OnPaint event, then I need to detect when cursor is over the edge of the control (a simple rectangle) and if the left button is pressed and the mouse dragged, resize the control. I read about using drawgrabhandle method but I'mnot sure what this method does. Can someone help me Hi, could you please check out this sample below. Hope this should give you some idea... http://www.windowsforms.net/FAQs/default.aspx PageID=2&ItemID=788&CategoryID=3&tabindex=3 thank you, bhanu. ...Show All
Microsoft ISV Community Center Forums Restricting access to certain tables in Access DB - is this possible?
Hey all, Sorry if this is in the wrong section but im sort of familiar with VBA and hope that it can be achieved using this. Basically i have a single database with several tables in it. I want certain tables such as Ireland, UK, US etc to only be accessable by employees from those countries. Is this possible and if so, how Any help is much appreciated! Thanks Scott Thanks for the reply Derek. I've actually switched to using Excel for this task as it works equally well with the simple data im using and is much easier for me to work with. The data can easily be input into sperate sheets in the workbook and i've written some code to hide the all sheets on load and then have a form with button ...Show All
Visual Studio Team System Build error in database solution
One view of my databse project depend on the object which is lying in some other database because of which i am not able to build the solution. Please tell me if there is any way out to resolve this issue. Thanks. If you link the remote object in the local SQL Server 2005 Instance (so that the object is valid locally) then the error should change to a warning and you will be able to build the project. As an alternative you can copy the remote resource to the local instance. At any rate the object must be valid / able to be resolved on the local instance. This is because DB Pro validates the SQL / Objects on the local installed instance. If the object isn't valid / able to be resolved locally then ...Show All
Visual Basic EMAIL
I am using this code in vb.net 2005 to sent an email but an error FAILURE SENDING MAIL is allways appearing. Can someone show me where I am duing wrong. Try Dim SmtpClient As New System.Net.Mail.SmtpClient SmtpClient.Host = "localhost" SmtpClient.Port = 25 SmtpClient.UseDefaultCredentials = True SmtpClient.Send("glennzarb@gmail.com", "glenn_zarb@hotmail.com", "Test", "hi") MsgBox("sent") Catch ex As Exception MsgBox("Send failure:" & ex.Message) End Try I haven't installed any other programs or smpt's Again, it does not matter about the email service that a person is using but rath ...Show All
