1,443 Posted Topics
Re: You need to make some decisions. Is this going to be a WinForms app, Web Page, Console App or other? You will also need to create a class of Goods that will have a name and a value. You will need to have a process/method/class to calculate the total cost. … | |
Re: It will remain false because you are SETTING the value of the bool and not resetting (or re-evaluating): [CODE] using System; namespace DW_418381_CS_CON { class Program { static void Main(string[] args) { int intMyValue = -100; bool blnMyValue = (intMyValue > 0); // right now only Console.WriteLine(blnMyValue); intMyValue = 33; … | |
Re: This is the same problem you are dealing with in [URL="http://www.daniweb.com/software-development/csharp/threads/416523/"]your other post[/URL]. ...or at least it can be. I, personally would make an entry in the registry that tells the date the program was installed (or published) and then compare that to the current date. It really depends on … | |
Re: What about this? [CODE] using System.Linq; using System.Xml.Linq; namespace DW_418207_CS_CON { class Program { static void Main(string[] args) { XDocument doc = XDocument.Load("../../XmlFile1.xml"); string strLink = ( from x in doc.Descendants().First().Elements() where x.Name.LocalName.Equals("link") && x.Attribute("rel").Value.Contains("resumable-create-media") select x.Attribute("rel").Value ).FirstOrDefault(); System.Diagnostics.Debug.WriteLine(strLink); } } } [/CODE] It looks like (and I assumed) "entry" … | |
Re: It means you are USING +=, but it does not know what += means for your class. Look at this [URL="http://courses.cms.caltech.edu/cs11/material/cpp/donnie/cpp-ops.html"]Operator Overloading[/URL] page. The compiler needs to know what to update in the receiving object when you do a += | |
Re: What happens if you give str an initial size of 5? | |
Re: Using something you found laying on the street that is practically encrypted that opens a socket is a [B]HORRIBLE idea[/B]. [COLOR="Red"][B]I can only imagine this is malware.[/B][/COLOR] | |
Re: Have you inspected the contents of SearchResults when it is returned? | |
Re: Indexing just means you know about the locations of the files ahead of time. You could: 1a) have the program scan all directories and store all of the file names (full path) in a list of strings (when it starts) 1b) when searching for a particular file, search the only … | |
Re: Does the keyword INTO belong in front of the alias? I've only ever seen it without the wor INTO (just a space). | |
Re: Usually, the freeware is OK for removing a one-time problem, but rarely good for long-term protection. With that said, I [I]have[/I] used MalwareBytes to help people eradicate viruses. | |
Re: I think FTP is the best. It has been successful for years and has a lot of benefits. You can handle FTP at a low-level or high-level and all modern languages support it. The classes in .NET are easy to use and can communicate with a number of servers. A … | |
Re: I would use [B]abs()[/B] (from math.h) inside the switch statement (assuming you're dealing only with integers). | |
Re: All programs (or a specific one)? To ANY URL (or a specific one)? | |
Re: How many names do you expect to see in the list -- 1 or 8? | |
Re: What do you mean by "Value"? Are you concatenating strings or adding numbers? If you are adding numbers, have you converted the form2.textbox6.Text to a numeric value? If you mean string + string, did you?: form1.textbox6.Text += form2.textbox6.Text; | |
Re: Just like you create any new object. If you have a PlaceHolder on the page, create the new Table() and add it to the Controls of the PlaceHolder. | |
Re: I don't understand the question. Do you want to save some data as a PDF and then have it automatically open in Adobe Reader after it is saved? | |
Re: Why are you choosing different registers to compare AL? You potentially modify three registers do do one comparison. That could have detrimental effects and make it necessary to reset the values before the next interrupt. ...and please use code tags. | |
Re: Using the regular Web Services construction is not an option? | |
Re: [CODE] using System; using System.IO; using System.Linq; namespace DW_416752_CS_CON { class Program { static void Main(string[] args) { char chrDriveLetter = 'c'; //<<-- change this letter string strSearchPattern = "*.*"; Directory .GetFiles(chrDriveLetter + ":\\", strSearchPattern, SearchOption.TopDirectoryOnly) .ToList().ForEach(strFileName => Console.WriteLine(strFileName)); } } } [/CODE] | |
Re: Yes [CODE] char GetChar() { return 'a'; } [/CODE] or [CODE] char GetChar(int iValue) { return (char) iValue; //there can be side-effects if the value is outside of the range. } [/CODE] | |
Re: The optimizer can handle most of the problem of large libraries (loading or not loading). I'm sure there is some minor performance impact by referencing a larger file of potentially unused methods and resources. Another issue is the concept of giving away all of your goodies every time you deploy. … | |
Re: You can loop through the array comparing the elements to 'A'. Use two loops for a 2D array. | |
Re: The counter has to be reached AND the bIsNExtClicked has to be true? Should that be "[B]OR[/B]"? | |
Re: Remember: text and theText are char arrays and not a string. | |
Re: Which is the part that is giving you trouble? | |
Re: It would really depend on the type of object. Have you run across the term "[URL="http://en.wikipedia.org/wiki/Lazy_loading"]lazy loading[/URL]", yet? [URL="http://www.jkillaars.nl/tech/?p=34"]Another example[/URL] Primitives are different. Static elements are different. Objects created by LINQ are different (unless you force them to a type). | |
Re: You are starting your counter at 2. ...which means you are expecting your number of passengers to be greater than 2 and also the size of your array gboNextPassenger to be at least >> [B]3[/B] << | |
Re: Does it really need to "click" the link or just navigate to the address? | |
Re: Shouldn't the food items be another level deep (inside of a category)? | |
Re: You can just manually change the handler for the buttons to the same method. | |
Re: Get the DOS and Linux one. It will give you something with which to compare and contrast. | |
Re: Have you looked at this [URL="http://jmdiframework.sourceforge.net/"]project on sourceforge[/URL]? | |
Re: Did you do a full-disk search for the DLL? It might be somewhere different. | |
Re: Do you actually need to "click the button" or do you need the function "fnnSaveChanges()" to run? | |
Re: If it is a managed DLL, got to the Solution Explorer and right-click References -> Add Reference. Browse to it and add it. If it's a native DLL, you will need to do something different. | |
Re: Are you running the installer as administrator (as in right-click (run as administrator))? | |
Re: I would use the System:: Xml:: Linq namespace to read the document. It is easier to use to reach the attributes and elements. I took your XML data and modified it slightly and loaded it with this code: [CODE] #include "stdafx.h" using namespace System; using namespace System::Collections::Generic; using namespace System::Linq; … | |
Re: Does it really need to be a windows service? Could it just be a windowless app that has an internal timer that fires and spawns the batch file? You could launch it from the startup folder or from the registry. | |
Re: Are those characters or something else? If they are chars, you could: [CODE] printf(" %c%c %c%c", ch1,ch2,ch3,ch4); /*placing a %c everywhere you need a character and adding that reference to the char at the end of the paraeter list*/ [/CODE] | |
Re: Well, at that point, it would be a [I]static[/I] library (.lib), right? | |
Re: Either 1) put the object higher in scope 2) make the methods [I]static[/I] and have them validate objects of the same type. 3) make a helper class that does nothing but the validation. | |
Re: A log file is created when this happens that will tell you exactly what is the problem. There is (probably) a link to it at the bottom of that text box. Scroll down. Look through that until you find the first error. If it's too much (many attempts will create … | |
Re: Do you know anything about storing data in files and retrieving it? ...what about databases? Either one would do well for your program. Of course, if it does not need to store data for more than one "session", you could just store the data in arrays. | |
Re: Are you trying to force the file there or use that as a default location? You can do something like this: [CODE] SaveFileDialog sfd = new SaveFileDialog(); sfd.InitialDirectory = "c:\\Example"; sfd.ShowDialog(); [/CODE] Then the user can choose the name. OR you can just save the file without using a dialog … | |
Re: Are you resetting your values? Do you have the code that chooses the textbox and content and color in a function? | |
Re: Do you need to do this without calling library functions? | |
Re: How are you getting the data back (as HTML) from a pop server? Are you talking about the body of an email or the scraping of a web page? | |
Re: You have the "ask" for the numbers inside your loop. Is that intentional? It seems like the first thing you would do is ask for the start number, then ask for the end number, THEN loop. |
The End.