Nico_M's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. the error
I would like my game to come up to the opening scene, and when i press the spacebar it goes away and my game starts. I have tried something like this in my program: void _startGame; { using (Blank game = new Blank()) { game.Run(); } } But when i press spacebar it gives me an error. Thanks, for the help! Why not jsut set a flag when you hit space bool showSplash = true; in Upate() if (keyDown(Space)) showSplash=false in Draw() if (showSpash) { do the spash screen rendering } else { do the game screen rendering } ...Show All
SQL Server Understanding 'Nested join' syntax
I just came across of a query that has a syntax that is new for me: SELECT BridgeOrganizationStructure . ParentOrganizationCode , DimEmployeeOrganization . Emp_FName , DimEmployeeOrganization . Emp_LName , BridgeOrganizationStructure . SubsidiaryOrganizationCode , BridgeOrganizationStructure . LevelFromParent , FactAttempt . ActivityFK , FactAttempt . CurrentAttemptInd , FactAttempt . AttemptStartDt , DimActivity . Activity_PK FROM DimActivity INNER JOIN FactAttempt ON DimActivity . Activity_PK = FactAttempt . ActivityFK AND ( DimActivity . Activity_PK = 55 ) AND ( FactAttempt . CurrentAttemptInd = 1 ) RIGHT OUTER JOIN BridgeOrganizationStructure ...Show All
SQL Server negative values on a measure
have a measure called total sales amount in a FACT table some values are reported back as a negative number. anyone know the issue In the xml, int is represented as xs:int and bigint will appear as xs:long. In the designer they will appear as System.Int32 and System.Int64 respectively. I just did a quick test and the DSV did detect when I changed a field from and int to a bigint when I refreshed it. ...Show All
SQL Server Custom Task and Reading Package Configuration
Hello All, I have searched on this forum for a similar question but couldn't find it so I apologize if this has been asked. If so, I'd greatly appreciate a link to the question. I have created a custom task and am trying to read an xml package configuration file within my custom task. To be more specific, I have added an ADO.Net Connection to my database onto the package and have generated the appropriate tags within my package's configuration xml file. I'm not seeing the classes I should use to access the configuration file of the package I've created. Does anybody have any ideas how I can accomplish this or a link to a document that might cover the material Thanks! Jay_G Hello Kirk, Th ...Show All
Visual Basic Wait for a file to be created
I want to wait for a file to be created and when it has been created I want to move the file to another location. The problem is that the file is still being created when I try to move or copy it. My code: With Timer1 .Interval = 30000 .AutoReset = False .Enabled = True Dim PDF As String = Path.GetFullPath(Export) + "\" + Path.GetFileNameWithoutExtension(Source) + ".pdf" Log.AppendLine( "PDF File: " + PDF) While Not File.Exists(PDF) And Timer1.Enabled = True 'Wait for file to be created End While Timer1.Enabled = False If File.Exists(PDF) Then File.Copy(PDF, Dest) End If Try File.Delete(PDF) Catch ex As Exception ...Show All
Visual Studio Express Editions Database Connections
How we can connect an Ms Access Database with a visual basic express application dim DBname as string dim cn as string dim dbcon As New System.Data.OleDb.OleDbConnection DBname = "C:\Data\mydata.mdb" 'put your path and databe name here con = "Provider=Microsoft.Jet.OLEDB.4.0;User ID=Admin;Data Source=" & DBName & ";Mode=Share Deny None" dbcon.ConnectionString = cn dbcon.Open() 'Check that the database is open. If dbcon.State <> ConnectionState.Open Then MsgBox( "No Connection has been established" , MsgBoxStyle.Critical, "Connection Status" ) Else MsgBox( "Database Connected Successfully") End If ...Show All
Visual Basic Crystal Report Question
This would be my first time to make a report(a receipt actually) using Crystal Report.I had two querries in my access database and want to use in this report.My question would be, is it possible to use this two querries at the same time, I mean, say Querry1 deals with all the information of a certain customer that needs to be displayed in the receipt and Querry2 pertains to the transaction of the said customer.All the two querries were linked by the transaction number.Thanks... Hi, First add two tables in the report, create link between two tables with common key by using visual link expert, it will automatically maintaining master-child relationship, when you want to show report for particul ...Show All
Visual Basic Referencing a form object in a Mainapp.exe from a form in component.dll
Hi I have a form class in a .exe assembly (Main Menu Form A) and I have (Sub Main Menu Form B) in a class library assembly. Problem: I am having a hard time calling the Form A from Form B via the menu button, because I can not reference a .exe assembly from a .dll assembly without getting a circular reference error. What I tried: 1. From Form A: I tried to pass to Form B a variable(Me) to be set as the parent or owner of Form B. Then I tried to call instantiate a form A and show it, but that didn't work because of no reference to form A. 2. I tried to hide Form A and then from Form B try to just unhide form A, but that didn't work. Any assistance would be appreciated. I have spent several hours working on this, but it is ...Show All
Windows Forms status strip trouble: cant find status panel
Hi all. When i add a status strip on my form, im only able to add a label, a drop down button, a progress bar or a split button. In some examples that i've found on internet, i saw that there is a "statuspanel" too. the examples is this: http://www.c-sharpcorner.com/Code/2004/Sept/StatusStrip.asp I simply follow that example, but was unable to locate that status panel. Any help I think StatusPanel was only around in the beta of visual studio 2005, and pulled before the final release. If you really want to add a panel to a status strip you can use the ToolStripControlHost which allows you to host arbitrary controls inside the status stip. E.g. Panel myPanel = new Panel() ToolStripControlHost host ...Show All
Visual Studio Express Editions Group delimiters are not balanced
I was looking for a quick and dirty way of making an OpenFileDialog show thumbnails. Using the keyboard Five tabs, four Downs and an Enter seemed to do the trick so I thought I would use SendKeys (from a timer to overcome the fact that the dialog is modal) - I said it was dirty but it's only for my own use. The tabs work fine but sending a down key results in the error message of the title. At which point I gave up - anyone any ideas. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Timer1.Start() OFD1.ShowDialog() End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Static count As Integer ...Show All
Windows Forms Directory.GetFiles Gives CRC Error on DVD
Any ideas how to get around the problem I'm implementing a basic DVD playback. WMP needs the location of VIDEO_TS.IFO as the input; however when GetFiles is used with d:\VIDEO_TS as the input I get a CRC error. Some DVDs work fine. I'm scanning Resident Evil: Apocalypse. Once the VIDEO_TS.IFO is loaded to the WMP, the dvd object of the activeX will give you most of what you need about the current DVD's structure. ...Show All
.NET Development Conversion failed when converting datetime from character string.
ms visual studio 2005 sql erver 2005 I originally posted this question at experts-exchange without resolution http://www.experts-exchange.com/Databases/Microsoft_SQL_Server/Q_22069012.html http: / / www. experts- exchange. com/ Programming/ Programming_ Languages/ Dot_ Net/ VB_ DOT_ NET/ Q_ 22068922. html I get the following error when trying to insert into db from web app have tried.... txtrequireddate.Text.ToString("dd-MMM-yyyy ") reqrddate = Convert.ToDateTime(txtrequireddate.Text) reqrddate= CDate(txtrequireddate.Text) Server Error in '/' Application. ---------------------------------------- ---------- ---------- ---------- ---------- Conversion failed when converting datetime from character string. Description: An unhan ...Show All
Visual Studio 2008 (Pre-release) Reliable Publish Subscribe
As WCF gets close to shipping I have a stumbling block. How could one implement pub/sub in a reliable manner My thought so far have been. 1) List based pub/sub using a duplex contract, as in the sdk example - pros: service defines the contract, cons: maintaining the client subscriptions reliably when the server goes down. 2) Client may go down, so send over a queue binding - pros: service does not need worry once the message has been sent, cons: each client defines their own contract, service would need a way to dynamically discover each client and send messages 3) The delegate type in .NET is a good paradigm, i.e. the class/service defines the method signature and data. Could this be applied to WCF in a similar manner so the service, as ...Show All
Visual Studio Express Editions VB101SamplesBCL2 Using The serial PORt..
Well the time has come to start messing with the serialport...AHHHHH.. Downloaded the VB101SamplesBCL2 and loaded up the Usingtheserialport project.. Answered a lot of question right off the bat, BUT... I seem to have some strangeness going on. I built the project and moved the exe to a win98 test machine I use. All runs fine on that machine. I run the project in the enviroment on the XP machine and in the serialPort_DataReceived 'event' I get InvalidOperationException... cross-thread calls Begin Post:: System.InvalidOperationException was unhandled Message="Cross-thread operation not valid: Control 'textBox2' accessed from a thread other than the thread it was created on." Source="System.Windows.Forms" ...Show All
Visual Studio Express Editions Nav buttons
I am having trouble with my nav buttons on a DataBase. the code I am using is If mRowPosition < (mPersonnel.Rows.Count - 1) Then mRowPosition = mRowPosition + 1 Me.ShowCurrent() and it's telling me that my table only has one record ...Show All
