Remus Rusanu's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. XNA with other languages
Hello, my name is Brian i am an Indie developer looking into the XNA. My question is, will XNA ever be able to be used with VB.net and will microsoft allow it as a language to be used whilst creating Xbox 360 and Windows games than you. This is the site I ended up using the most. Anytime that site didn't have what I was looking for, typically I could find it pretty quick just Googling for it. Hope that helps and like I said. Once you know a .NET language like VB, it's not too hard picking up another one like C#, I'm sure you'll be up and running working on an XNA game in C# in no time at all...although when you start adding curly braces to your VB code you might feel a little silly... ...Show All
Windows Forms "Foreign" msi files in a Setup project
Hi there: Quick question: my application uses SMO, and I need to install that on the user's machine. I got the download from Microsoft in the form of a .msi file (the Microsoft SQL Server 2005 Management Objects Collection download from http://www.microsoft.com/downloads/details.aspx familyid=d09c1d60-a13c-4479-9b91-9e8b9d835cdc&displaylang=en ) . Is there any way for me to incorporate that msi file into my setup project I tried going through the prerequisites (I already have .Net 2.0 and Sql Server Express in there), but it is not dynamic enough to allow that. I could try and package the SMO assemblies one by one (the dlls were already added as dependencies), I'm just not sure how to force them to be installed in the correc ...Show All
SQL Server SQL Query
Hi, i have an SQL query as follows: -- SELECT GRAPH_INCIDENTS_LIST.INCIDENT_DATE AS [Date], Count(GRAPH_INCIDENTS_LIST.ID) AS [Count] FROM GRAPH_INCIDENTS_LIST WHERE 1 = 1 GROUP BY GRAPH_INCIDENTS_LIST.INCIDENT_DATE UNION SELECT [EventDate] AS [Date], t_Events.Count FROM t_Events ORDER BY [Date]; -- which produces results like: Date | Count 04/01/2006 | 1 14/01/2006 | 0 14/01/2006 | 14 20/01/2006 | 5 21/01/2006 | 6 22/01/2006 | 12 ... notice that is has two enteries for date 14/01/2006.. one from the event table and one from the incidents query.... how can i narrow this union to only have one entry for 14/01/2006: Date | Count 04/01/2006 | 1 14/01/2006 | 14 20/01/2006 | 5 21/01/2006 | 6 22/01/2006 | ...Show All
Visual Basic Online help doesn't prompt for Proxy Authentication
Hi, If I want to access external web pages through my company's LAN then I have to go through a proxy and that proxy prompts me for authentication before I can continue. This is true for any application accessing the internet including IE, Windows Media Player and RealOne Player. However, not for Visual Studio 2005 Express Online Help it seems! When trying to access online help, instead of being prompted for my internet username and password, I get the following error: 'Search Failed The request failed with HTTP status 407: Proxy Authentication Required.' Why can't the help system prompt me for the authentication details as other applications do Is there a work around for this Thanks Oli Great - I couldnt fi ...Show All
Windows Forms Add and check if record in the database
I am trying to get to the database and see if there is a record there, set a bit to 1 , making it visible, because the records that are "deleted" have that bit set to 0. So if the record is not there then just add a new record. Here is what i try to do, thank you try { SqlCommand sqlTry = new SqlCommand("Select * FROM tbl_Categories WHERE categoryName = '" + txtCategory.Text+"'",sqlConn1); sqlConn1.Open(); sqlDr = sqlTry.ExecuteReader(); //Loop through (which i am not sure how to do, If it finds a record then update while (sqlDr.Read()) { } if ( record found) { SqlCommand sqlUpdate = new SqlCommand("UPDATE tbl_Categorie ...Show All
Visual Basic VB.NET UserControl used in VB6 application
Hi. I build in VB Net 2005 an usercontrol that contains a toolstrip.On this toolstrip I add in runtime 9 toolstripbuttons.The code in which I add those buttons is: Public Sub AddButtonsOnToolbar(ByVal intNob As Integer) Dim tsButtons(8) As ToolStripButton For i = 0 To 8 tsButtons(i) = New ToolStripButton tsButtons(i).Tag = i tsButtons(i).Image = System.Drawing.Image.FromFile("D:\Work\Controale_Espot\Pictures\01.gif") tsButtons(i).AutoSize = False tsButtons(i).Size = New Size(48, 48) tsButtons(i).ImageScaling = ToolStripItemImageScaling.SizeToFit If i = 0 Then tsButtons(i).Margin = New Padding(80, 5, 0, 2) Else tsButtons(i).Margin = New Padding(10, 5, 0, 2) ...Show All
Visual Basic My.Computer.FileSystem object ???????
I am trying to use the following expresience in VB .Net 2003: My.Computer.FileSystem.RenameDirectory("C:MyDocuments\Test", "SecondTest") But I am getting the following error: Name 'My' is not declared. eventhough I did include: Microsoft.VisualBasic namespace in the import option of the project properties. Any Idea, Thanks. Hi Fares, the ' My ' feature is new to Visual Basic 2005 and is not available in VB.Net 2003. Andrej ...Show All
Visual Studio 2008 (Pre-release) Treeview, texboxes and July CTP
If you have a treeview with textboxes in it, the textboxes can't get focus anymore. Is this a bug ...Show All
SQL Server sp_send_dbmail & file_attachments
Hi, I use the sp_send_mail procedure and that works fine. But when I try to add files in attach that does not work. In fact, with local files, it's ok, but with files on a remote computer, that does not work. Maybe we need to specify a user in the profile used (in the sp_send_dbmail profile) and give right on him on the folder on the remote computer Anybody have ideas Thanks in advance Jerome ...Show All
Visual Studio Team System Custom Actions in a Team Build
I am trying to create a custom build action for a team build for one of our solutions. Our project is split into 2 main sections, an Architecture solution, and a GUI. The GUI uses Dll references to a common directory on a server where the latest release of the Architecture project resides. These references are resolved from an M: drive which for local development is either a mapped drive from the server or a subst to a local folder. When trying to create a Team Build for the GUI solution, initially it fails as it cannot resolve references, though the hint path is searching for M: drive. What I would like to do is perform a 'subst m: $(SolutionRoot)\Architecture\Binaries' before the compile starts and then 'subst m: /d' after the compile ha ...Show All
SQL Server Problem to connect Access 2003 to SQL Server 2005 Express
Hello, after successfully connect Access to the Server I want to add a table. I got an error message: With this version of MS Office Access you are not able to make any drafts because this version of SQL server you are connected to does not support this. Check the MS Office update website for the newest downloads. You habe connected to a version of SQL server which is newer than SQL server 2000. Versions: SQL Server runs on a MS Server 2003 SP1 Access 2003 (11.6566.6568 SP2) on an MS XP Pro SP1 all on actual patch level. Any ideas what's wrong :-) Klaus Are you connecting using an Access ADP or MDB file I suspect you are working with an ADP - so y ...Show All
Windows Forms System.IO.FileNotFoundException In Windows Application
Hello! I have developed a windows Application using VS2003 (VB.NET) to enable my client to export Crystal Reports 8.0 to PDF,HTML and Excel formats. Since the Excel export that comes with VS.NET is not very user friendly, I used Interop.CRAXDRT.dll reference to export the reports to Excel. The application workes fine on my workstation, but when the client installed it, he is getting *** System.IO.FileNotFoundException: File or assembly name Interop.CRAXDRT, or one of its dependencies, was not found**** error. I have tried everything I can think of to resolve this in vain. The interop.craxdrt.dll is in the application bin folder. I made the client copy the file to his system32 folder. Gave the application folder full control permissio ...Show All
Visual C# Inherit Generic Forms
How can generic forms / controls be inherited I made some generic forms and controls i want to use in my application as base forms/controls. When i inherit these forms/controls i cannot view the designer anymore. Is it possible to inherit these generics and how Yeah, reusing UI-logic with different "business classes" was exactly the reason I looked at this stuff. Good luck with the toolbar/resource thing. Having to do it in code would almost be an acceptable trade-off given how "nice" the inheritence thing works, and how little duplicated code you end up with. ...Show All
Community Chat Windows Vista Gaming Performance
I just read over on Neowin that gaming performance in Vista will be 10-15% slower in Vista. Can someone tell me whether or not this is true Thanks! - James Hummm... this Areo feature can be a bad for me because I am running CS:S on window mode, not full screen mode. No matter what, my computer will take a big hit. I guess I will make a gamming account that only uses XP UI. ...Show All
Windows Forms getting error when passing parameter to stored procedure
Conversion from type 'DBNull' to type 'Integer' is not valid for column "Qty" Dim itemno As Integer = InvoiceDetailsDataGridView.Item(3, InvoiceDetailsDataGridView.CurrentRow.Index).Value Dim qty As Integer = InvoiceDetailsDataGridView.Item(6, InvoiceDetailsDataGridView.CurrentRow.Index).Value User types number in qty field of "invoicedetailsdatagridview" The qty is then supposed to be passed to a stored procedure to subtract "qty" from column "in stock" in inventory table. then updates "instock" field. Hi, Cammyr I'm afraid the information you provided is not enough for us to solve your problem, could you explain you q ...Show All
