Club Delphi  
    FTP   CCD     Buscar   Trucos   Trabajo   Foros

Retroceder   Foros Club Delphi > Principal > Varios
Registrarse FAQ Miembros Calendario Guía de estilo Temas de Hoy

Grupo de Teaming del ClubDelphi

 
 
Herramientas Buscar en Tema Desplegado
  #1  
Antiguo 14-03-2009
JXJ JXJ is offline
Miembro
 
Registrado: abr 2005
Posts: 2.475
Poder: 22
JXJ Va por buen camino
LongWord(pc^) := $3D3D3D3D; typecast delphi 2009 win32

estoy probando delphi 2009. win32
con un proyecto que tengo.. y donde se hace typecast
obtengo el error
[DCC Error] SimpleXML.pas(709): E2089 Invalid typecast

Código Delphi [-]
procedure OctetToChars(po: POctet; aCount: Integer; pc: PChars);
var
    o: Integer;
begin
    if aCount = 1 then begin
        o := po.a shl 16;
        LongWord(pc^) := $3D3D3D3D;
        pc.a := Base64Map[(o shr 18) and $3F];
        pc.b := Base64Map[(o shr 12) and $3F];
    end
    else if aCount = 2 then begin
        o := po.a shl 16 or po.b shl 8;
        LongWord(pc^) := $3D3D3D3D;
        pc.a := Base64Map[(o shr 18) and $3F];
        pc.b := Base64Map[(o shr 12) and $3F];
        pc.c := Base64Map[(o shr 6) and $3F];
    end
    else if aCount > 2 then begin
        o := po.a shl 16 or po.b shl 8 or po.c;
        LongWord(pc^) := $3D3D3D3D;
        pc.a := Base64Map[(o shr 18) and $3F];
        pc.b := Base64Map[(o shr 12) and $3F];
        pc.c := Base64Map[(o shr 6) and $3F];
        pc.d := Base64Map[o and $3F];
    end;
end;

¿alguna idea de como hacer el typecast?
Responder Con Cita
 



Normas de Publicación
no Puedes crear nuevos temas
no Puedes responder a temas
no Puedes adjuntar archivos
no Puedes editar tus mensajes

El código vB está habilitado
Las caritas están habilitado
Código [IMG] está habilitado
Código HTML está deshabilitado
Saltar a Foro

Temas Similares
Tema Autor Foro Respuestas Último mensaje
February 2009 Release de Delphi Prism 2009 rruz Noticias 1 12-03-2009 21:43:11
delphi 2009 win32 JXJ La Taberna 2 03-02-2009 01:25:42
Evento Delphi 2009 y C++ Builder 2009 en Guadalajara y Mexico con David poliburro Noticias 14 15-09-2008 01:03:58
Llamada a Servicios Web desde Delphi 2006 (Delphi for Microsoft Win32) lacovera Internet 2 27-06-2007 16:54:29
Migración de Delphi win32 a Asp.Net amigojar .NET 3 28-09-2006 22:04:19


La franja horaria es GMT +2. Ahora son las 10:23:23.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Traducción al castellano por el equipo de moderadores del Club Delphi
Copyright 1996-2007 Club Delphi