acesso ao dial-up do windows com o delphi
Preciso fazer um discador para fazer chamadas telefonicas, como eu fasso para o numero digitado em minha edit ser discado?????
Quais componentes devo usar????
Quais componentes devo usar????
Bferreira
Curtidas 0
Respostas
Carnette
29/08/2003
Usando a Dll TAPI32 do windows
implementation
{$R *.DFM}
function tapiRequestMakeCall(DestAddress, AppName,
CalledParty, Comment: PChar): Longint; stdcall; external ´TAPI32.DLL´;
procedure TForm1.Button1Click(Sender: TObject);
var
PhoneNumber, AppName: array[0..255] of Char;
begin
PhoneNumber := ´1234567890´; <-- ou Edit1.Text
StrPCopy(AppName, Application.Title);
tapiRequestMakeCall(PhoneNumber, AppName, ´´, ´´);
end;
implementation
{$R *.DFM}
function tapiRequestMakeCall(DestAddress, AppName,
CalledParty, Comment: PChar): Longint; stdcall; external ´TAPI32.DLL´;
procedure TForm1.Button1Click(Sender: TObject);
var
PhoneNumber, AppName: array[0..255] of Char;
begin
PhoneNumber := ´1234567890´; <-- ou Edit1.Text
StrPCopy(AppName, Application.Title);
tapiRequestMakeCall(PhoneNumber, AppName, ´´, ´´);
end;
GOSTEI 0