DIM oWord AS WordApplication
LET oWord = NEW WordApplication IN "Word.Application.8"
For the most part, the syntax for early binding is exactly the same as that for late-binding. All that is needed is to let PowerBASIC know that early binding should be used instead of late binding. This is done by simply changing the keyword DISPATCH to the desired Interface. In our source code, we change the following:
DIM oWord AS DISPATCH
LET oWord = NEW DISPATCH IN "Word.Application.8"
to:
DIM oWord AS WordApplication
LET oWord = NEW WordApplication IN "Word.Application.8"
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0