General information
Category:
COM/DCOM and OLE Automation
Hi. I wonder if someone can help with this one? I think this question might cross two categories.
I am trying to create a COM server (EXE) and call it from the an application. The COM contains business rules.
*!* Business rules for checking the input of a user inputting accounts
DEFINE CLASS ValidTransaction AS CUSTOM OLEPUBLIC
cValidMessage = ""
FUNCTION ValidateField
ENDFUNC
FUNCTION ValidateRecord
ENDIF
ENDFUNC
ENDDEFINE
I left bits out for brevity.
The COM compiled OK. In fact I compiled it to the same folder as the project that will be calling it. Four files were put in the folder: *.exe, *.opt, *.tlb and a remote automation registration file. I am running WIN ME.
I have two problems:
1) The following message appears when I start VFP. I think this could be the reason for the COM crashing.
"Error locating config file-bad path"
2) How do I call the functions within the COM from an application
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