Sai A's Q&A profile
Visual Studio Express Editions Generating all possible character combinations
Hi everyone, I just wanted to know if you have better ideas on generating all possible 4-character string combinations in C#. Something like: aaaa aaab aaac ... zzzz What i have in mind right now are nested for loops. I wonder if there is a .Net function for automatically incrementing characters/string. Thanks a lot. -Ver hi, you are welcome, actualy the idea is simple , do you know briefcase lock it has a bassword to open, few days ago my friend played in the lock so i had to open it, so i set down and tried numbers from 000 to 999 till i opend it again this is the same idea, get the number and try you keep add 1 each time till you reach 009 then you move 2 wheels one back to 0 the one beside it ...Show All
Smart Device Development WM_GETTEXT problem in Mobile 5.0
Hi there! the following statement in an unmanaged c++ dll, which worked fine under Mobile 4.1 fails under 5.0: WCHAR mask_nm[16] = {0}; SendMessage((HWND)btn_hwnds[obj_index + firstOpenObject], WM_GETTEXT, 0, (LPARAM)(LPTSTR)mask_nm); In 4.1 mask_nm contains the caption of the button, who's HWND is passed to the function, in 5.0 mask_nm is an empty string. I worked around this problem by getting the text from elsewhere, but would like to find the real cause of the problem. The dll had not been recompiled before the first test, btw I think you might find it easier to use GetWindowText function The problem with your code is that you pass 0 as WParam. It should be the buffer size in charac ...Show All
Game Technologies: DirectX, XNA, XACT, etc. xna game made in xp run on vista?
i made a small pong game and when a friend with vista tried to run it, it didnt work do you have to do something different for games compiled in xp to work on vista sorry if its a "noob" question. Does your friend have the XNA Framework runtimes installed He/she either needs to have XNA GSE installed or the XNA Framework Redist (which just installs the XNA Framework bits on the machine). Paul ...Show All
SQL Server Losing config file between child packages and *$##@!- Passwords!
I have a parent package that uses Execute Package Task against three child packages. They are all setup to use the same configuration file, and the packages are all located in the same folder. Purpose of the configuation is to use the same connection strings for each child package. I removed the path from the config. file specification to facilitate deployment. During debugging, the child packages cannot find the config file when they are run via the parent unless the full path is specified. If run standalone, a child package can find the config. file without the path. As I said, all dtsx filaes and the config file is in the same folder. Also, the password-removal issue is killing me in development. Everytime I touch the config. f ...Show All
.NET Development Error 26 Caused by one specific table
I have a VB .Net 2005 app conected to an sql server express database. Most of the forms open without a problem and show the data they should without a problem on both my development machine and at the clients site. I have now added a new table to the database with a new form and I made a change to an existing form to use this new table. On my development machine I am having no problems retrieving or updating the data from the new table. Unfortunately at the client site I am having probelms with both the new form and the modified one (all other forms open and show data quickly and without any problems). When I open either form it takes a long time and then I get the following message: System.Data.SqlClient.SqlException: An error has oc ...Show All
SQL Server Window Title in RS 2005
Hi, am calling MSSRS Reports from an asp.net application. the Reports are opened in a new browser window, In MSSSRS 2000, the new windows opened have the window Title equal to the report name. but in MSSSRS 2005 the window title justs shows "Report Viewer" as the window title for all the report.s Can anyone gimme a quick solution, so that the report name appears in the window title when i call the reports in MSSSRS 2005. Quick solution will be appreciated. Thanks. You could try adding some java script to the aspx-file that is used to render the report. There was a discussion in the Reporting Services news group some time ago, with a script example: http://groups.google.com/group/mi ...Show All
SQL Server SQL Timeout through ADO but not from Query Analyser
I have a strange problem running a stored proc in SQL 2000. The proc returns XML and I'm using ADO to call the proc and return the data as a stream. When I call the proc through ADO, it times out because it is taking 40 seconds to run and my command timeout is set to 30. I can increase this no problem but the strange thing is that when I run the same proc from within query analyser, it completes in under a second. I put profiler on it tracing the command start and finish events and it's definitely taking 40 seconds between start and finish. The proc is used with various input parameters and the timeout is only occurring for some combinations of inputs, but it always seems to take much longer than it does when run from query analyser. Can ...Show All
SQL Server Total Amount of Triggers Per Table
Hi Just a quick question taht I hope someone can answer, What it the total amount of trigger per table I understand that it is better to have as least as possible for performance Thanks Rich Only one INSTEAD OF per operation but "unlimited" of non INSTEAD of. HTH, Jens Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
.NET Development Parsing double value from a string
Hi all, I need to parse a string which is in the following format (example): -0.0004 USD/Tonnes Basically, it will be a double value, might be preceded by the negative (-) sign and followed by <Currency>/<Unit of Measure> . The result should be just the double value (with the sign if its there), as in the above example, it should translate to -0.0004 I wanted to know if there is an easy way of doing it in C#, like using the Double.Parse() or the string.Format() methods (I tried them both but couldn't get them to work) Or do I have to parse the string character-by-character to get the required result Thanks in advance, MadMonk P.S.: Apologies if its a silly question, I'm still a newbie in .NET ...Show All
Visual C++ Help with variable/String
hi i was wondering if anyone could help. i am using this small bit of code that will work only in the Event where it is placed but i want to be able to change the data that it holds throughout the program, im using MS VS 2005 C++ and here is the code String^ Species Species= "Dog"; MessageBox::Show( Species); I would like to be able to change the data in the String^ Species from anywhere and not just within the { }. can anyone plz help. thanks Sorry for the delayed answer. If you're using: A^ a = gcnew A(); a->Species = "event1"; inside a function(event handler) then you'll lose it because you have to keep a reference to that object "a" you created. If the event handlers are inside the same class A then use it like this: ref c ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Animation sample?
Great work on XNA GSE 1.0! I downloaded it today and signed up for the 360 Creator's Club. Getting the basic engine code I've been working on under Windows for the past few weeks compiling and running on 360 was far easier than I was expecting (though it would be nice if the IDE had better support for projects that target both platforms). One aspect of the engine I've been avoiding for a while is mesh animation, as there has been talk around here for weeks that a sample would be released and I'd much rather start from a sample, even if it is very simplistic, than dig though the documentation enough to figure out how all the classes fit together. So my simple question is.. any updates on this sample Has it been made available and I'm j ...Show All
SQL Server Sum of last six months
I have an odd behaviour in a calculated member: [Ship Qty 6mo Sum] Calc: Sum( { [Time].[Month].CurrentMember.Lag(6) : [Time].[Month].CurrentMember.Lag(1)}, [Measures].[Ship Quantity]) This works fine for all months from February to December. When you run it in January, it is supposed to calculate the sum of July to December of the previous year. But instead it returns Null. I created another calculated member to show me SetToStr({ [Time].[Month].CurrentMember.Lag(6) : [Time].[Month].CurrentMember.Lag(1)}) and that shows: [Time].[Month].&[2006]&[7];[Time].[Month].&[2006]& ... [Time].[Month].&[2006]&[12] when Time.Month.CurrentMember = January 2007, as expected. I also created a calc measure like ...Show All
Internet Explorer Development Close all Tabs
There has got to be a way to close all IE7 tabs....(C#) Have been trying keybd_event, throwing Control W's...with shaky results. ...Show All
Windows Live Developer Forums Reduce detail of the map tiles?
Is there a way to say remove some of the extra detail at zoomed in levels ex: roads, city names etc. Think of VE as static tile images, there are 3 sets of tiles plus birdseye. So you can't remove text from these static images As Derek said you could produce your own tiles and layer them on the very plain aerial mode, but there is some work there. Is the issue that your data is lost with all the other labels John. ...Show All
Windows Forms How to create window controls using database values
Hello everyone, my name is Brandon M. Hunter and I'm a programmer...(AAA introduction humor). Anyways I need to find a way to create controls at run-time (checkbox,radio buttons,etc) that is based off the number of records I have in my database. So for example, I have a 5 records that are defined as subjects that a school teaches, I need to create 5 checkboxes for each of those records Does anyone know I tried using this piece of code for example: Private Sub Button1_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles Button1.Click Dim i As Integer = 1 Dim stringTest As String For i = 1 To 4 Select Case i Case 1 stringTest = "checkboxvalue1" Case ...Show All
