boulderbum's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Absolute and relative mouse movement
Usually when dealing with mouse input you want the data from the mouse in two forms, one is absolute that you might use to draw a cursor or know which part of the window/screen a user has clicked on, and the other is relative where you are only interested in how much the mouse has moved. Currently, the MouseState only seems to report the mouse movement in the absolute form. This means anyone using the mouse to control, for example, a first person camera would find their movement limited by the size of their window/screen. I have tried playing around with the Mouse.IsCaptured property but it doesn't seem to make much difference, quite possibly because I don't know how to use it. Am I correct in thinking that getting relative mouse input dat ...Show All
Visual C# Creating CAB Files programmatically
Hi, I want to create cab files programmatically and that also multiple files at same time using muliple threads. I am creating my program using C# so I need some .net api or com api to create cab files. Is there anything available like that Thanks. Visual Studio 2005 has the CabArc.exe utility in the Common7\Tools\Bin folder. It is also available in the Platform SDK's Bin folder. Run it with System.Diagnostics.Process.Start(), the command line is briefly described here . ...Show All
Visual C# Using a progressbar when loading SQL-data
Hi, Is it possible to show a progressbar when you are loading SQL-data Now I'm importing +2000 rows so I wan't to give the user an idea how long it will take. Grtz Annihil8 I've tried both solutions out and due the multi-tier environment none seems to work. :) At last I used the backgroundworker and that is quite easy indeed. But because I load my data in The DataAccessLayer(DAL) i can never do Backgroundworker. instance.ReportProgress(i); Is there a way to give that value to the PresentationLayer. Grtz Annihil8 ...Show All
Visual Studio Javascript Debugging With IE7
Hello, I have ran across an issue debugging an ASP.Net page after installing IE7 on my development machine and I have not been able to find a solution. I am using Visual Studio 2003 and I am no longer able to access the rendered source (including embedded javascript which is emitted in the code behind) using Debug -> Windows ->Running Documents -> Page.aspx When I click on the running page in the Running Documents , all that displays is the source page and not the page that is running in the browser. Doing these same steps in IE6 worked fine. Also, note that the debugger statement does break but only shows the source page (not the running page) in Visual Studio and places the break at the end of the </html> tag. Therefor ...Show All
.NET Development sql problem inc#
INSERT SomeOtherTable (SomeColumn) SELECT SomeColumn FROM SomeTable I want to take the data from one field in table 1 and insert it into a field in table2 in c#. So Database1.InsertCommand = "INSERT INTO TABLE2 (field1) VALUES (@ then I loose it there Following should help you http://www.csharp-station.com/Tutorials/AdoDotNet/Lesson03.aspx ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Arcade size limit and XNA
Just a quick question. kinda new to this whole thing, but i was wondering if the size limits for arcade games (50 meg or something) will be enforced for XNA built games, or will there be an alternate size limit, or no size limit. not that i think me or anyone else will be writing a game that big too soon, but it would be good to know This would be something that would still be TBD for XNA Game Studio Professional. We're really not at a point yet where we have details around that release but we'll let you know as soon as we do. ...Show All
Visual Studio Team System TFS Build and web deployment project problem.
Hi I've got a solution with a website project and now a web deployment solution. I've got this web deployment solution cretaing a vdir. This builds fine on my local box. However when I run the build with TFS I get the following error: C:\Program Files\MSBuild\Microsoft\WebDeployment\v8.0\Microsoft.WebDeployment.targets(642,5): error : Error Could not connect to server 'localhost'. Now IIS is set up on my build box and I can access it and manually create vdirs etc. Any kind person take a stab as to why I'd be receiving this error Thx Andy. Could it be an authentication issue Team Build runs as your build service account, whereas presumably you are connecting and manually creating vdirs using your own cr ...Show All
Visual Studio Express Editions Can't send an email using Gmail.com
Visual Basic 2005: Haven't been able to send an email using smpt.Gmail.com. Getting "The SMTP Server requires a secure connection or the client was not authenticated." I am using my correct UserName and Password. Dim Email As New System.Net.Mail.MailMessage(FromTextBox.Text, ToTextBox.Text) Dim mailClient As New System.Net.Mail.SmtpClient() Dim basicAuthenticationInfo As _ New System.Net.NetworkCredential( "UserName@gmail.com" , "Password" ) mailClient.Host = "smtp.Gmail.com" mailClient.Port = 587 mailClient.EnableSsl = True mailClient.UseDefaultCredentials = True mailClient.Credentials = basicAuthenticationInfo mailClient.Send(Email) ...Show All
Visual FoxPro SELECT .... INTO TABLE <existing table>
G_TempDBF = "C:\scratch\" + SUBSTR(SYS(2015), 3) + ".DBF" SELECT field1, field2 FROM myTable INTO TABLE (G_TempDBF) USE (G_TempDBF) ALIAS CUSTOMER INDEX ON field1 TAG field1 I have created a temporary table, stores the retrieved records into it and alias it CUSTOMER How can i reuse this temporary table for other SELECT statements SELECT field3, field4 FROM myTable INTO CURSOR CUSTOMER ---> results in an error saying Alias CUSTOMER has been used. More Like what (there are differences but slight). If you don't have a specific reason to use a table then go with cursors. For "temporary" tables they have advantages over tables. ...Show All
Software Development for Windows Vista XP Kind Administrative Privileges (for Developers).
This maybe the wrong forum, but as failed to find the right one, I want to ask that "simple" question here. The problem I am facing on Vista 5308, is to find a way to login into the system with full System Administrative privileges. Maybe that is easy and someone will know how to do that. What I'm talking about is not just playing with UAC settings, I know pretty much how to set them up. What I'm talking about is to be able to login and have the same privileges as any developer currently has login in As Administrator on XP. Unfortunately, I failed to find compatible to XP way of login in. For example: n WINDOWS\SYSTEM32 files are still protected you can’t delete rename them; n While majority of R ...Show All
SQL Server Is it ok to post a SSIS contract vacancy on this forum?
Hi, I wonder if anyone could tell me whether it is acceptable to post a SSIS contract vacancy on this forum If not, where would be the best forum/site to find UK-based SSIS developer contractors Many thanks, Gavin. Also many technology events and fairs are a great place to scout for people especially if they are pertaining to your requirements. . ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Can't compile 2D tutorial
While I can get the Space War example moving, I've been unable to compile any of the tutorials. For example, the drawing in 2D tutorial gives me a build error defined as: No overload for 'GameLoading' matches delegate 'System.EventHandler' This is for the line: this.Starting += new System.EventHandler(this.GameLoading); I must be missing something simple here, but I'm approaching the hair-pulling-out stage as I scan the tutorials for a clue. I even get the same error if I download the tutorials and cut and paste the text from those files. Any help would be appreciated. Make sure that your GameLoading method has the correct parameter list and return type. The GameLoading method ...Show All
Windows Forms Secondary DNS Server Cannot be resolved
I have a Domain controller with additional Domain Controller configured, Additional Domain controller host the primary DNS Server and Primary Domain Controller host the secondary DNS Server, now I have configured all the clients to get IP address from DHCP server. And I have configured primary and secondary DSN address in IP configuration, but when primary DNS Server goes down clients are not switching to secondary DNS server automatically. If I manually change the secondary DNS address to primary DNS in TCP/IP setting then the clients able to find secondary DNS. What should I do to automate this process ...Show All
Visual C# Executing individual classes
Hi everybody, I am developing an c# web application . I am quite new to VS IDE. Is there any option to execute and test the individual c# classes without running it in browser ie., can i test the individual classes in the IDE itself Thanks in advance, T. Jayakumar Under 2003 you say... In that case the Object Test Bench isn't available to you and instead I would suggest you look into NUnit which alows you to create unit tests quite granularly and then execute any combination of them. ...Show All
SQL Server Need sql script or statement to extract all relations from one tree
Suppose I have a table with relations (REL). In this table there are relations between parent en child, so the columns are: Rel_Id, parent_Id, child_Id. Example: 1, A, B 2, A, C 3, A, D 4, B, E 5, C, F 6, G, H 7, G, I 8, H, J I need a query which returns all relations from REL that are in the same tree as the input unit. In the example, giving D as input unit, it should return relations 1, 2, 3, 4 and 5, because A, B, C, E and F are (in)directly related to D and belong therefore to the same tree. Giving H as input, it should return relations 6, 7 and 8. (with a tree, I mean that a parent can have 0, 1 or more children and a child belongs at most one parent.) Thanks for your help in advance! Adamu ...Show All
