|
FOROS PROFESIONALES WINDEV, WEBDEV y WINDEV Mobile |
| | | | | |
| Iniciado por vihupe, 03,nov. 2015 12:15 - No hay respuesta |
| |
| | | |
|
| |
| Publicado el 03,noviembre 2015 - 12:15 |
Hello I have to enter an ActiveX (OCX not), this program is for sending SMS directly through a team 2N StarGate. One of the characteristics of this team is prune send SMS and receive SMS. It's just what I need. Moreover ActiveX ActiveXpers was purchased to integrate right from your windev v20. Here begins my fight ....
namespace AxSms { [ClassInterface(0)] [Guid("7524134C-0186-43C6-958C-2C3A49FE40FC")] [TypeLibType(2)] public class MessageClass : IMessage, Message { public MessageClass();
[DispId(5)] public virtual string Body { get; set; } [DispId(16)] public virtual int BodyFormat { get; set; } [DispId(15)] public virtual int DataCoding { get; set; } [DispId(4)] public virtual string FromAddress { get; set; } [DispId(11)] public virtual int FromAddressNPI { get; set; } [DispId(10)] public virtual int FromAddressTON { get; set; } [DispId(51)] public virtual int GsmFirstOctet { get; set; } [DispId(55)] public virtual string GsmMemoryIndex { get; set; } [DispId(56)] public virtual string GsmMemoryLocation { get; set; } [DispId(52)] public virtual string GsmSmscAddress { get; } [DispId(54)] public virtual int GsmSmscAddressNPI { get; } [DispId(53)] public virtual int GsmSmscAddressTON { get; } [DispId(21)] public virtual bool HasUdh { get; set; } [DispId(22)] public virtual bool Incomplete { get; } [DispId(101)] public virtual int LastError { get; } [DispId(23)] public virtual int MultipartRef { get; } [DispId(18)] public virtual int PartNumber { get; } [DispId(12)] public virtual int ProtocolId { get; set; } [DispId(19)] public virtual string ReceiveTime { get; } [DispId(20)] public virtual int ReceiveTimeInSeconds { get; } [DispId(14)] public virtual string Reference { get; set; } [DispId(7)] public virtual bool RequestDeliveryReport { get; set; } [DispId(77)] public virtual int SmppCommandStatus { get; set; } [DispId(76)] public virtual int SmppError { get; set; } [DispId(73)] public virtual int SmppEsmClass { get; set; } [DispId(74)] public virtual bool SmppIsDeliveryReport { get; set; } [DispId(71)] public virtual int SmppPriority { get; set; } [DispId(78)] public virtual int SmppSequenceNumber { get; } [DispId(80)] public virtual string SmppServerFinalDate { get; } [DispId(79)] public virtual string SmppServerSubmitDate { get; } [DispId(72)] public virtual string SmppServiceType { get; set; } [DispId(75)] public virtual int SmppStatus { get; set; } [DispId(3)] public virtual string ToAddress { get; set; } [DispId(9)] public virtual int ToAddressNPI { get; set; } [DispId( ] public virtual int ToAddressTON { get; set; } [DispId(17)] public virtual int TotalParts { get; } [DispId(2)] public virtual int UserTag { get; set; } [DispId(13)] public virtual int ValidityPeriod { get; set; }
[DispId(1)] public virtual void Clear(); [DispId(102)] public virtual string GetErrorDescription(int Error); [DispId(91)] public virtual void SmppAddTlv(Tlv Tlv); [DispId(92)] public virtual Tlv SmppGetFirstTlv(); [DispId(93)] public virtual Tlv SmppGetNextTlv(); [DispId(94)] public virtual Tlv SmppGetTlv(int lTag); } }
ollowing the steps performed Demo comes with .Net .... I could connect to your computer and send sms without problems, but when I want to receive such SMS, pond me. Since I have a class in .Net and not as should inherit that class. The .NET class is as follows: this class when .net instance is as follows AxSms.Message objMessage; objSmpp.ReceiveMessage objMessage = (); where OjbMessage returns a set of data when SMS is received cell. Try instantiate in windev as follows: and I get the error: Error at line 80 of Click BTN_Leer_Mensajes_RECIBIDO process. An element of 'automation object' type can not be converted to the 'ANSI string' type. sDatos is string = autSmsSMPPActivex >> ReceiveMessage Also attempt by a structure in nature from this showing .net // Structrua in windev Message Body Structure is BodyFormat string is DataCoding is int int is FromAddress is FromAddressNPI string is FromAddressTON is int int int GsmFirstOctet is GsmMemoryIndex is GsmMemoryLocation is string string string is GsmSmscAddressNPI GsmSmscAddress GsmSmscAddressTON is int int is HasUdh is Incomplete is boolean boolean int is LastError is MultipartRef PartNumber is int int int ProtocolId is ReceiveTime is ReceiveTimeInSeconds is int string string Reference is RequestDeliveryReport is boolean SmppCommandStatus is SmppError is int int int SmppEsmClass is SmppIsDeliveryReport is boolean SmppPriority is SmppSequenceNumber is int int string is SmppServerFinalDate SmppServerSubmitDate is SmppServiceType is string string int SmppStatus is ToAddress string is ToAddressNPI is ToAddressTON is int int int TotalParts is ValidityPeriod is UserTag is int int -------------- // This is not as declaring in windev // [DispId (1)] // Void Clear (); // [DispId (102)] // String GetErrorDescription (int error); // [DispId (91)] // Void SmppAddTlv (TLV TLV); // [DispId (92)] // Tlv SmppGetFirstTlv (); // [DispId (93)] // Tlv SmppGetNextTlv (); // [DispId (94)] // Tlv SmppGetTlv (int LTag); END
Error at line 63 of Click BTN_Leer_Mensajes_RECIBIDO process.
Only structure of same definition can be Assigned to structure.
Someone out there has had to deal with ActiveX .NET and integrate windev.?
Someone can give me a clue as instanaciar or inherit one class by another in windev?
PS: I hope you understand my problems
From already thank you very much. Victor |
| |
| |
| | | |
|
| | | | |
| | |
| | |
| |
|
|
|