1,443 Posted Topics

Member Avatar for suneye

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.

Member Avatar for suneye
0
80
Member Avatar for zachattack05

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

Member Avatar for zachattack05
0
119
Member Avatar for daydie

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

Member Avatar for daydie
0
7K
Member Avatar for kolibrizas

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?

Member Avatar for kolibrizas
0
183
Member Avatar for mikey1234
Member Avatar for thines01
0
75
Member Avatar for tontano

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.

Member Avatar for ddanbe
0
654
Member Avatar for Karlwakim

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#

Member Avatar for therockon7throw
0
238
Member Avatar for zekstein

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?

Member Avatar for thines01
0
108
Member Avatar for adityavarma999

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?

Member Avatar for thines01
0
90
Member Avatar for juce

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]

Member Avatar for thines01
0
295
Member Avatar for belama
Member Avatar for abdullahmusani

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?

Member Avatar for thines01
0
168
Member Avatar for Contagious98

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 …

Member Avatar for thines01
0
154
Member Avatar for jdh1231

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.

Member Avatar for thines01
0
170
Member Avatar for zachattack05

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 …

Member Avatar for Philippe.Lahaie
0
247
Member Avatar for monkeybut

That update SQL seems to be malformed. What is the name of the table it is updating?

Member Avatar for thines01
0
122
Member Avatar for KamalBansal

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.

Member Avatar for Cameronsmith63
-1
117
Member Avatar for jigarsangoi

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 …

Member Avatar for poojavb
0
166
Member Avatar for dennysimon

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.

Member Avatar for dennysimon
0
168
Member Avatar for shanmugaraj.c
Re: loop

You're fetching 100,000 rows into a browser? Yes,it will hang.

Member Avatar for mani-hellboy
0
124
Member Avatar for programmer2112
Member Avatar for yongj
0
178
Member Avatar for aqeelmoosa

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]

Member Avatar for thines01
0
138
Member Avatar for thedonedeal

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 …

Member Avatar for thines01
0
116
Member Avatar for mani-hellboy

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.

Member Avatar for thines01
-1
227
Member Avatar for vammy
Member Avatar for shandoosheri

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.

Member Avatar for NetDeveloper
0
257
Member Avatar for Kalle21

You're missing your second argument in the format statement: [CODE] String.Format("{0,10} {1,2}", i, SOMETHING_GOES_HERE) [/CODE]

Member Avatar for thines01
0
142
Member Avatar for Awais Ali
Member Avatar for jonnyboy12

...so (even though you solved your own question)... Was this the answer?: [CODE] vector2^ v1 = gcnew vector2(); [/CODE]

Member Avatar for thines01
0
175
Member Avatar for Amiet Mhaske

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.

Member Avatar for syd919
0
169
Member Avatar for thedonedeal

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

Member Avatar for thines01
0
158
Member Avatar for riahc3
Member Avatar for thines01
0
162
Member Avatar for kolibrizas

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?

Member Avatar for kolibrizas
0
664
Member Avatar for surajrai

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());

Member Avatar for darkagn
0
549
Member Avatar for wolfrain63

Here is [URL="http://www.daniweb.com/software-development/vbnet/threads/408082/1743022#post1743022"]an example I made[/URL] to show the technique.

Member Avatar for thines01
0
108
Member Avatar for zekstein

Using what OS? On windows, you can use C++/CLI and open a WebClient^ to a page.

Member Avatar for thines01
0
415
Member Avatar for badboy11

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.

Member Avatar for badboy11
0
1K
Member Avatar for mayankshri

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?

Member Avatar for thines01
0
181
Member Avatar for PixelatedKarma

How about [URL="http://msdn.microsoft.com/en-us/library/ms950960.aspx"]this[/URL]?

Member Avatar for PixelatedKarma
0
1K
Member Avatar for Mike_

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?

Member Avatar for thines01
0
190
Member Avatar for sathya88

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]

Member Avatar for thines01
0
185
Member Avatar for SaimaAsif

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 …

Member Avatar for SaimaAsif
0
148
Member Avatar for jackbauer24
Member Avatar for sota

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.

Member Avatar for sota
0
378
Member Avatar for aruabc

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?

Member Avatar for aruabc
0
105
Member Avatar for markdean.expres

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

Member Avatar for markdean.expres
0
159
Member Avatar for sharathg.satya

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.

Member Avatar for sharathg.satya
0
209
Member Avatar for renzlo

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

Member Avatar for codeorder
0
254
Member Avatar for inspire_all

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.

Member Avatar for Ancient Dragon
0
160
Member Avatar for deepak690

The End.