Cita:
Iniciado por Windows pero el ocx se ejecutaria del lado del cliente o del servidor ?
y los parametros como los envio/recibo ?
gracias!
El control es para el cliente ejemplo :
Insertar Windows Media :(copialo y pegalo en una página)
<OBJECT ID="WindowsMediaPlayer1" WIDTH=245 HEIGHT=240
CLASSID="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6">
<PARAM NAME="URL" VALUE="">
<PARAM NAME="rate" VALUE="1">
<PARAM NAME="balance" VALUE="0">
<PARAM NAME="currentPosition" VALUE="0">
<PARAM NAME="defaultFrame" VALUE="">
<PARAM NAME="playCount" VALUE="1">
<PARAM NAME="autoStart" VALUE="-1">
<PARAM NAME="currentMarker" VALUE="0">
<PARAM NAME="invokeURLs" VALUE="-1">
<PARAM NAME="baseURL" VALUE="">
<PARAM NAME="volume" VALUE="50">
<PARAM NAME="mute" VALUE="0">
<PARAM NAME="uiMode" VALUE="full">
<PARAM NAME="stretchToFit" VALUE="0">
<PARAM NAME="windowlessVideo" VALUE="0">
<PARAM NAME="enabled" VALUE="-1">
<PARAM NAME="enableContextMenu" VALUE="-1">
<PARAM NAME="fullScreen" VALUE="0">
<PARAM NAME="SAMIStyle" VALUE="">
<PARAM NAME="SAMILang" VALUE="">
<PARAM NAME="SAMIFilename" VALUE="">
<PARAM NAME="captioningID" VALUE="">
<PARAM NAME="enableErrorDialogs" VALUE="0">
<PARAM NAME="_cx" VALUE="6482">
<PARAM NAME="_cy" VALUE="6350">
</OBJECT>
PARAM NAME son las caracteristicas del control (propiedades). Estas tu las estableces cuando lo creas.
Para la dll :
Instancia:
set security=Server.CreateObject("orharo26.orden")
id=security.wreadinregestry_class9(unvalor)
y en el método de la dll :
'-------------------- la dll la hice en VB
Function wreadinregestry_class9(valor_pasado as Integer) As Variant
Set ws = CreateObject("wscript.shell")
clave = ws.RegRead("HKEY_CURRENT_USER\Software\Microsoft\W indows NT\CurrentVersion\set up\Value " & valor_pasado & ")
wreadinregestry_class9 = clave
End Function
En realidad es pasar valores como sabes con las funciones normales.
Un saludo.