Information générale
Catégorie:
COM/DCOM et OLE Automation
Titre:
COM classes access function in PRG?
I created a project for my COM server (EXE). The project consists of two classes (CLASS1 and CLASS2) and a program (MAIN.PRG). Is it possible (or useless?) to:
1. Set environment variables (such SET DELETED, SET DATE, etc) in MAIN.PRG that will affect how the classes will work?
2. Create a function (MYFUNC) in MAIN.PRG that will be accessible by the classes since MYFUNC is needed by those two classes?
I just want to eliminate duplicate codes in my project. If there is a better/right way to do this please show me how.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement