Kinlan's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. F14 XNA Game with Full Source
Well here it is. I finally got my first game into a releasable state. Screenshot, video, and full source available after the jump. http://aroganworld.blogspot.com/2006/09/f14-xna-game.html I couldn't have done it without the great help from this forum (and all those xna sites). Let me know what you think. arogan wrote: Thanks. Oh and if anybody is interested in hosting the file let me know. I really don't have a good place to host it. It's around 4.4MB. How about using CodePlex ...Show All
Visual Studio 2008 (Pre-release) Flaws in Linq syntaxis?
I really want the ADO.NET vNext team to comment on these 2 things. These have been bothering me for some time now. 1) the 'where is what executed' problem. See: http://www.thedatafarm.com/blog/2007/02/13/TheShadowySideOfLINQToSQL.aspx It contains a Linq query which actually doesn't result in a single query but in a query which results are evaluated in-memory, which isn't expected at all, and thus will result in a lot of queries. (point 2 in that blog). When is what executed in the db and when is what executed in-memory, which could trigger lazy loading or other slow constructs. To me, if Linq doesn't have a solution for this, it's dead in the water as too many people will be bitten by it sooner or later. It should be determi ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Need help - disappearing lines and solids!
Hi All, I'm having a big problem drawing lines for a C# application I'm writing. I'm using the DirectX SDK that came with visual studio 2005, directx 9 i presume. My problem is that when I draw triangles using either fillmode.wireframe or fillmode.solid, when I draw the (perspective) camera back too far the triangles disappear completely! The far plane for the camera is set to float.maxvalue. They last a little longer in wireframe mode than in solid mode, but either way is no use to me. What I need is a kind of 'hairline' drawing method, where the lines will always be at least 1 pixel x 1 pixel regardless of how far away they are from the camera... Can anyone shed some light on this Thanks in advance. Jon ...Show All
Windows Forms DsoFramer - Fails to load because current thread is not a single-threaded apartment
I am using NUnit to test out our application, part of which is a form that uses the DsoFrame ActiveX component. When NUnit runs, and our application tries to create the DsoFramer - new AxDSOFramer. AxFramerControl () - we get this message: System.Threading.ThreadStateException : ActiveX control '00460182-9e5e-11d5-b7c8-b8269041dd57' cannot be instantiated because the current thread is not in a single-threaded apartment. Is it possible to use DsoFramer in a form in combination with NUnit in this way I'm not up to speed on NUnit, but, to avoid this problem you'd have to configure the thread that NUnit uses to the Single Threaded Apartment state before it gets started. SetApartmentState(System.Thread ...Show All
Visual Studio Team System "All Files are up to date" - "Get Specific Version"
Hi, I try to get the latest version, but I get following message: "All Files are up to date" So I tried to get a specific version with the two options "Overwrite writeable files..." and "Force get of files versions..." but nothing changes... Then I tried to get the sources with tf get /all, but again nothing changes! Regards Simon Hello Simon ;-) 1. Go to the Source Control Explorer 2. Right Click Properties 3. Security - Tab Check the users.. Regards simon ...Show All
Visual C++ Indirections %==& and ^==*
Does anyone know the difference between indirections % and & as well as ^ and * If the only difference is that % and ^ are used on managed types, then why doesn't the compiler know the difference and allow the use of & and * on managed types thereby eliminating the need for ^ and % It makes me think there's more to this than I can find in reading documents. thx Herb Sutter covers a lot of this. I would look him up. Here's what I have so far: http://blogs.msdn.com/hsutter/ . In particular: http://blogs.msdn.com/hsutter/archive/2004/07/31/203131.aspx The first version of managed C++ extensions for Visual C++ used __gc * instead of today's ^. But that ...Show All
Visual Studio Express Editions Screenshots
hi everybody i have just 2 Quick questions to ask. 1) I'm able to take screenshots of my form but not outside it, how can I. 2)When I take screenshots the image is a little bit off target in the picture box, how do i center it My Code: Public Class Form1 Private Sub Button1_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim bm As New Bitmap( Me .ClientRectangle.Width, Me .ClientRectangle.Height) Me .DrawToBitmap(bm, Me .ClientRectangle) PictureBox1.SizeMode = PictureBoxSizeMode.StretchImage PictureBox1.Image = bm End Sub End Class THX IN ADVANCE Part of your question can maybe be answered by ...Show All
Visual C# How do I change/enable the configuration drop down on the Build events tab
Basically I’m trying to set up custom build events in VS 2005, and I can’t get the configuration Drop down to be not grayed out. I want one set of custom steps for debug and another for release. I’m programming a WinForms application in c#. I figured there is a setting somewhere that controls this, but I’ll be darned if I can find Any trace of it in google. Can anyone help point me in the right direction Thanks, E- Wierd I could swear that in the earlier versions vs6 , vs.net , vs,net 2003, this capability was supported.. I wonder why it was depricated. it's a very handy feature. Thanks for the help though! Eric- ...Show All
Community Chat Free Lists - Just a Q & D app I needed.
http://www.barrysumpter.com Free Lists is the only app there written in vb.net. Don't worry about the other products. I've only sold 1 of each. I have no fantasies or pretentions regarding sales. Best intentions to offer Free Lists as a usable product developed in my spare time over a three day period. Standard, evironments, interfaces change so often I've given up trying to conform. For me, vb.net has been an absolute nightmare. Any features left out are from frustration only. Any positive comments are welcome. Any positive constructive suggestions may very well end up in the next version. All the best to everyone. Oh My God! Don't know what that was. And don't remember seeing that come up before. So I ...Show All
.NET Development Exporting DataGrid to Excel
I have a windows form containing a datagrid. There are some buttons which i use to query a database and the results are loaded into the datagrid. I want to export the contents of this datagrid to an excel file. How can i do that in code Thanks. There is no direct way to do this, but there are several ways to accomplish it using your code 1. Use Jet OLEDB Provider. You need to create INSERT SQL statements and loop through the rows of the grid to insert records one\ by one 2. Use Microsoft Office Tools for .NET. This way is slower, but gives you more functionality and allows formatting of the data. 3. Write code that stores data into CSV or HTML. Those formats recognized by Excel. ...Show All
SQL Server Insert error on existing table
I am having the below issue. \Duplicate Key Values When inserting records into a table created through a RDA Pull(), many users experience duplicate key violations. One reason for this is Identity columns. SQL Server CE RDA does not set the seed on the Identity columns when a table is pulled. Source: Microsoft SQL Server 2000 Windows CE Edition Native Error: 25016 HR: DB_E_INTEGRITYVIOLATION Description: Value violated the integrity constraints for a column or table. Interface defining error: IID_IRowsetChange Param = 0 Param = 0 Param = 0 Param = Param = Param = This error can be returned when the user attempts to insert a row with an automatically incremented Identity column. With RDA, this u ...Show All
.NET Development Invalid attempt to read when no data is present.
Why I am getting Invalid attempt to read when no data is present this is my stored procedure followed by the code.. STORED PROCEDURE: USE shefa set ANSI_NULLS ON set QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: <Author,,Name> -- Create date: <Create Date,,> -- Description: <Description,,> -- ============================================= ALTER PROCEDURE [dbo].[sp_get_user] @login_user_id varchar(255), @login_password varchar(255) AS BEGIN -- SET NOCOUNT ON added to prevent extra result sets from -- interfering with SELECT statements. SET NOCOUNT ON; SELECT * FROM persons WHERE login_user_id = @login_user_id AND login_password = @login_password AND is_staff = 'Y' A ...Show All
Visual C++ Multithreading and DoEvents.
Hi, I have a dll in VC# (Visual Studio 2005). The dll was created by me and it has threads for sending and receiving data over sockets. ( Actually it was a server code I was working on and now I needed to integrate with a third party tool which is in VC++, so I created a dll). As the threads had infinite while loops in them I was using Application.DoEvents before calling the while(true) statements in the VC# server. When I created the dll I had to remove the doevents part ( as there are no forms in a dll). Now when I use the dll in the VC++ code, it really slows down the application ( I am normally rendering frames at 40fps but when the sockets start sending and receiving I only get 1 or 2 fps). So my first question is that is there ...Show All
Visual C# Parametrized Query in Visual C# 2005
Hello, I have a problem in setting a dynamic query in my application. Actually, I know how to work with a parametrized query and how to pass a value for one of the elements in my where clause, but I need to pass more than a value like other criteria or generally i need to change the structure of my SQL in the given query. My database is Oracle 8i. Does anybody know how I may address this Thanks Sorry M, I have no idea either. I never use the tableAdapters. I much prefer the old DataAdapter, SQLConnection, SQLCommand way of doing things. I think tableAdapters are compiled/created at design time, which is why you have to use the wizards to fill them. Unless you start m ...Show All
SQL Server Combine 2 select statment result in one table
Hi All, I am new in the Fourm. I have a one Problem. I have a two select stament that are return 2-2 column that are in the differnent table. I want that return in one table...... Ex I am writing 2 select statment below.. 1. select count(product.ProductID) as productCount,AffiliateHits.affiliateID,product.Name as [Name],product.ProductID from AffiliateHits,product where AffiliateID like 'SELF'--@affiliateID and product.ProductID=AffiliateHits.ProductID group by product.ProductID,AffiliateHits.affiliateID,product.Name 2. select count(*)as OrderCount,orderdetail.productid from [order],OrderDetail where [order].sourceID like @affiliateID and [order].addedon between @fromDate AND @toDate AND [order].orderID=OrderDeta ...Show All
