Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using an fll inside a dll
Message
From
28/10/2003 13:09:27
Dave Nantais
Light speed database solutions
Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00833271
Message ID:
00843649
Views:
24
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform