2,157 Posted Topics
Re: Running the program in Visual Studio will make it stop executing at the breakpoint(s). F9 sets/unsets a breakpoint, F5 runs, F10/F11 run single lines with one going into any function calls. GetType is used to get the type (class) of the object. In this case, they are using GetType().Name to … | |
Re: You'll be fine. The first example is dealing with capture variables and threads. The second example doesn't deal with threads at all. | |
Re: where do you assign a value to oWord? | |
Re: First error is telling you that Form2.cs isn't part of the project. I don't see it in the solution box so I'd say it's right. Second error was covered above. We can't tell you exactly what the problem was because you don't show us the lines where the errors occur. | |
Re: To answer your question, no it isn't possible to send data too fast. And it sounds like the problem is on the receiving end, if you are getting a "remote party closed connection" error. | |
Re: A combobox with 16.7 million entries would be useless. 3 numeric up/down controls would be much better. If you *have* to use a combobox, could you explain why? | |
Re: Thread is **4 years old!** Don't reply to 4 year old threads. | |
Re: No, it's not possible. You can always ignore the members you don't want to use | |
Re: Or use parameterized queries and you don't have to worry about formats. | |
Re: It's possible to exit your method without returning a string, you need to reutnr one in the finally clause and you shouldn't return one in the catch clause (since the finally clause will being doing that). | |
Re: When you log in the second time where you have a schedule, you are looking for the class (as an example) "Art101-1", but the key for the actual class is "Art101 - 1" (notice the spaces). You need to be consistent in how you deal with the keys. Either make … | |
Re: http://msdn.microsoft.com/en-us/library/views.views.getviewcollection.aspx | |
Re: I suspect your problem is in ReadHash. While you check if there is data, you don't check if there is enough data. You should make sure there are 4 bytes available for reading before you attempt to read 4 bytes. | |
Re: That's really hard to read, why all the spaces between letters and the odd font? Now, what's the actual exception thrown, what's the code that threw it? | |
![]() | Re: I'd so something like this for the problems private enum OPERATOR { Add, Sub, Mul, Div, LAST } public class MathProblem { private static Random rand = new Random(); private int operandx; private int operandy; private OPERATOR op; private int answer public MathProblem(int min, int max) { operandx = MathProblem.rand.Next(min, … ![]() |
Re: You haven't expanded the designer code, why would you expect to see the designer code? Click the plus just like it told you to do. | |
Re: > but the sql saves the datetime as 6-9-2012 so how to convert my parameter into the desired format No it doesn't save it in that format, it displays it in that format. Internally SQL Server is saving the date/time as a very large number representing seconds since the epoch … | |
Re: Do you have a mail server listening on port 25 of whatever machine 'MailServer' is? | |
Re: This works fine for me using Win 7 64-bit. It has a slightly different structure definition than what you use: [DllImport("shell32.dll", CharSet = CharSet.Auto)] static extern bool ShellExecuteEx(ref SHELLEXECUTEINFO lpExecInfo); [StructLayout(LayoutKind.Sequential)] public struct SHELLEXECUTEINFO { public int cbSize; public uint fMask; public IntPtr hwnd; [MarshalAs(UnmanagedType.LPTStr)] public string lpVerb; [MarshalAs(UnmanagedType.LPTStr)] public … | |
Re: He hasn't logged in in 11 months, I doubt he'll see that. | |
Re: This is not a code writing service. You write the code and if (when) you have a specific problem post what the problem is, the code that is causing it, the input that causes it, etc. and we'll see what we can help you with. | |
Re: You create a connection object (SqlConnection) but you don't attach it to the SqlDataAdapter. You need to use [URL="http://msdn.microsoft.com/en-us/library/kx703tc9.aspx"]this[/URL] constructor for the SqlDataAdapter. | |
Re: > WHERE NOT EXISTS (SELECT 1 FROM prices P WHERE P.Avg = T.Avg AND P.Colour = T.Colour) This part of the insert statement says if the average *or* the color aren't the same, insert a record. In your comments you say "if I change the average or color then a … | |
Re: Could you not reply to threads that are over a year old? If this doesn't help you, start a new thread. | |
![]() | Re: Since we don't have the actual forms it's hard to tell what the problem is. ![]() |
Re: You should look at [Windows Presentation Foundation (WPF)](http://msdn.microsoft.com/en-us/library/ms754130.aspx) | |
Re: > QuadraticFomula crashes if a is zero, It's not a quadratic equation if a is zero :) I do agree, though, that some error checking needs to be included. | |
Re: This isn't a software writing service. What have you done so far? What problems or errors are you getting? | |
Re: Are we just supposed to guess at what your problem might be? | |
Re: In line 15 you create an object of type Object to hold the returned value from your sql statement. In Line 21 you call ToString(). Since it is of type Object, the value of ToString() will always be "System.Object". This doesn't match "Administrator" so you get the default User.aspx. If … | |
Re: > var result_1st50 = text.Split(' ').Select(s=>s.Lenght).Take(50).ToList() This will return a list of the lengths of the words, not a list of the words. Remove the Select statement `List<String> result_1st50 = text.Split(' ').Take(50).ToList();` | |
Re: Are you using a HashTable or a Dictionary? And by their nature, both HashTable and Dictionary are not sorted and don't care what order you enter them. So you need to get the keys, sort them, then get the values for those keys. Or you could use SortedDictionary. | |
| |
Re: > class not registered exception from hresult:0x80040154 This means you have a missing DLL. | |
Re: Create your form, put a textbox, a label and a button on it. Put the conversion code inside the 'click' event of the button. Use the value from the textbox rather than from ReadLine(). Put the result in the label. | |
Re: By providing an [IComparer](http://msdn.microsoft.com/en-us/library/aw9s5t8f.aspx) | |
Re: Use [Regex.Match(String, Int32) ](http://msdn.microsoft.com/en-us/library/3583dcyh)to start at a specific point in your string. Since you have the set of firstWords, you know how long they are and where to start the next search. | |
Re: This is not a software writing service. What have you done? What problems or errors are you getting? Have you bothered to get a book on C# to learn it (since every book I've read explains how to do this very thing)? | |
Re: If you number the verticies clockwise around each square (starting with the upper left one), you'd get (staring with 1): Front square 1 2 3 4 Middle square 5 6 7 8 Back square 9 10 11 12 Now the triangles are 1 2 6 2 3 7 3 4 … | |
Re: They are using Activator.GetObject to create an object of type IExtranetAccess, the description of which is at "tcp://"+strIPAddress+":"+strPort+"/ExtranetAccessService". Since Activator.GetObject returns an Object, they cast it into an IExtranetAccess object and assign it to _objExtAccess | |
Re: You need to provide an update command to the adapter. You have to provide the select as that is the most common use, to display data. [SqlDataAdapter.Update](http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldataadapter.updatecommand.aspx) | |
Re: Not sure why you are getting what you say you are getting, but your method is overly complicated. This works: int index = tempInput.IndexOf(' '); index = tempInput.IndexOf(' ', index + 1); String stroutput = tempInput.Substring(0, index) + tempInput.Substring(index).Replace(' ', '|'); And since the date/time is in a specific format, … | |
Re: I'd just disable it (removing is a bad idea in my opinion, as the user might be looking for that option and believe they are in the wrong place and go hunting for it, wasting their time and making them dislike your software). Most users realize that a disabled option … | |
Re: Couple things you could do to speed this up: You don't need to save all the values then find the largest, just keep track of the current largest as you calculate the values. You convert every character to an int multiple times, see if you can figure out how to … | |
Re: Are you trying to adjust the size of a console program's window? You can use the [Console](http://msdn.microsoft.com/en-us/library/system.console.aspx) object and set all the properties | |
Re: Can you post the constructor that is being called (NeuralNet(double[][][], Function[][]))? I'd also like to see what NEURONS_PER_LAYER is defined as and the values it contains, along with numInputs |
The End.