Results 1 to 4 of 4

Thread: Control doesn't work on clean machine

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2001
    Location
    everywhere
    Posts
    111

    Question Control doesn't work on clean machine

    I have been working on developing an ActiveX control that will be used over an intranet. It uses the Internet Transfer Control, Winsock, SystemMonitor, and a few Database Connections (using Microsoft ActiveX Data Objects 2.6). If I load this control onto our server, and then access it from my computer (the computer I developed the control with) everything loads fine, and the control works as designed.

    However, if I run it on a "clean" machine, one without VB, but still win2k (for SysMon), it doesn't work. The ASP page loads, and I get the security warning with my certificate, and I accept (it is marked safe for scripting and initialization also), it downloads the control, then nothing shows up, just a blank box with a little X in it. Right now, I'm referncing it like this, without a .cab:

    <OBJECT ID="MasterControl"
    CLASSID="CLSID061B421-0E10-404E-BA69-D8779430B4CC"
    CODEBASE="MasterProject.ocx#version=2,0,0,18">
    <PARAM NAME="_ExtentX" VALUE="6200">
    <PARAM NAME="_ExtentY" VALUE="1150">
    <PARAM NAME="SQLInfo" VALUE="db;UID=userid;PWD=;">
    <PARAM NAME="SQLServerName" VALUE="sqlservername">
    <PARAM NAME="WebServerName" VALUE="webservername">
    </OBJECT>

    Should I include the cab? As far as I understand, the only benefit of the cab is to decrease the download time, is this true? Or do I need it to include my references to winsock, ADODB, and so on?

    Any help here would be much appreciated, thanks in advance,

    Jacob

  2. #2
    Fanatic Member Kzin's Avatar
    Join Date
    Dec 2000
    Posts
    611

    Re: Control doesn't work on clean machine

    Originally posted by Jacob438
    I have been working on developing an ActiveX control that will be used over an intranet. It uses the Internet Transfer Control, Winsock, SystemMonitor, and a few Database Connections (using Microsoft ActiveX Data Objects 2.6). If I load this control onto our server, and then access it from my computer (the computer I developed the control with) everything loads fine, and the control works as designed.

    However, if I run it on a "clean" machine, one without VB, but still win2k (for SysMon), it doesn't work. The ASP page loads, and I get the security warning with my certificate, and I accept (it is marked safe for scripting and initialization also), it downloads the control, then nothing shows up, just a blank box with a little X in it. Right now, I'm referncing it like this, without a .cab:

    <OBJECT ID="MasterControl"
    CLASSID="CLSID061B421-0E10-404E-BA69-D8779430B4CC"
    CODEBASE="MasterProject.ocx#version=2,0,0,18">
    <PARAM NAME="_ExtentX" VALUE="6200">
    <PARAM NAME="_ExtentY" VALUE="1150">
    <PARAM NAME="SQLInfo" VALUE="db;UID=userid;PWD=;">
    <PARAM NAME="SQLServerName" VALUE="sqlservername">
    <PARAM NAME="WebServerName" VALUE="webservername">
    </OBJECT>

    Should I include the cab? As far as I understand, the only benefit of the cab is to decrease the download time, is this true? Or do I need it to include my references to winsock, ADODB, and so on?

    Any help here would be much appreciated, thanks in advance,

    Jacob
    The CAB will include your references etc. Make one for your file with Package and Deplyment Wizard and look inside it with Wnzip and you will see what should have been shipped to the new machine
    Looking for a friendly intelligent chat forum? Visit the white-hart.net

  3. #3
    PowerPoster rjlohan's Avatar
    Join Date
    Sep 2001
    Location
    Sydney, Australia
    Posts
    3,205
    Don't know how it affects COM distribution, but you may want to compile the .OCX with Binary Compatability set.
    -----------------------------------------
    -RJ
    [email protected]
    -----------------------------------------

  4. #4
    Addicted Member MrPresident2k's Avatar
    Join Date
    May 2002
    Location
    INDIA
    Posts
    167

    You have to make a CAB File

    Hi,

    You have to make a CAB file using Package and Deployment Wizard and then include the CAB in the Object tag. Since the CAB file will have all the reference DLLs(for example MSVBVM60.DLL), these DLLs are required in a fresh machine for the OCX to execute.

    Pres.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width