Ok, anotado y comprobado, no usar
string sino
PChar.............pero.........
ya con el codigo que realmente debe de ir (el resultado es una cadena identica a la que anteriormente mostre)
Código Delphi
[-]
function AjustesActuales : PChar; stdCall;
begin
Result := PuertoS.Port + ',' + BaudRatetoStr(PuertoS.BaudRate) + ',' +
DataBitsToStr(PuertoS.DataBits) + ',' +
ParityToStr(PuertoS.Parity.Bits) + ',' +
StopBitstoStr(PuertoS.StopBits);
end;
PuertoS es una instancia de un Componente (TComPort) el cual ya fue creado (dinamicamente) antes de llamar a esta funcion. al compilar la dll me dice que son tipos incompatibles string y PChar ¿y 'ora?