Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
My first COM VFP Server
Message
From
19/07/1999 14:31:28
Steve Summers
Pima County Superior Court
Tucson, Arizona, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
My first COM VFP Server
Miscellaneous
Thread ID:
00243231
Message ID:
00243231
Views:
49
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]
:>
Next
Reply
Map
View

Click here to load this message in the networking platform