CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2001
    Posts
    4

    Instantiating VB

    Hello.
    I'm trying to build a wrapper objects for the VB and VC
    environments that will allow me to auto compile projects through
    COM objects.
    As for the VC part, no problem, i'm using the DSSharedObjects library and i create the MSDEV.Application object and there is no problem with it.
    As for the VB part, i know the interface that should be used (VBIDE library) but no matter where i looked i didn't find the PROGID of the VB environment or somthing close to it.
    If someone knows what is the PROGID of the class that should be used for creating the VB environment it would help allot (i really don't want to use the command line parameters).
    Thanks.


    David Edery

  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Instantiating VB

    If i'm not mistaking, that should be VBIDE.VBE

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    Apr 2001
    Posts
    4

    Re: Instantiating VB

    I thaght so but when trying to create the
    VBIDE.VBE object i got "ActiveX can't create object"
    so it's probably just an interface.

    David Edery

  4. #4
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: Instantiating VB

    Hmm, I noticed the same here. I also tried using GetObject, but it failed.
    There is one solution however, this is using the command line compiler. This is VB5.exe or VB6.exe depending on the version. It takes several parameters, all kinda clear. Just type from the command line vbx.exe /? and you will get more information. When you get your command together, you can use Shell or ShellExecute to run it. Of course, this way, you will need to use WaitForSingleObject to wait until the application has finished, but just search the board, and you will find some examples of how to do that.

    Tom Cannaerts
    [email protected]

    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning -- Rich Cook
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  5. #5
    Join Date
    Apr 2001
    Posts
    4

    Re: Instantiating VB

    Thanks man.
    I know about the command line parameters and how to implement it.
    But i hoped that there is a better sulotion than that, somthing that enables me to control the environment and show the user of my objects/console in case of errors, where are the errors etc...
    It's a strange thing that VC have a controlling object and VB doesn't have.
    Thank you for you efforts.


    David Edery

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