On 2016-11-30 20:57, [email protected] wrote:
On 2016-11-30 17:52, Tracy Pearson wrote:
Mike,

An EXE suggests it will do something additionally to the functionality you
are describing. Perhaps a UI or data validations.

If this is not the case, I would make it a Multi-threaded COM DLL. Though
that would mean you need to distribute the VFP9T.DLL.

There is the Single-threaded COM DLL as another option. I believe it does
not require the VFP9T.DLL.


Yeah I agree it shouldn't be an EXE since no UI.  I had tried the DLL
approach but for some reason it didn't work.  It's not an OLEPUBLIC
class (at least not yet); it's just a Separator class (to be
lightweight, although in today's world, nobody would notice the
difference between a Separator and Session or Custom class).

I was trying to invoke it this way:

                IF tlEntering THEN
                        loLicense =
NEWOBJECT("MBSS_Licensor","MBSS_Licensor.prg","MBSS_Licensor.exe",.F.,
tlEntering, .F., pcPrintID, this.oUser.cUserID,
this.oClient.cClientName, STRTRAN(_screen.cAppName,'\','\\'))
                        this.iLicenseKey = loLicense.iLicenseKey
                        IF this.iLicenseKey < 1 THEN && problem
                                llOK = .F.
                                loLicense.ShowMessage()
                        ELSE
                                llOK = .T.
                        ENDIF
                ELSE && exiting software; release license
                        loLicense =
NEWOBJECT("MBSS_Licensor","MBSS_Licensor.prg","MBSS_Licensor.exe",.F.,
tlEntering, this.iLicenseKey, pcPrintID)
                        IF loLicense.lProblem THEN
                                llOK = .F.
                                loLicense.ShowMessage()
                        ELSE
                                llOK = .T.
                        ENDIF
                ENDIF

It doesn't instantiate.


Does it have to be an OLEPUBLIC class? I'm not doing that currently: DEFINE CLASS MBSS_Licensor AS Session

I'm trying to avoid the registry; I just want to plunk the DLL into the App's folder and have it reference it from there.

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to