I want to create a base class to upload data to webservices, and then several child classes which inherit from the base.
Ideally I'd like to override a method/property of the base class to hold the URL as a PROGMEM string. I intend to use EtherCard library so want to get the url into the dnslookup so needs to be a PROGMEM CHAR* type.
Consider the following code sample which shows what the problem is!
One for the Arduino C++ class experts...
Submitted by stuart on Mon, 06/02/2012 - 23:16I want to create a base class to upload data to webservices, and then several child classes which inherit from the base.
Ideally I'd like to override a method/property of the base class to hold the URL as a PROGMEM string. I intend to use EtherCard library so want to get the url into the dnslookup so needs to be a PROGMEM CHAR* type.
Consider the following code sample which shows what the problem is!
I think its a pointer thing as usual in C.