… and the best way to correct that is to edit your post (the pencil icon on the right side, above your post text), highlight the code section, then hit the 101010 button above the message box.
Onto your problem; I am actually not very knowledgable, but here’s what I see.
[quote]Resolve: unknown method: Microsoft.SPOT.Input.TouchEventArgs…ctor
Error: ff000000
[/quote]
Your code is trying to create a new TouchEventArgs object, and the constructor can’t be resolved. I can’t see Microsoft.SPOT.Input being included as a reference above that?
using System;
using System.Collections;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;
using Microsoft.SPOT.Touch;
using Microsoft.SPOT.Input;
using Gadgeteer.Networking;
using GT = Gadgeteer;
using GTM = Gadgeteer.Modules;
using Gadgeteer.Modules.GHIElectronics;
using GHI.OSHW.Hardware;
namespace GadgeteerApp1
{
public partial class Program
{
// This method is run when the mainboard is powered up or reset.
void ProgramStarted()
{
var arg = new Microsoft.SPOT.Input.TouchEventArgs((InputDevice)null, DateTime.Now, new TouchInput[1]
{
new TouchInput()
{
X = 100,
Y = 200
}
});
// Use Debug.Print to show messages in Visual Studio's "Output" window during debugging.
Debug.Print("Program Started");
}
}
}
The sample was compiled fine but the error coming in the debug session, in the resolving assemblies step.
As you can see the TouchEventArgs is declared in the Microsoft.SPOT.TinyCore.dll module that it was referenced on my project.
If you like I can send the sample that reproduce the issue.
I have installed the FW with the Ethernet support and I have created a new project and it work fine with the last SDK.
I have saw your device capabilities and they are the same as my Hydra
@ Proxima Software - Thanks for info, I have created new project also, but without luck. Still got stuck in resolving with following message:
@ Brett - I have same problem as Mirco, but his has been resolved by updating SDK, but in my case it didn’t help, I’ll try uninstall SDKs, and will see what happends next. Yes, I created new Window Application with lastest SDK and same trouble in my case.
Assembly: HydraTouchTest (1.0.0.0) Resolving.
Resolve: unknown method: Microsoft.SPOT.Input.TouchEventArgs..ctor
Error: ff000000
Waiting for debug commands...
The program '[2] Micro Framework application: Managed' has exited with code 0 (0x0).