PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 28 → ActiveX vs Windev 18
ActiveX vs Windev 18
Débuté par Victor H Pereyra, 21 mai 2015 13:29 - 2 réponses
Posté le 21 mai 2015 - 13:29
Necesito trabajar con una dll de Visual Studio (Activex), alguien pude
ayudarme como puedo instanciar la dll y algun ejemplo como invocar metodos?

He intendado realizar una declaracion y da error


sNombre is string = "C:\Program Files\ActiveXperts\SMS
Component\Program\AxSms32.dll"

autMyVisualBasicDLL is Automation object snombre -->> here fails


Alguien ha tenido que utilizar algo similar, como lo uso?

Desde ya gracias por la ayuda.
victor
Membre enregistré
391 messages
Popularité : +12 (12 votes)
Posté le 22 mai 2015 - 13:33
Hola. aqui tienes todas la explicaciones y los ejemplos :

http://doc.windev.com/en-US/…

Basicamente, puedes utilizar un campo ActiveX, y despuer llamar los metodos, siempre usa ">>"

Cordialemente, Michel.

--
If it works, don't touch it, don't look at it, AND don't fix it ! No patches, no SP ! JUST DONT FIX IT.
Posté le 22 mai 2015 - 15:42
Aqui paso el codigo por si alguien le pasa lo mismo... basado sobre una dll
de:
http://www.activexperts.com/files/sms-component/manual.htm…
(cuidado no es una OCX sino una DLL)

Declaracion de los metodos

autSmsActivex is object Automation "AxSms.Smpp"
// This is the SMPP SMS protocol component
autSmppActivex is object Automation "AxSms.SmppServer"
//This is the SMPP SMS Server protocol component
autSmppSessionActivex is object Automation "AxSms.SmppSession"
// This is the SMPP SMS Server session component
autGsmActivex is object Automation "AxSms.Gsm"
// This is the GSM modem SMS protocol component
autHtmlActivex is object Automation "AxSms.Http"
// This is the HTTP SMS protocol component
autDialupActivex is object Automation "AxSms.Dialup"
// This is the Dialup SMS protocol component
autMessageActivex is object Automation "AxSms.Message"
// This is the SMS message component. SMS messages that are received and
sent are kept in instances of this component
autTemplateWapPushActivex is object Automation "AxSms.TemplateWapPush"
// This is the WAPPush SMS message template. Use this to quickly generate
binary formatted WAPPush messages
autTemplatevCardActivex is object Automation "AxSms.TemplatevCard"
// This is the vCard SMS message template. Use this to quickly generate
vCard formatted messages
autTlvActivex is object Automation "AxSms.Tlv"
// This is the TLV (Tag, Length, Value) component. It's only used with the
SMPP component and can be part of an SMS message as well as a bind call
autSnppActivex is object Automation "AxSms.Snpp"
// This is the Pager SNPP protocol component
autConstantsActivex is object Automation "AxSms.Constants"
// This component contains all constants that are used with SMS messages and
the SMS protocols


en un boton pongo por ejemplo para saber la version

Info("Version: " + autSmsActivex>>Version )


Espero que alguien le sirva.
Saludos



"Victor H Pereyra" escribió en el mensaje de
noticias:2015349223a083547752bdfd8ffd3e6e9ce9@news.pcsoft.fr...

Necesito trabajar con una dll de Visual Studio (Activex), alguien pude
ayudarme como puedo instanciar la dll y algun ejemplo como invocar metodos?

He intendado realizar una declaracion y da error


sNombre is string = "C:\Program Files\ActiveXperts\SMS
Component\Program\AxSms32.dll"

autMyVisualBasicDLL is Automation object snombre -->> here fails


Alguien ha tenido que utilizar algo similar, como lo uso?

Desde ya gracias por la ayuda.
victor