Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a COM
Message
 
 
To
02/02/2002 13:45:09
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00614431
Message ID:
00614482
Views:
23
This message has been marked as a message which has helped to the initial question of the thread.
Michael,

Do you have a startup prg that you are running? I think that's what's throwing your first error.

To use the COM:

oCOM = createobject( "YourEXENameGoesHere.ValidTransaction" )
? oCOM.cValidMessage
? oCOM.ValidateField( )
? oCOM.ValidateRecord()

>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
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform