1,443 Posted Topics

Member Avatar for sam fernandes

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. …

Member Avatar for thines01
0
84
Member Avatar for zachattack05

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; …

Member Avatar for zachattack05
0
143
Member Avatar for skp03

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 …

Member Avatar for thines01
0
199
Member Avatar for snehil_khanor

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" …

Member Avatar for thines01
0
510
Member Avatar for skyline2425

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 +=

Member Avatar for thines01
0
4K
Member Avatar for tubby123
Member Avatar for utkarshsahu

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]

Member Avatar for snippsat
0
411
Member Avatar for skp03
Member Avatar for Mitja Bonca
0
225
Member Avatar for brightline

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 …

Member Avatar for skatamatic
0
107
Member Avatar for codex89

Does the keyword INTO belong in front of the alias? I've only ever seen it without the wor INTO (just a space).

Member Avatar for thines01
0
140
Member Avatar for Hackservex5

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.

Member Avatar for PhilliePhan
0
254
Member Avatar for ananth88

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 …

Member Avatar for ananth88
0
872
Member Avatar for meme meme

I would use [B]abs()[/B] (from math.h) inside the switch statement (assuming you're dealing only with integers).

Member Avatar for Tygawr
0
141
Member Avatar for daydie
Member Avatar for 432
Member Avatar for bernardz26

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;

Member Avatar for Mitja Bonca
0
110
Member Avatar for thiemebr

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.

Member Avatar for thiemebr
0
175
Member Avatar for gogs85

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?

Member Avatar for gogs85
0
152
Member Avatar for kris222

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.

Member Avatar for thines01
0
82
Member Avatar for observ
Member Avatar for skp03

[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]

Member Avatar for thines01
0
317
Member Avatar for ilovephil

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]

Member Avatar for ilovephil
0
86
Member Avatar for zachattack05

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. …

Member Avatar for zachattack05
0
136
Member Avatar for cono1616

You can loop through the array comparing the elements to 'A'. Use two loops for a 2D array.

Member Avatar for thines01
0
26
Member Avatar for huskarit
Member Avatar for thines01
0
128
Member Avatar for phorce
Member Avatar for thines01
0
128
Member Avatar for Hackservex5
Member Avatar for zachattack05

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).

Member Avatar for zachattack05
0
125
Member Avatar for huskarit

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] <<

Member Avatar for thines01
0
227
Member Avatar for james1on1
Member Avatar for thines01
0
186
Member Avatar for Srcee
Member Avatar for welshly_2010
Member Avatar for ddanbe
0
159
Member Avatar for silvercats

Get the DOS and Linux one. It will give you something with which to compare and contrast.

Member Avatar for thines01
0
34
Member Avatar for Raj1987

Have you looked at this [URL="http://jmdiframework.sourceforge.net/"]project on sourceforge[/URL]?

Member Avatar for Robart Gilbert
0
80
Member Avatar for surajrai
Member Avatar for Momerath
0
274
Member Avatar for jd2369
Member Avatar for thines01
0
193
Member Avatar for dimitros

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.

Member Avatar for thines01
0
136
Member Avatar for talhatanveer
Member Avatar for bubbleT

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; …

Member Avatar for bubbleT
0
809
Member Avatar for spowel4

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.

Member Avatar for viljoed
0
241
Member Avatar for henriquec

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]

Member Avatar for thines01
0
234
Member Avatar for pseudorandom21
Member Avatar for pseudorandom21
0
1K
Member Avatar for carlakawill

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.

Member Avatar for thines01
0
140
Member Avatar for IDC_Sharp

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 …

Member Avatar for thines01
0
570
Member Avatar for LFCDay123

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.

Member Avatar for thines01
0
123
Member Avatar for gogs85

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 …

Member Avatar for gogs85
0
71
Member Avatar for ASPLOST

Are you resetting your values? Do you have the code that chooses the textbox and content and color in a function?

Member Avatar for thines01
0
99
Member Avatar for cali_kid
Member Avatar for Tumlee
0
203
Member Avatar for jonnyboy12

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?

Member Avatar for thines01
0
174
Member Avatar for kongkornitz

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.

Member Avatar for thines01
0
149

The End.