Board index » cppbuilder » Main form in Auto Server

Main form in Auto Server

Hi gang-

I'm testing BCB's ability to create Automation servers (via the
Automation Object in File:New...)

One thing I can't figure out: why will the server not function correctly
unless the project has a main form?

I've tried deleting the main form, and just leaving the
implementation.cpp and _tlb.??? files in the project. It compiles ok,
but clients get runtime errors.

I mean, what if a guy doesn't want or need a visual interface to his
server?

Thanks,
Michael

 

Re:Main form in Auto Server


Sounds like you want the automation server in a dll. Is that what you are
shooting for?
If So use File|New.. ActiveXLibrary then File|New... Automation Object

Si Crouch
TICOM. Inc

Quote
Michael Lovett wrote:
> Hi gang-

> I'm testing BCB's ability to create Automation servers (via the
> Automation Object in File:New...)

> One thing I can't figure out: why will the server not function correctly
> unless the project has a main form?

> I've tried deleting the main form, and just leaving the
> implementation.cpp and _tlb.??? files in the project. It compiles ok,
> but clients get runtime errors.

> I mean, what if a guy doesn't want or need a visual interface to his
> server?

> Thanks,
> Michael

Re:Main form in Auto Server


Oh, I see. What I'm hearing is that if I create an app then add an Auto
Object, I must have at least the main form.

But if I start with a Library, I don't need a form.

That makes sense. Too bad this isn't made clear anywhere :-(

Thanks for your help!

Quote
Si Crouch wrote:
> Sounds like you want the automation server in a dll. Is that what you are
> shooting for?
> If So use File|New.. ActiveXLibrary then File|New... Automation Object

> Si Crouch
> TICOM. Inc

> Michael Lovett wrote:

> > Hi gang-

> > I'm testing BCB's ability to create Automation servers (via the
> > Automation Object in File:New...)

> > One thing I can't figure out: why will the server not function correctly
> > unless the project has a main form?

> > I've tried deleting the main form, and just leaving the
> > implementation.cpp and _tlb.??? files in the project. It compiles ok,
> > but clients get runtime errors.

> > I mean, what if a guy doesn't want or need a visual interface to his
> > server?

> > Thanks,
> > Michael

Other Threads