Where is DateTime?
2 replies to this topic
Posted 14 September 2011 - 04:03 AM
My N+ project has been going pretty well, considering that I'm a beginner to these things. But I seem to get hung up on what would usually be a trivial issues. Here's today's: I found some code in the forums for getting the current time from an NTP server. I cut and paste the code into my "Program" class and I get an "Expected class, delegate, enum, interface, or struct" error for "DateTime". I Google ".net micro framework DateTime" and I get the following: Namespace: System Assembly: mscorlib (in mscorlib.dll) I'm "using System" and "mscorlib" is referenced, but still get the error. Is this another documentation error, or am I missing something?
Posted 14 September 2011 - 04:18 PM
Thanks for the pointer, Mike. Turns out I had a subtle syntax error that Visual C# decided to report as described above. Seems like this IDE sends me on more wild goose chases than others I've worked with.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users