Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a COM
Message
From
02/02/2002 13:45:09
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Calling a COM
Miscellaneous
Thread ID:
00614431
Message ID:
00614431
Views:
66
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
Map
View

Click here to load this message in the networking platform