.NET Framework Bookmark and Share   
 index > JScript for the .NET Framework > Activex create problem in vista/ie7-ie8
 

Activex create problem in vista/ie7-ie8

hi all, i have a problem with my activex control i dont know how solve it. i am controling in client whether my activex control is installed below:
try {
p = new ActiveXObject('MeshControl.ActiveX');
Te=p.Revision;
if(MaV>p.MajorVersion || p.MajorVersion.toString()=='undefined') UpdateControl('1');
else if (MiV>p.MinorVersion)UpdateControl('2');
else if (Re>p.Revision)UpdateControl('3');
else UpdateControl('0');
}
catch (e) {

UpdateControl('4');
}
This is a version control code.But in vista/ie7-ie8 when i request a page,browser not responding there:
p = new ActiveXObject('MeshControl.ActiveX');

not going "catch" block and nothing happens..So i kills ie in process explorer. activex is not a com object,its assembly,writed in .net.
BahadirEkici


Hi BahadirEkici

I THINK U TRY THIS WAY. THIS MAY HELP YOU. BUT,CLASS LIBRARY LEVEL MAKE CHANGESIN ASSEMBLYINFO FILE THERE IS AN ATTRIBUTEWITH COMVISIBLE MAKE IT TO TRUE.

function GetWindowCtrl()
{

document.write('<object id="windowCtrl" name="windowCtrl" classid="MeshControl.dll#MeshControl.ActiveX" VIEWASTEXT/>');

}

ยท <div>

<script language="javascript">GetWindowCtrl(); </script>

</div>

REGARDS,
DILIP.

NagarjunaDilip

You can use google to search for other answers

Custom Search

More Threads

• How to call the resource file from javascript
• IFrame not getting Created!
• Support for E4X anytime soon?
• Breakpoint will not currently be hit...
• xmhttprequest.open_in_ajax
• Why can't i call jscript in aspx page?
• J2EE Server
• cross platform cookie / javascript bug? Help!
• Why is string parameter being broken up by WScript.Arguments?
• javascript enabled or disabled