grellsworth's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Vector maths methods...
Following a long day of writing and debugging some nasty rigid body physics code, and feeling the pain of the maths library I have to use for this C++ work, I thought I'd take another look at the XNA maths code to see if the results would be more readable (as you might hope ;). ... But my quick look at the framework docs seems to show more deficiencies than in the code I have been using all day... 1/ There is no Point3 class. This is a real pain as libraries that don't distinguish points and vectors are a right pain - transforming a point by a 4x4 matrix will result in a different result to transforming a vector. (And I don't want to resort to coding every point/vector as a homogeneous coordinate either!). There appears to be a ...Show All
.NET Development FromHbitmap gives error "A generic error occurred in GDI+"
I am pulling images from a webcam and i have working fine by using SendMessage(hHwnd, WM_CAP_FILE_SAVEDIB, 0, lcFile) But this means i am writing too many files to the disk and i don't think thats efficient. i have also looked at WM_CAP_EDIT_COPY but I don't want to flood the clipboard. I am using the code below what should easily create an in memory bmp that i can then manipulate Dim imgBMP As Bitmap SendMessage(hHwnd, WM_CAP_GRAB_FRAME, 0, 0) imgBMP = Bitmap.FromHbitmap(hHwnd) However this gives me the error "A generic error occurred in GDI+" And i cannot see what the problem is. i have looked all over the web for this and can see loads of references to the error but no solutions. any idea ...Show All
SQL Server Integration services package failure on server
Im new to SQL Server 2005 and have been reading around many problems regarding scheduling of packages on the server. My problem seems to be slightly different, however I am wondering if permissions have anything to with mine - please can someone help: I can create and run a test package in BIDS. I can build and deploy the package on the target server. I can see the package listed in the integration services MSDB file on the server. However, when I try and run the package I get the message - 'Execute package utility has encountered a problem and needs to close'. No package deployed to the server works. In addition, when I am in the SQL server agent and try to add a job to schedule a package, I change the option in a new st ...Show All
.NET Development Summary Details from FileInfo
How can we retrieve summary details of a File from dotnet Thanks in advance Sundar.k The summary information is stored in a secondary data stream attached to the file. Only files residing on a file system that supports it (currently only NTFS) will have it. If you were to copy the file to a FAT or CD drive then the streams would be lost. .NET does not support reading the extra stream data. You'll have to revert to P/Invoke to open the extra stream using CreateFile and then read it using the Win32 API. Same thing for writing it. Michael Taylor - 2/16/07 http://p3net.mvps.org ...Show All
Visual Studio Team System Needed IIS and NTFS Permissions
Good day! Knowing me I've probably missed something, but after installing TFS the two admins (myself included) are the only ones who can connect. Being somewhat familiar with IIS and NTFS Permissions (actually just enough to be dangerous) we noticed that <machine-name>\Administrator, <machine-name>\IIS_WPG, and SYSTEM are the only users/groups who have have access to "D:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Web Services" directory. Should a group like <domain>\Domain Users also have access If so, any idea at what level and why the install would not have set this for us Thanks! We just setup a new DEV and PROD system and had to do the same thing again. The machine ...Show All
SQL Server Remove SP1 or install SP2 Dec. CTP
This sounds trivial but it has become an issue here. We had the original RTM of SQL2005 with Reporting Services installed and running fine. We were explicity NOT installing SP1 because of a feature that was removed from reporting services (the select-all checkbox in the multi-value parameter). This feature is supposed to be back in SP2. So wouldn't you know it, somehow someone inadvertently installed SP1 in the course of doing windows updates and now users are complaining about the missing select-all checkbox. I figure my options are to either install the SP2 Dec CTP or try uninstalling SP1 (if that's even possible). Any recommendations Unfortunately the Service Packs are not uninstallable. As a result, ...Show All
Visual Basic Long Numbers and LOG arithmetic math or maths.
Hi, I would like to write applications, such as calculating pi, generating Mandelbrot Sets, factoring large numbers or prime hunts, which use extremely long numbers. I'm not talking about the measly 32 decimal places of the Decimal variable. I'm talking about two or three thousand decimal places. I've written a couple long number calculators which are, quite frankly, crude, cumbersome and slow. My approach has been to create arrays of byte characters, assign one digit to each byte, and then try to program the whole thing to handle addition, subtraction, multiplication and division; all the while trying to keep track of decimal places and polarities. It seems to me that there has to be a better way. Anyone know if it is possible to ...Show All
Windows Forms folderBrowser ON the form
Hi This is my first post, so try to be nice :) I have a folderBrowserDialog for selecting a folder to work on, that pops up when I click on a button using the ShowDialog() method. I want to have that dialog ON the form I can click without using that nasty "poping" dialog. Any idea You could use the VB6 DirListBox control. Right-click the toolbar and click "Choose items...". Scroll down and check the "DirListBox" control. Drop it on your form and write an event handler for the "SelectedIndexChanged". DirList(DirIndex) gives you the selected folder; assign the Path property to switch drives. ...Show All
SQL Server Change results
I have created query As shown: SELECT distinct [Table] FROM [Database] The results i get back are A, B & C. What i am trying to do is show a result as a different word. i.e instead of displaying A is shows in drop down list as Apple, B shows Banana. etc. Can anyone help please. Thanks Duncan: It sounds to me like what you want to do is to join to a translation table to do a simple lookup; something like declare @source table ( sourceKey varchar(8)) insert into @source values ('A') insert into @source values ('B') insert into @source values ('C') declare @translate table ( sourceKey varchar(8), xlate varchar (10)) insert into @translate values ('A', 'Apple') insert into @t ...Show All
Visual Studio Express Editions warning message
i am getting mutiple warnings, each time i create a form the warnings go up, saying could not load type "system byte" from assembly " mscorlib,version 2,0,0,0, culture = neutral, publickeytoken=b77a5c561934e089" because the format is invalid what is it telling me it doesnt like. i cant go back to the design stage to change anything, how do i get out of this. thanks i have just started again, allk i did was to create a form. on the form i had 3 buttons, which i chnged the font styles, then saved it. as soon as i did that i got the warnings again. does anyone know what is going wrong ...Show All
Visual Studio Team System View file in solution explorer
That's odd, I'm sure I used to be able to double click on an object (in this case a stored procedure) in schema view and it would open for me to edit. Now I just get the menu item 'View file in Solution Explorer' which doesn't work. It just flicks back to the solution explorer and doesn't expand the correct folder or select the correct file. Am I mising something I just tried this, when I double click an object it opens the file for edit, and when I click on solution explorer the file is highlighted. Not sure why you're not seeing this... perhaps try repair in add/remove programs ...Show All
Smart Device Development How can i open files using .net cf 1
Hello .. Please , In .NET CF 2 , I was using this code to open files with thire program ( like jpg , mpg , etc .. ) : Dim X As New ProcessStartInfo X.UseShellExecute = True X.FileName = FilePath Process.Start(X) X = Nothing But now , i am developing some programs on .NET cf 1 and i can't found " ProcessStartInfo " In .NET CF 1 .. So What should i do to open files in .NET CF 1 .. With my best regards ,, Hi, you originally said you wanted a solution for CF1 and you were given that. Now you are saying it doesn't work in CF2 - what EXACTLY are you looking for Pete ...Show All
Windows Forms datagrid column format date
I need to format the output of a date field in a datagrid column to just show the "Year", nothing else. When I go to "Edit Column", "DefaultCellStyle", "format"... I get a list of Formatting Values and nothing in Date Time formatting has what I'm looking for......" Year"..... I guess I would need to use "Custom", but I"m not sure of the syntax to use in order to get just the centery, "2006". Just put yyyy in for the Format. Search for Standard DateTime Format Strings in the online help for the complete list of formatting strings. ...Show All
Visual Studio Express Editions Visual Web Developer Express and SQL 2005 Express
I get the below message and the only resolution I have found it uninsatll SQL 5005 Expredd, reinstall it and then it will work for some time. How do I prevent this Server Error in '/WebSite2' Application. ...Show All
Windows Forms How to raise by code the click event of a button in C#
Hi all, I'm writing a C# program, and I was wondering: is there a way to raise by code the click event of a Button control, as if it was the user to have clicked on it Thank you very much Hi, you can "click" the button programmatically by executing button's PerformClick() method. button1.PerformClick(); Andrej ...Show All
