General information
Category:
COM/DCOM and OLE Automation
Title:
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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only