Results 1 to 2 of 2

Thread: Compiling OCX

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2001
    Location
    Egypt
    Posts
    179
    Hello,

    I have made an ActiveX control, ofcourse I used a test project while programming the OCX.

    Now I have two questions:

    First, How to compile the whole project (Test project and ActiveX control) without
    having to compile the ActiveX project explicitly and then compile the Test project?

    Second, If I want to compile the ActiveX control alone, how to make the Test project refers to
    the compile OCX instead of the OCX source (vb ActiveX project)?

    Thanks,
    Belal Marzouk

  2. #2
    Fanatic Member HaxSoft's Avatar
    Join Date
    May 2000
    Location
    Ohio
    Posts
    593
    I think you have to compile the control project first. That produces your OCX file. Just open the control project (.VBP file) instead of the project group (.VBG file) and compile it.

    Once the control has been compiled, the control's interface will be in the Windows registry (meaning that VB can find it). So when you open the test project alone (again VBP -- not VBG), go into the Project\Components menu in VB and make sure that the name of your compiled OCX is checked in the list.

    This usually happens automatically, but test it just in case. Once you are satisfied that your test project is referencing the compiled version of your control instead of the source-code version, compile the test project.

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