I can’t seem to find the references for Resources.GetBytes or Resources.BinaryResource anywhere for my FEZ Cobra. I see all kinds of examples referencing these two methods, but have not found a name space or reference for them. I’ve included the following name spaces:
using System.IO;
using System.Text;
using System.Threading;
using Microsoft.SPOT;
using Microsoft.SPOT.Hardware;
using Microsoft.SPOT.Input;
using Microsoft.SPOT.IO;
using Microsoft.SPOT.Net.NetworkInformation;
using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Controls;
using Microsoft.SPOT.Presentation.Media;
using Microsoft.SPOT.Touch;
using System;
using FastloadMedia.NETMF;
using FastloadMedia.NETMF.Hardware;
using FastloadMedia.NETMF.Net.Http;
//using FastloadMedia.NETMF.Crypto;
using GHIElectronics.NETMF.FEZ;
using GHIElectronics.NETMF.Hardware;
using GHIElectronics.NETMF.Native;
And all associated references. But nothing works. Where am I missing the boat?
Error 1 ‘FEZ_Cobra_Web_Server.Resources’ does not contain a definition for ‘GetBytes’
Error 2 ‘FEZ_Cobra_Web_Server.Resources’ does not contain a definition for ‘BinaryResources’
You need to add a binary resource using Resource editor. VS will generate the missing code. I believe there is a whole section in the beginners guide that has more details on that.