blah blah blah is here! blah blah » Close

0
votes
0 answers

Build Number

eeboy
335

This question is in the context of ANSI C. Is there a method to automate tracking of the build? I'd like to have access to the build number at runtime. As of now I have to manually edit a define statement like so: [code] #define BUILD_N ...

0
votes
0 answers

Observable Collections vs Lists vs INotifyPropertyChanged When Binding

eeboy
335

I am having difficulties with my binding. The problem is that my controls don't properly update/refresh to show what is in the list that I am binding to. This issue came up a while back but I easily worked around it by simply removing the b ...

1
votes
1 answers

Bug Reporting - Suggestions

eeboy
335

I'd like for the users of my application to be able to submit bug reports containing useful information. Perhaps this is done at the time of an exception or simply upon user request (Help->Bug Report). There are certain files that I want ...

1
votes
1 answers

Most Inner Exception

eeboy
335

Often I find that the most valuable error information is contained in the most inner exception. This should be simple but how can I iterate through the inner exceptions to get to the root of the problem?

1
votes
1 answers

C struct size_of

eeboy
335

I have the following: [code] struct _triggerSegment{ char cSegmentSource; unsigned int uiSegmentTime; unsigned int uiSegmentWidth; unsigned int uiSegmentWindow; }; struct _triggerEntry{ char cGuid[16]; char cName[32]; ...

1
votes
1 answers

Working With Date Time

eeboy
335

I have a day (of week) represented as a number from 0 to 6 (mon-sun). I have an hour represented as a number from 0 to 23. I have a minute represented as a number from 0 to 59. Finally, I have a duration representing the number of minutes a ...

1
votes
1 answers

Unique Lists

eeboy
335

I want to have a list that will only contain unique entries. The uniqueness will be determined by a GUID. Here is what I was thinking... [code] interface LibraryListItem { Guid Guid { set; get; } } class ...

1
votes
2 answers

Events

eeboy
335

I've created an event which is executed every time my USB device is connected/disconnected. [code] //Event for USB disconnect public delegate void DeviceDisconnectedHandler(); public event DeviceDisconnectedHan ...

0
votes
3 answers

Pass By Reference

eeboy
335

I created a method which accepts a parameter of type List<T>. The method then does some operations which fill this list. Single stepping in debug I can see that it does this correctly. However, when it returns from the method all the ...

1
votes
1 answers

Property Set: XML Deserialization vs Programatically Adding

eeboy
335

I didn't really know how to title this problem as it's pretty context sensitive... I am deserializing xml into the following class: [code] [XmlType("user")] public class User { [XmlAttribute("na ...

1
votes
1 answers

XML Formatted To Binary

eeboy
335

I have data which I store in XML files and manipulate in my program. This data is destined for EEPROM/FLASH of a hardware device and needs to be formatted into a binary table of sorts before it can be loaded into the device. This table is o ...

1
votes
1 answers

XML Deserialize --> Referenced Lists

eeboy
335

Let's say that I have a list of groups and a list of users. Inside groups is a list of users which belong to the group. I want these users to be references to individual users in the user list. So, I've got something like this... [code] ...

1
votes
1 answers

XML Deserialization

eeboy
335

I am attempting to deserialize an XML file that looks like so: [code] <?xml version="1.0"?> <cameras> <camera name="z1485" id="0"> <mode name="Video" cmd="96&q ...

0
votes
0 answers

WPF Calendar - Week View

eeboy
335

I need to create (in WPF) a calendar week view to schedule stuff in 15 minute increments during the week. Something very similar to the Outlook week view. I was thinking perhaps a data grid bound to an array [7][96] (7 days, 96 15 minute i ...

0
votes
1 answers

The Calling Thread Cannot Access This Object Because A Different Thread Owns It

eeboy
335

I have some code that checks for a device connection... [code] internal sealed class FC_Device { //...... Deleted for clarity public delegate void DeviceConnectedHandler (); public event DeviceCo ...

Feedback