1,443 Posted Topics

Member Avatar for shean1488

Can you use an if(!myExpression) statement? while(some_expression && another_expression) { if(!other_expression) { count++; } }

Member Avatar for shean1488
0
191
Member Avatar for nicewave

Minor change, big difference: using System.Text.RegularExpressions; namespace DW_420515_CS_CON { class Program { static void Main(string[] args) { string SearchText = "7,true,NA,false:67,false,NA,false:5,false,NA,false:5,false,NA,false"; string strRx = @"\btrue\b"; int NumberOfTrues = Regex.Matches(SearchText, strRx).Count; } } }

Member Avatar for Mitja Bonca
0
194
Member Avatar for fafa70

If your program has no *references*, you can probably bypass the use of the DLL. It's an integral part of the platform and something that should not cause you worry. If you are doing cross-language programming in dot net, you absolutely will use a DLL in some manner.

Member Avatar for thines01
0
260
Member Avatar for rcreation33

What will you do with the non-table content like embedded SQL, stored procedures, forms, etc.? This almost seems like it would be a better job for VBA where you would write macros to export the target tables?

Member Avatar for thines01
0
96
Member Avatar for alanbrazil

The project you were working on in December 2011 already does a lot of the processing (like loading a text file into a collection of class objects). Does that not serve as a good reference? Code reuse will be one of the greatest benefits to your academic or business career.

Member Avatar for thines01
0
230
Member Avatar for Samama
Member Avatar for thines01
0
157
Member Avatar for eltonpiko

Why don't you just use: Dim fileOut as new StreamWriter("path\filename.txt") ...then write to it, then close it and move it?

Member Avatar for Mitja Bonca
0
278
Member Avatar for triumphost

Are the last three parameters optional? ...from looking at [this documentation](http://msdn.microsoft.com/en-us/library/windows/desktop/aa365512(v=vs.85).aspx)

Member Avatar for thines01
0
293
Member Avatar for mitchfizz05
Member Avatar for Dendari
Member Avatar for Dendari
0
205
Member Avatar for crazyjdog
Member Avatar for jhedonghae

I would use a function to return a boolean stating if the two times are at the good intervals. If you can send your selections as DateTime objects to the function, it will tell you if they are the correct intervals. Here is an example of the function being called …

Member Avatar for Sahil89
0
696
Member Avatar for ekaddu

That's the [CODE Segment](http://en.wikipedia.org/wiki/X86_memory_segmentation). Don't worry about trying to make it match (at this point).

Member Avatar for thines01
0
31
Member Avatar for madmax_5

You can load the program with debug and just step through it. You can also text-capture the dump of the debug into a text file and rebuild the source code.

Member Avatar for thines01
0
52
Member Avatar for Huston

There are open-source compiler projects on codeplex and sourceforge and sites like that. How good are you at assembly? If your intermediate step is going to be ASM, is it good enough for you to then compile the ASM with something like a86 [a86](http://eji.com/a86/)? ...or are you building the assembly …

Member Avatar for Huston
0
4K
Member Avatar for irffan
Member Avatar for mitchfizz05

I use the Ionic [Dot Net Zip utility](http://dotnetzip.codeplex.com/) library.

Member Avatar for thines01
0
94
Member Avatar for samsons17

You could get something like dot net Reflector and disassemble the executable. You could then (probably) see the strings you're looking for.

Member Avatar for BobS0327
0
338
Member Avatar for amyparker1234

It's also difficult for us to be motivated to help you do something we know you don't want to do or even try to do. Your requirements are pretty steep (challenging) for someone brand-new to C++ (unless you have lots of time to finish it). ...but that's assuming you also …

Member Avatar for Ancient Dragon
0
155
Member Avatar for Tuz

You would put that option on the command-line when you compile the program after the word javac Hopefully, this thread can be moved to the actual java forum.

Member Avatar for TrustyTony
0
88
Member Avatar for Nithyamaha

Which system's IP address do you want? 1) The current one? 2) Some remote one?

Member Avatar for thines01
0
87
Member Avatar for Donnovan

Like this?: using System; using System.Collections.Generic; using System.Text.RegularExpressions; namespace DW_420137_CS_CON { class Program { static void Main(string[] args) { List<string> lst_strSurNames = new List<string>() { "v/d Haren", "van den Haren", "Jones", "von den Haren", "Smith", "von den Berg", "van den Berg", "v/d Berg" }; Regex rxTargetSurNames = new Regex(@"v.{0,3}\bd.{0,3} [a-z]{1,}"); …

Member Avatar for thines01
0
129
Member Avatar for erikdeboy

If **results** is already a string array, why do you copy it to another string array? Are ALL groups of employees with the same years of experience to be grouped together?

Member Avatar for thines01
0
794
Member Avatar for major_lost

Is it a console app? If it is (and you are just building strings), you can just use the ampersand & between strings to concatenate them. If you are issuing two print statements, you can use Console.Write() instead of Console.WriteLine(); If is is going out to a file (through StreamWriter), …

Member Avatar for major_lost
0
152
Member Avatar for apals

I ran the test in debug mode with some slight modifications (making all calculations return a long) and came up with different results: 3508 = Compute 1169 = ForEach 427 = Linq 3412 = Compute 1170 = ForEach 377 = Linq 3388 = Compute 1282 = ForEach 379 = Linq …

Member Avatar for thines01
0
354
Member Avatar for madmax_5
Member Avatar for JasonWung

Could you use something [like this](http://www.daniweb.com/software-development/csharp/threads/196832/httpwebrequest-help#post888387) and change the method to "POST"?

Member Avatar for thines01
0
73
Member Avatar for zachattack05

Every time some foreign code references your new library, it would need to change all of it's class names (instead of just dropping in a new DLL). If there is any Marshalling back to native code, it could be catastrophic without a full rebuild.

Member Avatar for zachattack05
0
103
Member Avatar for while(!success)
Member Avatar for while(!success)
0
244
Member Avatar for Usmaan

How about something like this?: using System; using System.Text.RegularExpressions; namespace DW_419823_CS_CON { class Program { private static string MakeDashes(string strPhrase) { return Regex.Replace(strPhrase.Replace(' ', '/'), @"[a-z,A-Z]", "_"); } static void Main(string[] args) { string strPhrase = "this is neat"; Console.WriteLine(MakeDashes(strPhrase)); } } }

Member Avatar for thines01
0
586
Member Avatar for curlissue657

You could modify your code to work like this: letters = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o', 'p','q','r','s','t','u','v','w','x','y','z'] name = "bbb" i=0 j=0 k=0 blnFound = false for i in 0..25 do for j in 0..25 do for k in 0..25 do trying = letters[i]+letters[j]+letters[k] if trying == name blnFound = true puts "matched" puts …

Member Avatar for thines01
0
71
Member Avatar for Donnovan
Member Avatar for thines01
0
108
Member Avatar for castajiz_2
Member Avatar for jeanbarca

What compiler are you using? Is putting the objects in a sortable collection and then converting that to an array an option?

Member Avatar for jeanbarca
0
308
Member Avatar for Tygawr

I, personally, would create another function and pass both the pointer to the original string, a desired starting point and a desired length (just like the parameters of a substring function) and return a result that is the array of characters between the start value and the requested length.

Member Avatar for WaltP
0
284
Member Avatar for RainbowMuffin
Member Avatar for dsmoore

So, what you're really asking is if you can add a string array to a list of string arrays? Did you call new on your "Variables" instance? Variables myVars = new Variables(); // Can you step through this in the debugger and tell the exact line where the exception is …

Member Avatar for dsmoore
0
222
Member Avatar for jia khan

Make sure your file is always in the same directory (in debug or release mode). Give the full path to the file instead of a relative path.

Member Avatar for codeorder
0
196
Member Avatar for MrEARTHSHAcKER

[Dynamic Link Library (Wikipedia)](http://en.wikipedia.org/wiki/Dynamic-link_library) says more than I ever could about DLLs.

Member Avatar for thines01
0
112
Member Avatar for Esmerelda

[Check this](http://www.blurtit.com/q137549.html) [and this](http://www.bing.com/search?q=difference+between+keyword+and+reserved+word&qs=SC&form=QBLH&pq=difference+between+keywords+and+reser&sc=1-37&sp=1&sk=)

Member Avatar for thines01
0
137
Member Avatar for apals

Can you do your calculations before the data hits the DataGridView? If you just wanted raw totals of lines, wouldn't it be easiest to access that data before it is in "display" mode?

Member Avatar for Mitja Bonca
0
219
Member Avatar for 54uydf

They are probably referring to programs that: - work without user interaction - are extremely efficient. (subjective statement) - work in a non-displayed (or minimally displayed (logs and debug output)) fashion - communicate with data repositories and ensures the availability of resources - possibly work in a machine-to-machine operation Rather …

Member Avatar for thines01
0
150
Member Avatar for zachattack05

That will not work. Are you trying to just send a mail message? ...or do you specifically want to start a browser and have it start a mail session or something else?

Member Avatar for Mitja Bonca
0
152
Member Avatar for infinitus
Member Avatar for ZMike

Depending on your language, could you use something like this?: valstring = "[contains(title, " + txtSearchVal + ")]";

Member Avatar for ZMike
0
136
Member Avatar for ShadyTyrant

I would make all of the dot net languages use using instead of Imports. Also, I would put IntelliSense back in C++ (for dot net).

Member Avatar for thines01
0
134
Member Avatar for de Source
Member Avatar for muthukumar46

1) This sounds like something that should be a console app, not a WinForms app because it reports TO you (so you should not need to prompt it). 2) The System.Xml.Linq namespace would be much better for this than using COM automation. 3) I would imagine (since the files are …

Member Avatar for thines01
0
257
Member Avatar for mkerala
Member Avatar for FazeLessWhite

Well, it first seems like you need your choices inside of a loop, so when you want to repeat, it will actually repeat. Also, there should be # marks in front of your include statements. Remove the word "for" from right inside main (or complete a for loop) I made …

Member Avatar for zeroliken
0
119

The End.