hUmAnzZ's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. 2d Platforms
I understand it'd be pretty difficult to help me with a problem with me just describing it, without seeing code so... http://skynes.tripod.com/TheWizard.zip There's a link to a zip file containing my XNA project and all images. The Project so far is a mix of a couple of tutorials I found online (2d wizard and a tile engine) along with sprites I found online. I haven't made any of my own sprites yet cause I don't see the point until I have everything working, but I will be using all my own original sprites when it works. Anyway. So far it's a wizard who can jump and shoot fireballs. An enemy (movement currently commented out) walks across the screen, firballs dont do anything yet, but touching the enemy costs you a life. M ...Show All
SQL Server Replication Error 7601
I am getting the following error when i try to replicate from a sql server 2005 box to another sql server 2005 box: "Cannot use a CONTAINS or FREETEXT predicate on table or indexed view 'UserData' because it is not full-text indexed. (Source: MSSQLServer, Error number: 7601) Get help: http://help/7601" Now ive spent 3 days trying to fix this. Ive googled it many times and came across some suppossed workarounds like running sp_changepublication @publication = 'yyy' , @property = 'sync_method' , @value = 'native' , @force_invalidate_snapshot = 1 OR sp_changepublication '<yourpublicationname>','sync_method','native' SQL tells me that they apply succesfully but yet when i try to replicate, alas the same error. Anybody h ...Show All
Windows Forms ToolBox Tab
Hi, How I can define default toolbox tab for my custom control Maybe it must be some class attribute Thank you. Hi tovarish, here have an article tell how to build custom control step by step using c# http://www.codeproject.com/cs/miscctrl/cutebutton.asp and for place them to toolbox we can: From a new Windows Forms project, we can add the compiled custom control to the toolbox. I do this by right-clicking the toolbox, selecting Customize Toolbox , and from the .NET Framework Components tab, clicking Browse and locating the Control Library DLL # (in our case, ctlCuteButton\bin\debug\customcontrol.dll ). The component customcontrol will then appear in the Toolbox. best regards! ...Show All
Visual C# error in data grid
The code below is for when you click on a cell. However I keep getting a index error why The error happends here DataGridViewRow row = Parm_dataGridView1.Rows[e.RowIndex]; says index must be System.ArgumentOutOfRangeException was unhandled Message="Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index" Source="mscorlib" ParamName="index" StackTrace: at System.Collections.ArrayList.get_Item(Int32 index) at System.Windows.Forms.DataGridViewRowCollection.SharedRow(Int32 rowIndex) at System.Windows.Forms.DataGridViewRowCollection.get_Item(Int32 index) at icxprotype1.Stationstatus.ShowDetil_Click(Object sender, DataGridViewCel ...Show All
Windows Live Developer Forums Driving Directions Display
Hello, I have a driving directions code that when you put an address in the route and directions popup, is there a way to make it so the directions get inserted into a area below the map instead of it being a popup (alert) My code is below. <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src="http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></script> <script> var map = null; function GetMap() { map = new VEMap('myMap'); map.LoadMap(); } function ...Show All
Visual Basic Adding list items from delimited text file
Back again with another Noob question. My form will ammend user's input via text box to a delimited text file, but i want to get the info from the text file to show up in a listbox. How do I accomplish this I already have the listbox on my form and have tried ... My .Computer.FileSystem.ReadAllText( "C:\Entries.txt" ) and Private Sub ListBox1_SelectedIndexChanged( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged Dim filename As String = "C:\Entries.txt" Dim fields As String () Dim delimiter As String = "," Using parser As New TextFieldParser(filename) parser.SetDelimiters(delimiter) While Not parser.EndOfData ...Show All
Game Technologies: DirectX, XNA, XACT, etc. The values used in the attempt to create the GraphicsDevice were invalid.
Is this because my graphic card does not support shader model 2 I didn't even know of this requirement till I saw it on the readme file. Time to change my geforce4 What type of card do you have We should be giving a better exception message than that (i.e. we check for lots of things and throw better exceptions but that one must have slipped through.) ...Show All
Visual Studio Licensing question
My apologizies if this is posted in the wrong forum. I was wondering if there is any way to purchase a single user license for Visual Studio 2005 Professional edition We have the product already installed, but need to install it on 2nd workstation. We were hoping to avoid purchasing the full package, and instead, simply purchasing a 2nd user license. Any input would be greatly appreciated. Thanks. I think the best place to ask your question would be to actually phone up the Microsoft Product Support Services (more of a technical support really) but they will be able to transfer you on request to your licensing query. http://support.microsoft.com/contactussupport/ ws=support ...Show All
Visual Studio Express Editions Open File
I have searched every where for this and I can't find what I need. I made a ListView and it is populating file names based on a certain directory on local hard drive. I am trying to figure out how I can make it so when the user clicks on the file name in the ListView it will actually open that file. This seems like it should be a simple thing to do, but I can't find anything on this. Thanks Okay I just found this and it worked Process.Start("X:/filepath", Nothing) Now I am trying to figure out how to send the filepath to this. Right now I am using this Private Sub ListView1_ItemActivate(ByVal sender As Object, ByVal e As System.EventArgs) Handles ListView1.ItemActivate So when someone clicks on an Item in the ListView it ru ...Show All
.NET Development .Net Remoting and Network Load Balancing
Hello, I am a little unclear on how Network Load Balancing on Windows Server 2003 handles single call remote object requests. With a single call object the target server will just keep creating instances of the object and allow it to handle the request. How does load balancing "know" when a server is loaded I know there is a ten second connection window between the client and the server but can Network Load Balancing take into concideration the number of remote objects that currently exist on a server in the group Or maybe it tracks connections Again I am unsure and any help will be appreciated. BH I believe I have the answer. When a client requests a remote object of any type, clien ...Show All
SQL Server Working around Temp tables in Reporting services.
I have been working for days to translate a report out of an old system and in SQL reporting services. Getting the basic code down to get the required data was easy, however getting it to work in reporting services has turned into a nightmare. Why, because I have been told that SQL reporting services does not allow temporary tables...HUH! Ok, so how am I supposed to take three data queries and munge them together into a report. Here is the query that does work, can anyone give me an idea of how to make this work given the limitations I have run up against. I have already thought of using a store procedure, but we have ruled that out since would likely have to do it via linked servers, which would be expensive. We thought of ...Show All
Visual FoxPro Problem trying to create an Encryption Library
I have followed the example for creating a C# Encryption Libary, but receive numerous errors with regard to no overload method ' ' requires 2 arguments, I have verified that my code is exactly as the example provided by microsoft and found no difference. Has anyone ever tried this code and had problems. Is there any other code to create an encryptoin library in C#. I would appreciate any and all assistance. I am responsible for figuring out how to encrypt the connection string for our web config files in Asp.net page. (we dont' have the .net 2.o framework, we are using Visual Studio 2003 with 1.x framework Thanks Heather This did work, but now when I run the EncryptionTest Project I receive the following error at t ...Show All
.NET Development Fixed Length Text File
In c# VC 2005 - How do I read in a fixed length text file - keeping the fields in an array Sample format "A 2222222 2007/01/01 5.55 " StreamReader sr = new StreamReader(filePathHere); string line = sr.ReadLine(); string[] words = sr.Split(' '); // or string[] words = sr.Split('\t'); sr.Close(); For this to work fine you need to have right Delimeter. Otherwise you'll not get the right results. If you need to read all lines then you need a Loop on sr.ReadLine() like while((string line = sr.ReadLine()) != null) { } I hope this will help. Best Regards, Rizwan aka RizwanSharp ...Show All
SQL Server Troubleshoot Distributed Service Broker App
Hi There Ok i have done the following on my target instance i have created an endpoint, xml schema, message types, contact, activation sp , queue and service. On the initiator i have created an endpoint, a route to the target service, same xml schema, same message types, same contact, queue and service. When i try test this by doing the following: SET @msg = CAST ( @body AS XML ) BEGIN DIALOG CONVERSATION @dialogHandle FROM SERVICE [http://ewx.co.za/DemoInitiatorService] TO SERVICE 'http://ewx.co.za/DemoService' ON CONTRACT [http://ewx.co.za/DemoContract] ; SEND ON CONVERSATION @dialogHandle MESSAGE TYPE [http://ewx.co.za/DemoMessage] ( @msg ); END CONV ...Show All
Windows Live Developer Forums Problems with the GetRoute method
Hi, I've tried to use the VEMap.GetRoute method, but the run line from the start to the ending location doesn't appear, and the pushpin over the ending location doesn't bring a message... This is my code...Is there someone who can help me Thanks a lot... <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd "> <html xmlns=" http://www.w3.org/1999/xhtml "> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <script src=" http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js"></script > <script> var map = null; functi ...Show All
