erro na funcao wvsprintf

Delphi

05/07/2005

Estou usando esta chamada no Delphi7
wvsprintf(buffer,´Pending Xfers = ¬d´,PChar(twPendingXfer.Count));
aonde
buffer : array[0..20] of char;
twpendingxfer : record;

Meu problema é que quando rodo o programa no windows 98 utilizando a funcao acima ele funciona, qdo vou rodar no win xp ele da o seguinte erro:
Access violation at adress 77d2a757 in module ´user32.dll´. Read of adress 00000000.

Estou meio desesperado, Agradeço qualquer ajuda.

Abraços.


Softdesignplus

Softdesignplus

Curtidas 0

Respostas

Ivanh

Ivanh

05/07/2005

Experimenta isso:

buffer := Format(´Pending Xfers = ¬d´,[twPendingXfer.Count]);


ou

buffer := PChar(Format(´Pending Xfers = ¬d´,[twPendingXfer.Count]));



GOSTEI 0
Softdesignplus

Softdesignplus

05/07/2005

Agradeço a ajuda , vou tentar....


Experimenta isso:
buffer := Format(´Pending Xfers = ¬d´,[twPendingXfer.Count]);
ou
buffer := PChar(Format(´Pending Xfers = ¬d´,[twPendingXfer.Count]));



GOSTEI 0
POSTAR