From: Nando D. <na...@de...> - 2004-07-29 18:07:31
|
Carlos, C> *reinterpret_cast<float*>(v->dsc_address) = static_cast<float>(iv); C> break; <SNIP> C> dtype_real: PFloat(P.dsc_address)^:=Single(Value); C> Problem is: Delphi does not accept a cast like Single(Value), mostly C> because Double is 8 bytes and Single is 4 bytes. IIRC static_cast<> is more like a conversion than a type cast in Delphi terms. Thus, you should substitute it with an assignment, which will perform the conversion implicitly. In short, I'd change Single(Value) to just Value. Ciao -- Nando Dessena mailto:na...@de... |