Surezsu's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Bug in XACT Tool?
Hi, I think I have found a bug in the XACT tool (October 2006 version). Do this: add a new wav to a wave bank move the wav file to a different directory on your hard drive try to build the xact project (or try to audition the wav) XACT tool will now complain that the wav file cannot be found and ask you to enter a new path clear the path, i.e. leave the edit box empty and press ok XACT tool will now "hang" -- David And here's another one: ------------- Begin Dump Exception ------------- Exception Type: System.NullReferenceException Source: XactInterop Message: Object reference not set to an instance of an object. Clickable StackTrace: (Unknown Source Locati ...Show All
SQL Server xp_enumdsn in 2005
Hello, Does anybody know what happend to xp_enumdsn in 2005 The sp_enumdsn is there AND makes a call to [distributor].master.dbo.xp_enumdsn, but the actual xp seems to be missing from master catalog and views. Previously in 2000, you could simply EXEC master..xpenumdsn. Now in 2005 you need to explicity set up a distributor even if you do not intend to replicate as I see it. Any expert opinions/answers would be appreciated. Jim OK Zhiqiang. I finally got it. I had to disable any other services i.e. Agent, etc. from assuming the Single user slot before I could get in there with my OSQL command. Here are the results below. I know you are doing your best but I need to stress that SQL Development/SQA needs to fix ...Show All
Visual Basic any buddy have file splitter program coding
dear friends Any buddy have the program coding of file splitter in vb.net 2005. plz send me. thanks in advance Ravi its not an easy task and you would also have to do some research about it. you can read the file using the BinaryReader and read the amount you want, then right that amount to another file using BinaryWriter, and continuing on until no more data is left to be read from the original file. a simple search on google shows this first hit: http://www.codeproject.com/vb/net/file_split___merge_tool.asp ...Show All
Visual Studio Team System Does anyone know how to link bugs in VS2005 to MS Projects?
It seems that "tasks" are linked to MS project but "bugs" are not. What the trick Thanks! Mohammad it is very helpful! I found some links on how to customize the definition and I am going to give it a try. It would be nice if I don't have to do this manual work, though:) We are using Agile template and I guess in Agile by default people don't track the bugs Anyway, thanks! ...Show All
.NET Development Visual Studio Upgrade???
Hi all, I have the 1.1 Visual Studio and I am having trouble working with the new standard of 2.0 for Data Base communication. What can I do Thanks, JR Yes that is exactly my problem... what can I do... Does Visual Studio 2003 is built to upgrade to the new .NET 2.0 standard! ! ! JR ...Show All
Visual Basic Hiding, but not overiding or replacing, a inherited property
My last thread was locked before I could get my question anwsered, but i realize that the moderater did it because he thought my question had already been anwsered, which is my fault because I did not explain my question clearly; I am a poor writer of English. I know that the forums must be kept clean, so let me refrase my question: I want to make the Height property not useable from outside the class I inherited from usercontrol, but it is not virtual so I can NOT use the override and browsable(flase) method, I cannot use the new key word because I still need the height property inside of my class. Any suggestions would be much appreciated. Right. He seemed more interested in hiding it from the designe ...Show All
Visual Studio Express Editions printing items from database
I am attempting to print items from a database. I have added the items as objects to an array list. When I click print preview, the items show exactly as I intended them to be. The final calculation in the preview is correct. However, when I do the actual printing, the calculated number (TotalPremium) doubles Sometimes, the items print more than once. Why is the print preview correct, but the actual printed page is not. Please see attached code. Thanks for your help. Dim RatingFont As New Font( "Tahoma" , 8, FontStyle.Regular) Dim LineHeight As Decimal = RatingFont.GetHeight yCoord1 = e.MarginBounds.Top xCoord = e.MarginBounds.Left yCoord2 = yCoord1 + LineHeight yCoord3 = yCoord2 + LineHeight yCoo ...Show All
SQL Server detecting & deleting duplicates in batch vs proc
I know how to detect & delete dups/or >dups in test with a select clause, this works fine in a small table, but if the table has a million rows say, it sounds like a proc would be faster: my question is: How do I display those rows in a proc for detecting what the problem is. The print stmt. doesn't seem to work and I wondered if I had to go through the process of building an output stream. The proc creates okay but I'm stuck after that part. thx Kat -- very rough code below SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO create proc dupcount @count int as set nocount on select categoryID, CategoryName, Count(*) As Dups from Categories group by Categoryid, Cate ...Show All
SQL Server Question Regarding Scenario On DataMining
Hi to all I want to know how achieve the following scenario, I will highly encourage if anyone knows the solution please mention it through steps. The scenario is I have a table named “CreditCardTable ” with following schema , the table is pretty much what one expect from a simple credit card application that will present form to user who fills the application of credit card and data going to be filled into the table. Later an analyst will review the data and will be accepting or rejecting the Credit Card along with some other fields as seen in the schema. -----Schema -------- CustomerName Bigint Age int DOB DateTime LimitAssigned Bigint Analystname varchar Salary varchar Gender bit Qualification varchar Country va ...Show All
Windows Forms execute control validation
Hello, My control has validate event handler that raises when the control looses focus. I want to be able to call this validate event handler from code (and no, I don't want to write a function). Is there a way to call this handler, or maybe cause the control to loose focuse Thanks. Because the event handler is just a function you can simply call the relevant function ala: yourControl_Validating(null, new CancelEventArgs ()); Is this the sort of thing you are looking for Another option you might try is calling the SelectNextControl() method to have the next control on the form be selected so that yours loses focus. ...Show All
Visual Studio Express Editions Matrix implementation problem
Hi everyone, I am implementing a matrix program which create matrix according to the values on a file and write to or read from files the values of the matrix. However, since I am not able to compile my program, I would like to ask you that whether my class si logically correct and whether it gives a compile time error or not. If there is unexpeted situations in my code, would you please help e to fix them class SymmetricMatrix { public: int index1; int index2; int **matrices; /* * Constructor that initializes an empty matrix with a given size. */ SymmetricMatrix(const int matrixSize){ size = matrixSize; matrices = new int*[size]; for(int a = 0; a < size; a++) matrices = new int[size]; // assigni ...Show All
Smart Device Development Populate ImageList from Urls at run-time?
Is it possible (preferably in C#.net) and on Windows Mobile 5.0 to populate an ImageList with Images (JPEGs) from some URLs (this is part of a search result) and will need to be done at run-time. Any help would be much appreciated, as I can't really seem to find a way to do this. Okay, this isn't working. Once it gets to pictureBox1.Image = TmpImage; I get an error message of "An error message cannot be displayed because an optional resource assembly containing it cannot be found" and Stack Trace of at Microsoft.AGL.Common.MISC.HandleAr() at System.Windows.Forms.Control.Invalidate() at System.Windows.Forms.PictureBox.set_Image() at FlickrMobile.Home.getImages() Any ideas would be greatly a ...Show All
Visual C# Events
I know how events/delegates works. its when implementing them that seems to be the problem with me. now... I have: a Form several classes the form knows nothing, it only knows about 1 class, which it instantiates. this class instantiates other classes. The form, nor do the other classes, need to know about each other. now, I have successfully created events which when raised from the main form, one of the classes acts upon it - thats all good. what I want now, is the complete opposite. I want to make an event where, in one of these classes (not the class the main form creates) I can raise so that the main form picks it up and acts upon it. Since I am mostly confused at times when events are involv ...Show All
SQL Server Conditional Where using a Parameter
How do I construct a select with a conditional where: If DefaultWH is not blank I want to add a "AND part". SELECT DISTINCT Name FROM Warehouse WHERE (Cono = @Company) CASE WHEN @DefaultWH' <> ' ' THEN AND (@DefaultWH = whseid) END My example would work in both scenarios. This is what it does: The ISNULL syntax returns the value of @DefaultWH if it is NOT null, and the value of WhseID if it is. So, If parameter2 is blank, change it to null, and the AND clause will look like this: Parameter1 = 'ABC Company' Parameter2 = blank (Unselected) Select Distinct Name from Warehouse Where Cono = 'ABC Company' and WhseID = WhseID So this e ...Show All
Visual Studio Express Editions Populating a Dataset from an SQL Database
I am using VB 2005 Express Edition! Also - this is my first attempty at accessing an SQL database, so I acknowledge that I have probably done something very silly but at this stage I am stumped and need some help. As a reference on how to do this, I used KB Article 301216. I have basically copied exactly what was shown in the article changing names to suit my requirements and have come up with the following code :- Dim connection As New SqlConnection(ConnectionString) connection.Open() Dim adapter As New SqlDataAdapter ReadString = "SELECT * FROM configuration" adapter.SelectCommand = New SqlCommand(ReadString, connection) Dim DSetCONFIGURATION As New DataSet( "CONFIGURATION&qu ...Show All
