MatHobbs's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. converting mouse 2d to 3d space problem
hello guys , sorry for reposting the same question . iam unable to get 3d co - ordinates here is my code case WM_LBUTTONDOWN : GetMousepos(&point); Device->GetTransform(D3DTS_VIEW ,&viewM); Device->GetTransform(D3DTS_PROJECTION,&projM); D3DXMatrixInverse(&InverseProjM , NULL,&projM); D3DXMatrixInverse(&InverseViewM,NULL,&viewM); later i dont know ...Show All
SQL Server DISTINCT COUNT - unhelpful error message
Hi, I need to return a distinct count of customers who have ordered goods. To do this I created a measure of type DISTINCT COUNT, over the CustomerID field in the orders fact table. Being a foreign key for the customers dimension table, the customerID is integer, not-null, and therefore ideal for the purpose. The measue is created in a new measure group OK, and the cube processes through OK. However when I come to view the data b ...Show All
Visual Basic Show a list of USB drives, but only those
hi to all, first post on this forum. i need to access to a pen drive inserted into an usb port and read a text file in it. one possible way is to point it with the drive letter and the path to the file, but i have to be sure that is really a pen drive and not an hard disk of the system. hope i was clear. how can be done this Its not a perfect solution but the following code with loop for each of the drives in the system. You can use this ...Show All
.NET Development Looking for an absolute definition of "Local Time"
The expression "Local Time" is thrown around a lot in the MSDN documentation. When it is defined, this is the standard definition (example taken from the documentation for TimeZone.ToLocalTime) : Local time is the date and time on the computer you are using Is this absolutely always the case, with no ambiguity In particular, since the Start and End properties of DaylightTime are defined as being in "local time," does this m ...Show All
Visual Basic writing dlls
How do you write dll's and how are they used Just start a new project and select 'class library' add some code like: Public Class Class1 Public Function Version() As String Return "1.0" End Function End Class Save the project and name it 'Test' and build the project You have now created test.dll Create a new project an click with ...Show All
Windows Forms How do I lock a couple of forms inside a panel?
Hello, I would like to develop a user interface with the same look and feel of Microsoft Outlook 2003, I mean the UI will have a menu bar (where I will open many other forms such as : one for customer maintenance, other for supplier maintenance, other for order entry maintenance ), a left side and a right side. In the right side I would like to have it working as a 'client area'. I would like to open the forms I told you above in this space, and ...Show All
Visual Basic vb6 to .Net conversion issue
I have a large application build up of smaller projects. I have several modules shared among these projects. I also have forms shared among modules and projects. In VB6 I could compile a project even if I had a reference in a function that's part of a project's modules to a form which isn't included in my project, but I have no reference to this function in current project. Now as I've seen, in VB.Net this cannot happen any more. So, what is the ...Show All
Windows Forms Blocking Popup Error Message Window
Hi: Is there any way that I can Prevent Popup Error messages from being displayed by an application in windows i.e. I have an application that displays an SQL error message window. At the same time that this error message windo ...Show All
Visual C# FileStream and writing out in chunks
hi all, i have a byteArray i read into from a httpposted file, i would like to write it to a new filestream in chunks of a size i specify. I can write the file out no problem at once, using myFileStream.Write(byteArray,0,postedFile.Length) but i want to break it up into chunks so that it stores smaller amounts at a time and doesn't kill the aspnet_wp. i have tried FileStream newFile = new FileStream(fullSavePath + sFilename, FileMode.Creat ...Show All
Visual Studio Team System regular expression extraction rule
is there anyway to get the regular expression extraction rule to return true if it found the regular expression, false if it did not Also what is the syntax for the regular expressions Also how do I make a custom extraction rule in VB ~Todd The rule has a setting weather or not it is required. If the rule is required then the test will fail if the regular expression is not found. You can find regular ex ...Show All
.NET Development Updating a Web Service
I created my first vs2005 web service in iis. It works fine. Now I am confused about being able to update it. I start vs and open my web site project from the iis location, make my changes, save all, rebuild and then call my web service from IE. None of the changes show up. What am I missing. Thanks, Fred Herring Did you try starting it from the VS itself Try that.... And also, ...Show All
Visual Studio Source Control on database objects...
Hello, I want to ask what are the possible scenarios on VSS 2005 + VS2005 Team Suite to source control dababase objects (SQL 2000) Is it still limited to stores procedures as VSS 6.0d + VS2003 do SQL 2005 instead Thanks. Hello, VS 2005 does not have support for stored procedure version control through the server explorer. The recommended way is to use database projects to generate scripts for your SQL Se ...Show All
Visual Studio Team System TeamBuild and testing
Hey all, I wonder if anybody have seen this problem before (and know a solution)... I've got a dual server setup, with Team Build running on the same machine running the App-tier for TFS, I tried running a build, containing a few unit tests, and got the following error: MSBUILD : warning : Visual Studio Team System for Software Testers or Visual Studio Team System for Software Developers is required to run tests as part of a Team Bui ...Show All
Visual Basic Form Clicks etc
Hi Everyone, I forgot to ask this question... is there a way to set clickable areas of the form without a picturebox or button If there is, how do you find out or determine where on the screen the pointer is when you set up the points I tried to turn the GRID feature on but it never works. I'm using a map as a FORM background, but the pix boxes are slow to load when the form is called. Thanks again, Elgee ...Show All
Windows Forms Force a column in Dataset to be null?
I want to force a column in Dataset to be null. Following statement raises an error like "date column cannot be null. use DbNull instead....." dataset1.Tables("table_name").Rows(0).Item("date1") = Nothing I would appreciated to let me know the correct&nb ...Show All
