CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: vb-activex

  1. #1
    Join Date
    Aug 1999
    Posts
    1

    vb-activex

    what is the actual difference between standard EXE and activeX EXE?


  2. #2
    Join Date
    May 1999
    Location
    Oxford UK
    Posts
    1,459

    Re: vb-activex

    Hi

    An ActiveX EXE is an executable program which can also have Objects created from it (eg. Word, Excel, Outlook etc). To make an ActiveX EXE you can either start a new project as an ActiveX EXE or change the project type in the Project options dialog.

    You must have at least one publically creatable class module in your ActiveX EXE for it to be any use as an Automation Server.

    The ActiveX EXE can be started in two ways - normal command line / double clicking, or by creating an instance of the public class module. The following rules are implemented when an ActiveX EXE starts :

    eg.

    1. If the EXE has a starup of Sub Main() then that is called first when an instance of the class is created.

    2. If the EXE has a Form as startup, then that is ignored if the EXE is started by creating an instance of the class.

    3. You can check how the exe was started in it's code by looking at the App.StartMode property (see the VB help for more details).



    Chris Eastwood

    CodeGuru - the website for developers
    http://www.codeguru.com/vb

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

Featured