Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
My first COM VFP Server
Message
De
19/07/1999 14:31:28
Steve Summers
Pima County Superior Court
Tucson, Arizona, États-Unis
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Titre:
My first COM VFP Server
Divers
Thread ID:
00243231
Message ID:
00243231
Vues:
56
I am having some problems trying to implement a few of the cool things I learned at DevCon 1999. I am building a VFP COM server to access VFP Data natively vrs ODBC. We have been using ODBC to access a VFP Database from Active Server Pages (Very slow!). The Active Server Pages are not slow but ODBC access to VFP is.

Anyway I am replacing the Data Access layer with a VFP COM Server. Here is the code I can't get to work

LPARAMETERS lcuserid
If ! used("Users")
use users in 0
endif
select * from users where userid = lcuserid into cursor ctemp
if _tally > 0
return .t.
else
return .f.
endif

This code works when I compile a regular win32 exe (I get a true return), but as soon as I compile it into a Multithreaded dll, the if _tally > 0 line returns 0 and I get a false return.

Is there some system functions that do not work when compiled as a COM MTDLL?

Thanks.

:>
Thanks in advance or I hope this helps!

[STS]
:>
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform