Vb ocx with asp file in client side

Ask a Question related to ASP Components, Design and Development.

  1. #1

    Default Vb ocx with asp file in client side

    Hi all..


    I have made ocx with vb6, and I embedded with asp file.
    When I am running this asp in server side windows 2000, the ocx is
    working fine, but when I call from client side with windows 2000 too,
    it's only small blank box.
    I have tried using this line :
    <HTML><body topmargin="0" leftmargin="0" bgcolor="#F8F4DD">
    <OBJECT ID ="data" classid="clsid:FAA5F185-0363-44C3-9A5E-CEC949385B7B"
    codebase="http://server/path/data.ocx"></OBJECT></BODY></HTML>


    but it's still doesn't work..
    I also have added runat ="server" it's still same.

    Hopefully anyone can give me a solution for this.
    tammy Guest

  2. Similar Questions and Discussions

    1. flashcom: client side cant access server side
      hi all, i hav install the flash com on the PC. It work well, on the server PC, i can access and log in to the 'chat room'.. however, if im...
    2. Controls with a client side onLoad function or seting a cursor server side
      Is there any way to create a web control that calls a client side onLoad function? Its diffucilt since you are not able to access the form or...
    3. Client side and server side scripting problem
      Hiya I have a problem with using some client side and server side scripting together in an ASP. I'm using VBScript. What I'm trying to achieve...
    4. server-side ASP w/ client -side component
      Hello good folks! I need your advice on a project that i am working on. I am integrating a signature pad, a client-side web browser, and my...
    5. button evet ---- server side - client side ???
      I want to use button. My question is that How can use server side and client site event at the same time. That is: I want to use button : when...
  3. #2

    Default Re: Vb ocx with asp file in client side

    Tammy,

    You need to package the .OCX in a .CAB file. You will also need to create a
    ..INF to provide the client pc with instructions on how to install the files.

    Here's a sample .INF
    [version]
    signature="$CHICAGO$"
    AdvancedINF=2.0

    [Add.Code]
    MyOCX.ocx=MyOCX.ocx
    MSVBVM60.DLL=MSVBVM60.DLL

    [MyOcx.ocx]
    file-win32-x86=thiscab
    clsid={A171AA73-2F00-4523-A7C6-17C4CF821245}
    FileVersion=1,3,0,17
    RegisterServer=yes

    [MSVBVM60.DLL]
    hook=MSVBVM60.cab_Installer
    FileVersion=5,1,43,19

    [MSVBVM60.cab_Installer]
    file-win32-x86=http://activex.microsoft.com/controls/vb6/MSVBVM60.cab
    InfFile=MSVBVM60.inf

    You will have to adjust the MyOcx stuff to fit your control (eg. the clsid
    and file version).

    To build a cabfile you need the cabarc command (see link below). The command
    should be something like:
    cabarc.exe n MyOcx.cab MyOcx.ocx MyOcx.inf

    That creates your .CAB file with your .OCX and .INF. The required support
    files are downloaded from Microsoft. You then reference the .CAB from you
    web page using the codebase attribute:
    <OBJECT ID ="data" classid="clsid:FAA5F185-0363-44C3-9A5E-CEC949385B7B"
    codebase=http://server/path/MyOcx.cab#version=1,3,0,17></OBJECT>

    A couple of things you need to concern yourself about managing updates to
    your control. As you make changes to the control you need to update it's
    version number and the .INF and the .CAB file itself. IE likes to cache cab
    files so you have to be careful about your version numbers (that why there
    is a version number in the codebase attribute now

    The following on MSDN might help:
    [url]http://msdn.microsoft.com/library/default.asp?url=/workshop/components/activ[/url]
    ex/packaging.asp
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon98/htm[/url]
    l/vbconinternetcomponentdownload.asp

    Hope this helps,

    Rob
    --
    RMTrack a new bug tracking tool. Available now from [url]www.rmtrack.com[/url] (watch
    for our new 1.2 release!)


    "tammy" <ty_yenny@yahoo.com> wrote in message
    news:6ba130c6.0308250236.2d2f5587@posting.google.c om...
    > Hi all..
    >
    >
    > I have made ocx with vb6, and I embedded with asp file.
    > When I am running this asp in server side windows 2000, the ocx is
    > working fine, but when I call from client side with windows 2000 too,
    > it's only small blank box.
    > I have tried using this line :
    > <HTML><body topmargin="0" leftmargin="0" bgcolor="#F8F4DD">
    > <OBJECT ID ="data" classid="clsid:FAA5F185-0363-44C3-9A5E-CEC949385B7B"
    > codebase="http://server/path/data.ocx"></OBJECT></BODY></HTML>
    >
    >
    > but it's still doesn't work..
    > I also have added runat ="server" it's still same.
    >
    > Hopefully anyone can give me a solution for this.

    Rob MacFadyen Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139