1,443 Posted Topics
Re: You will probably find there is a missing semi-colon in your code right before this code is included | |
Re: Can you convert that wchar_t* to an actual String^ first? ...and since you're adding the \r\n, can you just use WriteLine() on the line before? | |
Re: That's a problem with static libraries. Does the provider have an updated version? Can you use an older compiler -- at least enough to get that to link into a DLL that exposes its methods? | |
Re: I can't really tell if you want to strip off leading digits or PadLeft to ensure a particular length or if you just need something to tell the difference between 6, 7, 8 and 9 digit padded numbers. | |
Re: You don't need to access the hidden variable for MyVar. Just use the public one from inside or outside of your class. If you need to restrict access to it, either make it private or protected. Don't worry about it. | |
Re: What version of VC++? If you are using an early version (like 6), look up: CInternetSession, CFtpConnection, CInternetFile If you are using a current version (2005, 2008, 2010), look up: WebClient or FtpWebRequest | |
Re: Yes, have your program read lines from the file. When the line it reads from the file is empty, start a new record. This usually means you're storing the records in a collection of some type, so when the new one is encountered, it does not destroy the old one. | |
Re: [CODE] Label4.Text = X.ToString() [/CODE] | |
Re: You are missing your curly braces that define the function GetFirstNumber() as well as all of the curly braces in the methods of your class. | |
Re: The easiest way I've found is to use the "System.Xml.Linq" namespace so you can use XDocument.Load() on your file or page. Even if you don't use any actual Linq, the methods in that namespace seem to be easier to use than others. | |
Re: Spend a month with any modern language. After a while, one will stick out as being more intuitive than others. I use C#, but came to that through Basic, Pascal, C, 80x86, VBA, C++, Perl and Ruby. | |
Re: Is the user going to interact with the service? | |
Re: Do you have a lot of embedded images to make the EXE that big? If not, can you post some code? | |
Re: [CODE]System.Diagnostics.Debug.WriteLine(System.IO.Directory.GetCurrentDirectory())[/CODE] | |
Re: Are you manually logging in to your gmail account between runs of the program? If so, you could be creating a cache of your credentials that the server is using by default. Do you have a yahoo account? Can you use the yahoo server to send mail instead of the … | |
Re: Is the PointArray actually being expanded when you use the [] operator? | |
Re: If you fix this so it will compile, that would be a great start. | |
Re: What happens if you put the grade and the name together in the same string, then sort? | |
Re: I think a traffic light program would be a good challenge -- especially if it has turning arrows. | |
Re: Can you use a [URL="http://msdn.microsoft.com/en-us/library/system.io.streamwriter(v=VS.71).aspx"]StreamWriter[/URL]? Please read the statement about Unicode at that link. | |
Re: Is this to be pseudo-code or something in an actual language? | |
Re: Have you ever considered [URL="http://www.perl.com/pub/1999/10/DBI.html"]using DBI[/URL] instead of sqlplus? | |
Re: Do you have the source code for any of the original .EXE? | |
Re: select distinct Or use a union and make it distict. Can you post your full query? | |
Re: I would put the observations in a class then feed the constructor of the class an IDataReader. The constructor would then parse the fields of the database into the variables in the class -- keeping your "loader" really minimal. If this is the only program that will ever use that … | |
Re: Put a space between the quote and the word where " where | |
Re: Where is the rest of your program -- the stuff that comes before the word "class"? | |
Re: Does it throw an Exception? If so, wrap it in a try/catch block [CODE] try { //reach for the element } catch(Exception exc) //or the specific error being thrown { //take other action. } [/CODE] You could also do a scan of the page before you try to read its … | |
Re: Have you looked at the resulting string after it is concatenated? It may be worse than you think. Also, you should not init-and-embed your connection inside your command. | |
Re: [url]http://www.winsocketdotnetworkprogramming.com/clientserversocketnetworkcommunication8b.html[/url] | |
Re: Does it always do this? Does it give the error at a specific line of code? Does it ONLY give the error when it's getting the data from the database? | |
Re: That doesn't seem like it would be very efficient. What are you going to do with them after that. | |
Re: Are you writing a chess game or are you trying to add this engine into an already existing chess game? If it is a "library", you could add a reference to it from your project by right-clicking (in the solution explorer) References=>Add References -- then browse to that exe and … | |
Re: Load it into a Vector (or array of Strings) and let the position be the line number. | |
Re: Try Integer.Parse() or Integer.TryParse() | |
Re: From this point, the easiest way would be to create a new WinForms project and then copy over all of the functions except for Main(). Set up pairs of textboxes on the form (left and right) Have the first pair be the first conversion where you type in your DOB … | |
Re: How about: [CODE] ex=(sum+count); [/CODE] ? Also the value 25.67 has a fractional part and an integer does not. If you want the value to keep the .67, you will need to make the count a double (or other type of floating point number). The warning you got means the … | |
Re: You can pass it to the other class either through a constructor or method call in the second class or you can make it public in the original class. | |
Re: If you are using Linq; ... [CODE]string strExtension = Request.ServerVariables["SERVER_NAME"].Split('.').Last();[/CODE] | |
Re: Do you want ALL of the source in a string? Is there any criteria on what is kept or ignored? | |
Re: You will need to know the ID (name) of your CheckBox. I called mine "cb1". [CODE] private void button1_Click(object sender, EventArgs e) { CheckBox cb = (CheckBox)dataGridView1.Controls["cb1"]; if (cb.Checked) { MessageBox.Show("Checked"); } else { MessageBox.Show("NOT Checked"); } } [/CODE] | |
Re: Did you make a counter that counts where it found the data? | |
Re: Have you done a [URL="http://www.daniweb.com/search.php?q=prime+number"]search for the phrase prime number[/URL] on this site? You can find a multitude of examples in multiple languages. | |
Re: What do you mean? That's exactly what happens in order. 1) An initial value is set 2) The framework checks to see if the condition in the middle has been reached 3) Action is taken 4) take action on the counter (in this case -- increment) 5) Is the condition … | |
Re: What do you mean "incremented"? Are you wanting to set up a counter and then increment the counter in a loop and append or insert it into a string inside some brackets? have you looked up sprintf() ? | |
Re: To what are you comparing it to decrypt it? | |
Re: Are you redirecting the content out to a file or did you want to create an output file in code and write data to it? | |
Re: Have you tried any of this in Managed C++? | |
| |
Re: Can you test the contents first to make sure you're not going to get an Exception? If you're using Linq, can you set your "where" clause to only get data that exists in the master list? |
The End.