Rajesh batchu's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. DDS : 360, PC
Will DDS files that are created for PC work with the 360 is there not some subtle difference between the two or is this something that will be patched up via the XNA runtimes on the 360 upon asset loading ... I may be entirely off track here, but the texture content you stick into the content pipeline is processed and converted to some special format, converted per pixel at build time. Check out Shawn Hargreaves's blog to see how much processing goes on before the content is stuck into the XNB files. I can't imagine they don't convert to a format suited for both the PC and 360 platform. Post of interest on Shawns blog: http://blogs.msdn.com/shawnhar/archive/2006/11/22/customizing-how-models ...Show All
Visual Studio Express Editions VB.NET - Working with BindingSource
Hi people, I'm not sure to be using the BindingSource the rigth way. I've a DGV and set its DataSource property to a BindingSource. This is the way I use often the find and select methods of the rows coleccion. How can I move the pointer position in the DataSet to the find (primary key) to the index returned by this method I'm using the Filter so visualize only the rows I need. But something is missing here. To find a row and set the BindingSource.Position to the rigth line. Can someone help Pedro CruzPedro, Firstly, I have never seen the DataGridView.DataSource is set to Me.MyBindingSource. If you write a method called MyBindingSource and including the correct datas ...Show All
Visual C# Stripping out \r\n\0 characters from strings
Hi, I'm very new to C# and VS2005, used to working with Pascal. I have a socket within a service written in C# such that when you send data down the socket the service picks up the text and translates it into a set of actions that the service needs to carry out. I am fnding that the text contains some hidden characters that cause problems in the program namely I can't recognise where the end of the string is here is an example code snippet: if ((szData.Contains( "check" ))) //& (socketData.m_loggedin == true)) { appLog.WriteEntry( "Check Command Received and Logged in:" +szData); replyMsg = "Check Command Received\n" ; int i = 1; char [] delimit = new char [] { ' ' } ...Show All
.NET Development SQLDataReader.GetOrdinal() fails rarely with IndexOutOfRange
Hi everybody, We were developed some Web-Services that run against SQL Server 2000 with SQLDataReader that executing Stored Procedures in the DB. Most of time (95%) everything is running well, but sometimes (when exactly, we don't know) the same WebService that worked 200 times, fail. The code is simple: public string myFunction( int ANumber ) { string strRetVal = null ; SqlDataReader myReader = null ; SqlConnection MyConn = null ;   ...Show All
.NET Development Stroing generic object in xml element defined with type xs:anyType
Hi, We are developing a Service Broker component with one web method, which accepts generic request. We have multiple schemas and classes generated from these schemas. Now we want to wrap this schema classes in one schema of this generic request which is used in our component. The xsd is as follows: <xs:element name="RequestData" minOccurs="0" maxOccurs="unbounded"> <xs:complexType> <xs:sequence> <xs:element name="RequestDataXML" type="xs:anyType " minOccurs="0"> </xs:element> </xs:sequence> <xs:attribute name="Standard" type="xs:string" /> </xs:complexType> </xs:element> Now when a class is cr ...Show All
Visual J# using J# dll with ASP
Hi, I've been developing a product search that does queries and rankings with the database on the site. I got everything to work perfect on my test box, but I cannot seem to get it to run on the server. Even after I register it, I get Server object error 'ASP 0177 : 80070002' Server.CreateObject Failed It does this even with an incredibly simple J# object. Do I have to compile it on the server What all do I need on the server when I use RegAsm.exe to register it Thanks, Matt After much agitation, I figured out that I had to provide the /codebase switch. I don't know exactly why, since I didn't on my test box. I just noticed a difference in the registry editor between ...Show All
.NET Development C# Regular Expressions confusion
Hi everyone, I'm writing a client for the Cyan Chat protocol (http://cho.cyan.com/chat) and all of the usernames are sent to the client as: X[username]|^1Text The X prefixing the username is a colour code. Currently I can print out what users say in my richTextBox, but I need a regular expression to find and locate all usernames between brackets. I have the code to colour the names, I just need a regex to find them. I spent most of yesterday searching for Regex help, and testing it, but nothing that I've tried has seemed to work. I'm hoping someone here will have some expertise with Regular expressions and can tell me how to do this. Thanks in advance, Darryl I'm not a pro with Regex although I use it. B ...Show All
Visual Studio Express Editions Adjusting the cursor position in rich text boxes
Greetings, I have a rich text box named txtConsole and it is read only. My application prints information out to the text box but I have ran into the issue of it not auto-scrolling. How do I adjust the cursor so that it is at the end of the text box so that it scrolls correctly Thanks! Scionwest Hi, What's the problems about it The solution works very well, since I've tried myself. Pls feel free to let me know what the issue gonna be. Thank you ...Show All
Visual Studio Team System "TF84011: Could not connect to project server" error from client machines
What is the definitive solution to getting "TF84011: Could not connect to project server" errors when attempting to open/edit spreadsheets in team server from client machines I have TFS installed on a Win2K3 server running under virtual server on my workstation in my home. I have exposed the virtual server's IIS on a dedicated adapter to the internet using my fixed IP address. I cannot open these "files" from either the host workstation or by reference to the external IP. I have attempted to examine and correct the references to the URL in the spreadsheets and/or through Team Explorer properties, and I cannot find where these properties are exposed or editable. Please don't tell me I have to uninstall anything ...Show All
Windows Forms Buffering Images HELP
Im not sure if this is the right place for this post, if not I apologize in advance this is my first time on the forum. My question is - I am trying to write an Image Viewer program that reads the file paths from the file system and stores them in a list. Then it loads the first 25 images into an Image list(the 25 can be set to whatever I want.). That all works fine. The problem is when you get to the end of the 25 and its time to add more images. It works but is EXTREMELY slow. I cant seem to figure this out and have been playing with it for a while now. Any insight would be appriciated. Heres my code for adding to the buffer - public void vScrollBar1_Scroll( object sender, ScrollEventArgs e) { Thread addThread; i ...Show All
Visual Studio Express Editions How do I wait for a key to be pressed ?
Hello, I would like to know how do I wait for a key to be pressed in VB2K5, I've been looking on the MSDN a couple of times but couldn't find anything like it, there is a Declare Sleep from Kernel32.dll....., However it's not really what I'm looking for ! I'm looking for something like this, If Inkey$="" then End But this is very old VB Thank you all. If you just want to wait before exiting until a particular key is pressed you could try Do Loop While Console.ReadKey.Key <> ConsoleKey.Q or something similar ...Show All
Visual Basic EMAIL
I am using this code in vb.net 2005 to sent an email but an error FAILURE SENDING MAIL is allways appearing. Can someone show me where I am duing wrong. Try Dim SmtpClient As New System.Net.Mail.SmtpClient SmtpClient.Host = "localhost" SmtpClient.Port = 25 SmtpClient.UseDefaultCredentials = True SmtpClient.Send("glennzarb@gmail.com", "glenn_zarb@hotmail.com", "Test", "hi") MsgBox("sent") Catch ex As Exception MsgBox("Send failure:" & ex.Message) End Try I haven't installed any other programs or smpt's I kept it like this SmtpClient.Host = "localhost" and it is still telli ...Show All
Visual Studio Express Editions Having difficulties with a timer and an if-then statement
Hi, been spending a lot of time on timers and they finally make some sense now. In my program there's this button. When it's clicked a shell command is executed and right after that the program needs to wait until some folder is created (by an external process). It enabled the timer and the timer2_tick sub is executed... But the other process keeps running as well. I need to figure out how to pause everything except the timer that checks every 5 secs if a folder exists until the folder actually exists... Many thanks! Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick ICounterCount = ICounterCount + 1 MessageBox.Show(ICounterCount) If System.IO.Directory.Exists(HomeDirec ...Show All
SQL Server article row filter - 2 parameters
hello, i need to filter an article based on a user-supplied datetime filter (the datetime parameter is specified by the subscriber just before replication). at the same time i need to filter again by user (different subscribers get different rows). i already did the user-based filter using HOST_NAME( ). but the difficulty here (al least i think so) lies in passing 2 parameters to the filter. i cannot rely on using SUSER_SNAME to pass the user filter, because no one will want to create 500 user accounts. so i guess the only solution here is to pass both parameters using only HOST_NAME( ) and then write 2 splitting functions which uses HOST_NAME( ) as its parameter. am i right publisher/distributor is sql server 2005, all subscribe ...Show All
.NET Development How to Access a WebService's Url in the service class?
Hey Guys, I'm currently trying to access the URL of a web service in its constructor.I realised that no property exposes the URL.I need to store the url into the data base so that other applications can dynamically create references using the URL and call methods on this webservice. Something like this.... [WebService(Namespace = ".....")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [ToolboxItem(false)] public class Service1 : System.Web.Services.WebService { public Service1() { /*Need to access the Service1's URL here and store it to the database*/ } Thanks in advance. The web service code really doesn't have a concept of the URL, it just has a concept of fulfil ...Show All
