Click to See Complete Forum and Search --> : Instantiating VB


David Edery
August 27th, 2001, 03:52 AM
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

Cakkie
August 27th, 2001, 03:55 AM
If i'm not mistaking, that should be VBIDE.VBE

Tom Cannaerts
slisse@planetinternet.be

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

David Edery
August 27th, 2001, 04:00 AM
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

Cakkie
August 27th, 2001, 04:17 AM
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
slisse@planetinternet.be

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

David Edery
August 27th, 2001, 04:22 AM
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