Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using an fll inside a dll
Message
De
28/10/2003 13:09:27
Dave Nantais
Light speed database solutions
Ontario, Canada
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00833271
Message ID:
00843649
Vues:
25
>Hi Dave,
>
>You may consider using 32-bit Windows API. See Re: Dialer does not work under XP. Message #803626.
>
>>will the following code
>>
>>
>>SET LIBRARY TO foxtools.fll
>>
>>OPENCOMM = REGFN("OpenComm", "CII", "I")
>>WRITECOMM = REGFN("WriteComm", "ICI", "I")
>>CLOSECOMM = REGFN("CloseComm", "I", "I")
>>ATCommand = "ATDT" + NUMTODIAL + CHR(13)
>>COM1 = CALLFN(OPENCOMM, "COM1:", 100, 100)
>>=CALLFN(WRITECOMM, COM1, ATCommand, LEN(S))
>>ATCommand = "ATH0" + CHR(13)
>>=CALLFN(WRITECOMM, COM1, ATCommand, LEN(S))
>>=CALLFN(CLOSECOMM, COM1)
>>
>>
>>work inside a foxpro project built into a .dll ?
>>
>>
>>Of couse I'll define the class library as OLEPUBLIC
>>and so forth.
>>
>>As long as I avoiding any user interface functions can I use the functions inside Foxtools.fll from within a .dll ?


I got the autodialer working inside a foxpro .dll file.
It works great.

Dave.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform