Hi:
I have programed an activex called "ActivexNet" in Visual C++.net
This activex just send a message box "hello world" when it starts.
I have neither marked nor signed this activex.
I have created an .inf file "activexnet.inf"
"ActivexNet.ocx" and activexnet.inf" are stored in a .cab file "activexnet.cab"
I programed a web page to view the "ActivexNet.ocx"
When I try to view "ActivexNet.ocx" in my pc (where I programed the activex) it works. It sends the message box "hello
world".
My pc works as server
I'm trying to view "ActivexNet.ocx" in another pc on the same intranet setting security level to none but it does not work .
The web page just displays a broken link (the red "x")
This is the code of the web page
------------------------------------------------------------
<HTML>
<HEAD>
<TITLE>New Page</TITLE>
</HEAD>
<BODY>
<OBJECT ID="ActivexNet1" WIDTH=100 HEIGHT=51
CLASSID="CLSID:81C8850E-E897-421F-A3DB-F863CB6E5863" codebase=" <PARAM NAME="_Version" VALUE="65536">
<PARAM NAME="_ExtentX" VALUE="2646">
<PARAM NAME="_ExtentY" VALUE="1341">
<PARAM NAME="_StockProps" VALUE="0">
</OBJECT>
</BODY>
</HTML>
------------------------------------------------------------
192.168.0.16 is the ip addrees of the server (my pc)
This is the code of activex.inf file
------------------------------------------------------------
[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Add.Code]
activexnet.ocx=activexnet.ocx
msvcrt.dll=msvcrt.dll
mfc42.dll=mfc42.dll
olepro32.dll=olepro32.dll
[activexnet.ocx]
file-win32-x86=thiscab
clsid={81C8850E-E897-421F-A3DB-F863CB6E5863}
FileVersion=1,0,0,0
RegisterServer=no
[msvcrt.dll]
FileVersion=4,20,0,6164
hook=mfc42installer
[mfc42.dll]
FileVersion=4,2,0,6256
hook=mfc42installer
[olepro32.dll]
FileVersion=4,2,0,6068
hook=mfc42installer
[mfc42installer]
file-win32-x86= run=%EXTRACT_DIR%\mfc42.exe
------------------------------------------------------------
What could be wrong?
What can I do?
Thanks!!
I have programed an activex called "ActivexNet" in Visual C++.net
This activex just send a message box "hello world" when it starts.
I have neither marked nor signed this activex.
I have created an .inf file "activexnet.inf"
"ActivexNet.ocx" and activexnet.inf" are stored in a .cab file "activexnet.cab"
I programed a web page to view the "ActivexNet.ocx"
When I try to view "ActivexNet.ocx" in my pc (where I programed the activex) it works. It sends the message box "hello
world".
My pc works as server
I'm trying to view "ActivexNet.ocx" in another pc on the same intranet setting security level to none but it does not work .
The web page just displays a broken link (the red "x")
This is the code of the web page
------------------------------------------------------------
<HTML>
<HEAD>
<TITLE>New Page</TITLE>
</HEAD>
<BODY>
<OBJECT ID="ActivexNet1" WIDTH=100 HEIGHT=51
CLASSID="CLSID:81C8850E-E897-421F-A3DB-F863CB6E5863" codebase=" <PARAM NAME="_Version" VALUE="65536">
<PARAM NAME="_ExtentX" VALUE="2646">
<PARAM NAME="_ExtentY" VALUE="1341">
<PARAM NAME="_StockProps" VALUE="0">
</OBJECT>
</BODY>
</HTML>
------------------------------------------------------------
192.168.0.16 is the ip addrees of the server (my pc)
This is the code of activex.inf file
------------------------------------------------------------
[version]
signature="$CHICAGO$"
AdvancedINF=2.0
[Add.Code]
activexnet.ocx=activexnet.ocx
msvcrt.dll=msvcrt.dll
mfc42.dll=mfc42.dll
olepro32.dll=olepro32.dll
[activexnet.ocx]
file-win32-x86=thiscab
clsid={81C8850E-E897-421F-A3DB-F863CB6E5863}
FileVersion=1,0,0,0
RegisterServer=no
[msvcrt.dll]
FileVersion=4,20,0,6164
hook=mfc42installer
[mfc42.dll]
FileVersion=4,2,0,6256
hook=mfc42installer
[olepro32.dll]
FileVersion=4,2,0,6068
hook=mfc42installer
[mfc42installer]
file-win32-x86= run=%EXTRACT_DIR%\mfc42.exe
------------------------------------------------------------
What could be wrong?
What can I do?
Thanks!!