1,443 Posted Topics
Re: Think about what you do on the computer most of the time. Now think about what would make that activity better. Think about what you do OFF of the computer most of the time. Now think about a problem in that activity that a computer could solve. | |
Re: The first thing I think to do is to just get the Length or the Count() of the list and increment your own counter and put in the "and" before the last one. You could do it in a regular "for" loop. I might do it something like this: [CODE] … | |
Re: [QUOTE=daydie;1741827]...edits source strings as needed ...post to server (submit)[/QUOTE] What do you mean "Edits source strings"? Do you mean you post modified HTML to a server? ...or are you saying you want to submit a form? | |
Re: Do you need to cast the return value from the Hastable as a string, first (like pieces[1].ToString())? Can you use a Dictionary<int, string> instead? | |
Re: Do you have an MSDN subscription? You can probably get it for free that way. | |
Re: Also check out the KeyDown event. If you want to see a full project that deals with a numeric edit-box, [URL="http://www.codeproject.com/Articles/30812/Simple-Numeric-TextBox"]check out this[/URL]. It's probably more than you're looking for. | |
Re: 1- d - Books and a mentor 2- c - Amazed an intimidated (at first) 3- no - BASIC on a Commodore Vic-20 4- yes - VBA, Java, Ruby, C# | |
Re: The first picture shows you have access to easy.h. The last picture shows you've missed adding / linking easy.lib. When you downloaded th original package, easy.lib should have been in the lib directory. Was it not there? | |
Re: It looks like you're processing this stuff twice -- once in the "if" statements and once for the HashTable. What does the file contain? From your parse method, it looks like a string, and equal sign and a number. Is that correct? | |
Re: Adding a comma will allow the use of distinct() (assuming certain namespaces are allowed): [CODE] using System; using System.Linq; namespace DW_411407_CS_CON { class Program { static void Main(string[] args) { string str1 = "1,2,3"; string str2 = "3,4,5"; Console.WriteLine(string.Join(",",(str1+','+str2).Split(',').Distinct().ToArray())); } } } [/CODE] | |
Re: Is there a possibility the data could change during the transaction? | |
Re: You can find lots of information on this topic [URL="http://www.bing.com/search?q=c%23+stored+procedure&qs=AS&form=QBLH&pq=c%2523%2520stored%2520pro&sc=8-13&sp=1&sk="]just about anywhere[/URL]. What's the name of the procedure you need to call? | |
Re: How will the log be used? Will it need to be viewed outside of the current machine? Is it just a log that can be viewed when the current user is off of the current machine? How does the user log in? Is it through MS Access forms or your … | |
Re: The first opinion you should get is that of your compiler. This code will not compile. Organizing it is important, but not quite as important as making it functional (and following the actual instructions). Step through it mentally and think about WHEN things are to happen. | |
Re: Logically, some type of notification would happen upon the global exception that would tell a responsible party the program had an abnormal end. If the program has any importance, you'll probably want tighter control on WHERE the exception happens. As you implied: For a small program, this would not be … | |
Re: That update SQL seems to be malformed. What is the name of the table it is updating? | |
Re: Yes, it is possible to use C# code to import data from a file into the database. It is also possible to use C# code to export data from a database into a file. | |
Re: You could do something like this where you pass in the string date and the string slip number and it returns the formatted "key". The culture info was chosen because it was the first one I could find that expects the month to come before the day in a slash-delimited … | |
Re: If there are truly too many errors to see, you've probably written too much code that is untested. You should compile more often to avoid this. You can also comment out the excess, untested code to narrow down the errors. | |
| |
Re: You could do that through dynamic allocation or setting maximums. | |
Re: If your checkbox has an ID, you can reference it by the ID: ...something like: [CODE]' from memory CheckBox cb = (CheckBox) gridView1.Controls("cb1") if(cb.Checked) then ...[/CODE] | |
Re: If you own both ends of this (both client and server), you have a couple of options: What it sound like is that you need database [I]replication[/I]. Otherwise, you could write a WCF service on the far end to accept the data and store it in the database while the … | |
Re: I use [URL="http://www.bing.com/search?q=linq+unleashed%3A+for+c%23&qs=n&form=QBRE&pq=linq%2520unleashed%253A%2520for%2520c%2523&sc=3-22&sp=-1&sk="]Linq Unleashed for C#: Paul Kimmel[/URL]. Most of what I just [I]IMAGINE[/I] also works in Linq. | |
Re: What would be the result if the number is 489? | |
Re: You might do well to find an API for Yahoo messenger, so you can send the messages in the background (without launching a browser or opening a window). Of course, just sockets programming will work for sending data without being visibly detected by a normal user. | |
Re: You're missing your second argument in the format statement: [CODE] String.Format("{0,10} {1,2}", i, SOMETHING_GOES_HERE) [/CODE] | |
| |
Re: ...so (even though you solved your own question)... Was this the answer?: [CODE] vector2^ v1 = gcnew vector2(); [/CODE] | |
Re: That is a lot to consume at once. I like [URL="http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=charles+petzold+c%23&rh=i%3Aaps%2Ck%3Acharles+petzold+c%23&ajr=0"]books by Charles Petzold[/URL] for C++ and C# on Windows. Someone else will have to answer about Linux. | |
Re: What is the actual error and where are you trying to put the array? Also, does it do the same with other similar collection types like a List(Of TimeSpan)? | |
Re: 1) Are you trying to interact with an existing shell? 2) Are you trying to create a shell? | |
Re: You are attempting to control the Rybka32.exe by writing to it in an interactive fashion? If you remove the last command does it still get stuck? | |
Re: I override it to also create the output I want from a class when I archive it. I will then use the .ToString().GetHashCode() to override the GetHashCode() method I will also override the .Equals() with ToString().Equals(((MyObj)obj).ToString()); | |
Re: Here is [URL="http://www.daniweb.com/software-development/vbnet/threads/408082/1743022#post1743022"]an example I made[/URL] to show the technique. | |
Re: Using what OS? On windows, you can use C++/CLI and open a WebClient^ to a page. | |
Re: I agree with @deceptikon that it is not optimal to circumvent the "typing" in place for a language that uses it heavily. [Alternatively...] You can look into ArrayList in managed C++ (or C++/CLI) -- same animal, slightly different syntax. | |
Re: Is the data going to change while you have the sheet open? Can you just read all of the data, then move through the collection of data on button click? | |
Re: How about [URL="http://msdn.microsoft.com/en-us/library/ms950960.aspx"]this[/URL]? | |
Re: You need to call [I]new[/I] on your new SQL commands. Also, don't you get an Exception or an invalid state when the code hits the ExecuteReader followed by the ExecuteNonQuery? | |
Re: UpdateData makes all updates on the given form at once. It sends data from variables to the controls or data from the controls whether the parameter is TRUE or FALSE. [url]http://msdn.microsoft.com/en-us/library/t9fb9hww(v=VS.80).aspx[/url] SetDlgItemText sets the title or text of one item: [url]http://msdn.microsoft.com/en-us/library/aa933021.aspx[/url] | |
Re: If a database is required, I recommend creating a separate database manipulation class that has a method for inserting, one for updating, one for deleting and one for selecting. That way, you can still work with the database no matter what happens with the graphical design. Other than that: How … | |
Re: This isn't a work-around for your [URL="http://www.daniweb.com/software-development/cpp/threads/409646"]earlier question[/URL], is it? If so, there is an easier way. | |
Re: This topic can be broad, so I'll give you [URL="http://www.bing.com/search?q=asp.net+database+connection+c%23&qs=AS&form=QBRE&pq=asp.net%2520database%2520connection&sc=8-27&sp=4&sk=HS1AS2"]the search I would use[/URL]. Then I would ask: 1) What type of database? 2) Where is it located? 3) Are you familiar with SQL? | |
Re: Not a long story. 1) Create a connection 2) Create a command containing the same SQL you would use to create it manually 3) cmd.ExecuteNonQuery() [CODE] Imports System.Data.SqlClient Module Module1 Sub Main() Dim strSQL As String = "CREATE TABLE GRP_CONFIG ( " + _ "SHORT_NAME VARCHAR(8) NOT NULL " + … | |
Re: Exception handling is not useful for compile-time errors. It should NOT be used for logic errors. It should be used for runtime errors where something is completely out of your control. | |
Re: You can make two new lists in RAM: List A that is all of V20 List B that is all of V23 minus the contents of V20 [CODE] Imports System.Linq Module Module1 Sub Main() ' simulated pulling from directory Dim lst20 As New List(Of String) From {"00000001_00000000.tif", "00000002_00000000.tif", "00000003_00000000.tif", "00000004_00000000.tif"} … | |
Re: That can be done so the main() can "see" the class. It's called scoping. If the class is not in "[URL="http://en.wikipedia.org/wiki/Scope_(programming)"]scope[/URL]" to a given piece of other code, it can't be directly used. | |
Re: What is the first error you get from the compiler? |
The End.