Oren Solomon's Q&A profile
Visual C# c# how to call functions
I have been converting a c++ program into c#. I am using Windows Application. I have a basic structure now for C# all through my program. Except I think I have it all wrong. The program compiles on the first pass, and on the second pass all my functions are flagged with an error. namespace WindowsApplication1 { using System; using System.Windows.Forms; public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load( object sender, EventArgs e) { } } } public class MainBegin { public static int mainbeginstart { get { read_hotspace_file ; <------ function read_garage_fil ...Show All
Visual Studio Team System Customer Support Representatives using TFS
We've moved over to TFS successfully. We've put our 8 projects in, and set all the sercurity up. THe developers, Project Managers and Developer Managers are loving it. The customer support people... well... they don't like it that much. The reason It's hard to search. They might want to search through ALL projects with a single key-word, and fine all issues that come up with that key word. They could write a query to do this, but that's a lot of tinkering if you want to search on: City, Province/State, Severity, start date, end date, customer name, customer number etc. HOw are other people handeling this with their Support department Are there better ways of doing this I heard a rumour that the TFS team will be releasing a "Quick Sea ...Show All
SQL Server How to setup a many-to-many schema to favor retreival speed.
I'm am novice in the RDMS world. I would like to set up a database that will scale with a large dataset of over 1,000,000 unique records. In a nutshell, I have about a million+ documents that are stored on a file server as TIFF files. Each document has 2 or more persons (names) associated with that document like "John Smith" or "Mr. John Doe" etc.. A person can be related to many documents (depending on how many transactions they conducted over the years) and any document can be related to many people as most of the transactions were from multiple sellers and multiple buyers. The end users almost always searches for documents by using the first and last name of the person related to the document along with other docume ...Show All
Smart Device Development Memory insufficient on Mobile 5.0 emulator
I try to debug an application on windows mobile 5.0, however there is a low memory on the emulator. I am try to reconfigure the memory size for the emulator however the part was being disable. Please advice I try to clear the save state , it still not working. Im using Windows mobile 5.0 emulator, what you mean by send the command line using which emulator is launched ...Show All
Game Technologies: DirectX, XNA, XACT, etc. xnagse_setup.msi while install i got error message:
There is a problem with this Windows Installer pachage. A Program run as part of ... the status of the setup is "Installing Direct X Redist" I have : - Install and register C#2005 - Restart PC - look for help in other threads - Redownload the setup msi i found the same problem here: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=407146&SiteID=1 but the usefull answers dont work .. If your're still having trouble please follow this guide: Please try running the installer like this: Msiexec /i xnagse_setup.msi /lv installlog.txt In addition to that if you want to grab your %windir%\DirectX.log (%windir% is the root windows directory) And file a bug ...Show All
SQL Server VISUALTOTALS performance problem
Hello, I have a relatively simple MDX query where I am selecting a the top 10 members by a certain measure (usingTOPCOUNT) on ROWS. I would also like a total for the rows which I am trying to get via VISUALTOTALS. Without the VISUALTOTALS function, the query returns accurate results in about 10 seconds. When I wrap the TOPCOUNT with a VISUALTOTALS function the query takes over 10 minutes. I dont know how to improve this situation without using a subcube (which gets me the all member over the limited subset). I am using SSAS 2005 SP1. Am I doing this correctly Is there a good reason why VISUALTOTALS is so slow in this case. Is there another function I can use Please help if you can -- Thanks in advance Mgale1 ...Show All
SQL Server update statement
Newbie Question: Im trying to update a table column to a new value and I receive an error, here is my statement: USE PD51_Data; GO UPDATE CASENUMBERS SET CaseNumTypeID = 130 WHERE CaseNumTypeID = 101 AND CaseNumber BETWEEN 199999 AND 600001; GO I receive this error Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '9368----' to data type int. What did I forget Pig, What are the datatypes for the following columns: caseNumbers caseNumTypeId caseNumber My guess is that one of the fields -- maybe caseNumber -- is a varchar and contains the string '9368----'. Dave ...Show All
Software Development for Windows Vista Debug rules?
Actually I would love to know how you can debug the rules. Can you see which rules are pending and which rules are fired Can you set break points on the condition or action part in the CodeDom You can use Tracing and Tracking to debug rules. You cannot set breakpoints on the actions / conditions in WF V1, but you can use System.Diagnostics tracing and WF Tracking to get better visibility into rules execution. Moustafa has a nice write up on his blog about this - http://blogs.msdn.com/moustafa/archive/2006/08/05/689776.aspx . Scott Allen's book on WF also has a chapter on rules that talks about tracing and tracking. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Detect mouse click on a sprite
Anybody know how to detect a mouse click on a sprite I would guess you'd start off reading something like mouse.x and mouse.y and then iterating through all the coordinates of the sprite to see if the point clicked is in the sprites non-transparent pixels (slow) or.. Is there a way to hit test the sprites region Since this is specifly a game dev kit, I would assume there would be a method in the sprite class part of the engine to handle this like I would in vb.net for a polygon region(InRegion), and not have to iterate through each non-transparent pixel. Is that in the sprite class for hit testing If not, why ...that's a standard thing for a game(hit testing/collision detection). Guess thats for a MS XNA developer to answer ...Show All
Windows Forms a Bug in .NET with HardMarginX, please help!
Hello, I am making a Printapplication and have found a bug in .NET 2.0 (using Visual Studio 2005). I have a printer (Printek FormsPro 4503se) installed with LetterRotated paper with 11 in. width and 8.5 in. height. Then I make in my application a: PrintDocument doc = new PrintDocument (); and look at the doc.DefaultPageSettings The settings are Letter 8.5 in. width and 11 in. height. Why does it not choose the right paperSize (Should be LetterRotated and not Letter) Now I have to make a custom paperSize: doc.DefaultPageSettings.PaperSize = new System.Drawing.Printing.PaperSize("LetterRotated", 1100, 850); To be able to print all over the paper. Here is the BUG: When I change the height ...Show All
Windows Forms Setting the handled property of the KeyPressEventArgs to true does not discard the character
The following code will not discard the character when the the handled property is set to true. I verified that this works properly using a normal textbox. Any thoughts void txtMask_KeyPress( object sender, KeyPressEventArgs e) { if (!( char .ToUpper(e.KeyChar) == ( char ) Keys .A || e.KeyChar == ( char ) Keys .P)) { e.Handled = true ; } } Hello All. RonLindsey: Well, I can't seem to get it to fail with a plain vanilla, out-of-the-box maskedTextBox either. You might check to see if there's something in your mask definition that's giving you the problem. Or post it, and let us try it out and see what happens then. HTH. ...Show All
Windows Forms Update DataGridView when database changes ?
Hi I'm wondering how one can update a DataGridView when the contents of the Database change. The database is coupled to the DataGridView with an Adapter and DataSet I know when the database has new data so detection is not a problem. It's just the updating. Ideally the update process would be as lightweight as possible and not re-read the entire table into memory. All answers I find here are about propagating changed data in the GUI back to the database, so let me repeat. I'm looking for a way to update the GUI when the database changes. I am having the same problem. Here is the code I am using to populate the datagrid: Public Function dbCmd( ByVal str As String ) Dim nConn As N ...Show All
SQL Server Can't uninstall previous version of AdventureWorks database
I want to install the new (February 2007) sample databases. The readme says any previous version must be removed by dropping the database., then running Remove from Add or Remove Programs. I've detached the database, but when I try to uninstall it I get the following message: "Error 1309.Error reading from file: pathandfilename.mdf. Verify that the file exists and that you can access it." What should I do. Barry It sounds like the uninstall is expecting the file to exisit and you much have deleted it If you run a repair first it should replace the file then you can run an uninstall. Thanks Michelle ...Show All
Windows Forms Works 6.0 calendar
Hello, I am trying to save all my Works Calendar info (appointments, notes, etc.) to a floppy disk. When I try to export this data, a message box says "Microsoft Works Calendar has encountered a problem and must close." Does any one know how I should fix this problem Tannko im afraid this is the incorrect forum I'm afraid I have to ask you to post your question into the appropriate communities/newsgroups: www.microsoft.com/communities Thanks ...Show All
Windows Live Developer Forums Driving Directions
I have a code and I want to ablitity for the user to enter the address. I have the code set now so when you hit Find it kinda works, but I have in the area for address txtStart and txtFinish and they are trying to find locations for those, is there a way to edit that code and make it so it reads what is in those text boxes Here is the code <body> <html> <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 FindLoc() { map = n ...Show All
