![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|
|
#1
|
||||
|
||||
|
Coincido con AzidRain, pero me atrevería a decir que es necesario saber los conceptos de punteros y demás teoría, para aplicarlos correctamente. Si veo algo definido como Integer, jamás se me ocurriría el truco de asignarle un objeto y después usar un moldeo de tipos.
Hay que saber: - Qué es un puntero. - Como funciona. - Cuanto ocupa un puntero. - Cuanto ocupa un Integer. Normalmente todo eso se aprende de forma teórica, pero no se llega hasta el punto que hemos llegado en este hilo ¿no os parece? Saludos
__________________
Si usted entendió mi comentario, contácteme y gustosamente, se lo volveré a explicar hasta que no lo entienda, Gracias. |
|
#2
|
||||
|
||||
|
Cita:
// Saludos |
|
#3
|
|||
|
|||
|
RE: siguiendo con el tema de los punteros
Holas de nuevo
Introduje un tema, en el foro de APIs, pero mas me parece que pertenece a este grupo (y ya lo dije) El problema basicamente, es que tengo una estructura de registro llamada .... definida en una unidad TAPI.pas, con ella consigo hacer todo, excepto la finalidad, obtener un numero, esta es la estructura: Código:
LPLineCallInfo = ^TLineCallInfo;
TLineCallInfo = record
dwTotalSize,
dwNeededSize,
dwUsedSize: Longint;
hLine: THLine;
dwLineDeviceID,
dwAddressID,
dwBearerMode,
dwRate,
dwMediaMode,
dwAppSpecific,
dwCallID,
dwRelatedCallID,
dwCallParamFlags,
dwCallStates,
dwMonitorDigitModes,
dwMonitorMediaModes: Longint;
DialParams: TLineDialParams;
dwOrigin,
dwReason,
dwCompletionID,
dwNumOwners,
dwNumMonitors,
dwCountryCode,
dwTrunk,
dwCallerIDFlags,
dwCallerIDSize,
dwCallerIDOffset,
dwCallerIDNameSize,
dwCallerIDNameOffset,
dwCalledIDFlags,
dwCalledIDSize,
dwCalledIDOffset,
dwCalledIDNameSize,
dwCalledIDNameOffset,
dwConnectedIDFlags,
dwConnectedIDSize,
dwConnectedIDOffset,
dwConnectedIDNameSize,
dwConnectedIDNameOffset,
dwRedirectionIDFlags,
dwRedirectionIDSize,
dwRedirectionIDOffset,
dwRedirectionIDNameSize,
dwRedirectionIDNameOffset,
dwRedirectingIDFlags,
dwRedirectingIDSize,
dwRedirectingIDOffset,
dwRedirectingIDNameSize,
dwRedirectingIDNameOffset,
dwAppNameSize,
dwAppNameOffset,
dwDisplayableAddressSize,
dwDisplayableAddressOffset,
dwCalledPartySize,
dwCalledPartyOffset,
dwCommentSize,
dwCommentOffset,
dwDisplaySize,
dwDisplayOffset,
dwUserUserInfoSize,
dwUserUserInfoOffset,
dwHighLevelCompSize,
dwHighLevelCompOffset,
dwLowLevelCompSize,
dwLowLevelCompOffset,
dwChargingInfoSize,
dwChargingInfoOffset,
dwTerminalModesSize,
dwTerminalModesOffset,
dwDevSpecificSize,
dwDevSpecificOffset: Longint;
dwCallTreatment, { TAPI v2.0 }
dwCallDataSize, { TAPI v2.0 }
dwCallDataOffset, { TAPI v2.0 }
dwSendingFlowspecSize, { TAPI v2.0 }
dwSendingFlowspecOffset, { TAPI v2.0 }
dwReceivingFlowspecSize, { TAPI v2.0 }
dwReceivingFlowspecOffset: Longint; { TAPI v2.0 }
end;
Código:
var
wLPCALLINFO: TLineCallInfo;
r: Integer;
r:=LineGetCallInfo(hCall, wLPCALLINFO);
Código:
wNum:=wLPCALLINFO.dwCallerIDSize;
wNum:=wLPCALLINFO.dwCallerIDOffset;
Código:
www:=copy(StrPas(PChar(@wlpCallInfo)+wLPCALLINFO.dwCalledIDOffset),1,wLPCALLINFO.dwCalledIDSize); Aver si alguien me echa una mano. gracias. Osw |
|
#4
|
||||
|
||||
|
En lugar de reflotar este hilo debiste crear uno nuevo.
Respecto al problema, no lo entendí muy bien.
__________________
Proyectos actuales --> Allegro 5 Pascal ¡y Delphi! - BAScript - Multi Language Scriptable Development Environment |
![]() |
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Problemas con punteros | Victor_TlrSoft | Varios | 4 | 01-02-2006 16:57:46 |
| Punteros | davitcito | Varios | 2 | 25-04-2005 22:46:24 |
| Punteros y Variables | Flores | OOP | 7 | 23-04-2005 22:09:55 |
| Punteros | rafadrover | OOP | 8 | 18-09-2003 10:09:47 |
|