Type: Posts; User: Arjay
Search took 0.23 seconds.
// access the linked list for a single dictionary key and enumerate the list items
foreach(var stringEntry in myDictionary["keyValue"])
// access the linked list for all the keys...
Sure, you can do it this way, but it's the hard way to get it done unless you really need something custom.
A constructor isn't really a function or class method, but if you want to call it one, it would be a method without a return type. Same for destructors too.
Rather than reading the file one question at a time, read the whole file and store each line in a collection.
April 15th, 2014, 10:59 PM
Point some breakpoints in your code and step through the code in a debugger. If you do this, the errors will become obvious.
April 15th, 2014, 06:13 PM
April 15th, 2014, 06:12 PM
What language do you plan to code in?
April 15th, 2014, 02:10 PM
The hardest part is getting the PInvoke dll signatures correct. Refer to PInvoke in msdn and the PInvoke.Net site.
April 15th, 2014, 12:29 PM
If you plan to do this yourself, you should start small by doing some simple game tutorials and learning C#.
After you get some basic programming skills, then move onto user authentication,...
April 15th, 2014, 12:25 PM
There are several approaches:
1) PInvoke to your C dlls
2) Use the C source code and write managed C++ wrapper assemblies around the code.
PInvoke to the existing dlls is by far the simplest...
April 15th, 2014, 11:12 AM
Search bing for "Update the UI in WPF from another thread". Look at the articles that mention the dispatcher. As for determining if you are running in a different thread, Use...
April 14th, 2014, 05:27 PM
As I mentioned, make sure that the hardware handler is getting called in the UI thread.
April 14th, 2014, 04:45 PM
You are creating a new observablecollection when you change the data. Instead, update the existing ObservableCollection instance. That should cause its change event to fire.
Also, make sure the...
April 14th, 2014, 03:00 PM
Are you sure that this isn't the standard behavior? In that, the first click (over the button) is going to move the focus to the button and it will take another click to actually click the button.
April 14th, 2014, 02:07 PM
April 14th, 2014, 11:45 AM
Okay. Just make a class that wraps the StringBuilder and expose the methods you need.
April 13th, 2014, 09:06 PM
It's not clear to me why you want to split each string builder line into an array of StringBuilder objects. Based on your original description it would make sense to split each line and add it to a...
April 13th, 2014, 07:37 PM
Welcome to the forum.
I don't know of any helper class that allows you to remove appended lines. If you need this sort of functionality, you'll need to write your own class. Be forewarned that...
April 13th, 2014, 03:38 PM
That's good if the course ends you up in C++; otherwise, you kind of miss out on learning C#'s features.
At any rate, glad I could help.
April 13th, 2014, 02:29 PM
pl post code using code tags.
April 13th, 2014, 02:20 PM
You are suppose to pass in a method argument to the setName() method.
public void SetName(string name)
Name = name;
April 12th, 2014, 08:36 PM
If you want to store a Customer object in the arraylist, you need to declare the array as such.
April 12th, 2014, 07:47 PM
Right click on the references folder in the project and choose add service reference. In the dialog, there is an option to add a reference to older web services if you need that.
April 12th, 2014, 11:04 AM
In that case, I suggest using SignalR.
April 11th, 2014, 08:58 PM
Can you clarify if you want to have two-way communication between a windows form app and an asp.net site?
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.