Einzelnen Beitrag anzeigen

Mark90
(Gast)

n/a Beiträge
 
#3

Re: C/C++ Quellcode nach Delphi

  Alt 31. Okt 2007, 17:14
Code:
pdwProxyRequests = (LPDWORD)((LPBYTE)pLCP + sizeof(LINECALLPARAMS));
    // each constant is in a DWORD at the end of LINECALLPARAMS
    *pdwProxyRequests++ = LINEPROXYREQUEST_SETAGENTGROUP;
    *pdwProxyRequests++ = LINEPROXYREQUEST_SETAGENTSTATE;
    *pdwProxyRequests++ = LINEPROXYREQUEST_SETAGENTACTIVITY;
    *pdwProxyRequests++ = LINEPROXYREQUEST_GETAGENTSTATUS;
    *pdwProxyRequests++ = LINEPROXYREQUEST_GETAGENTCAPS;
    *pdwProxyRequests++ = LINEPROXYREQUEST_GETAGENTACTIVITYLIST;
    *pdwProxyRequests  = LINEPROXYREQUEST_GETAGENTGROUPLIST;
hi,

in der 1. zeile: mit (LPDWORT) konvertiertst du ((LPBYTE)pLCP + ... in einen LPDWORD. mit LPBYTE konveritest du pLCP in einen LPBYTE.

Code:
*pdwProxyRequests++
Delphi-Quellcode:
in delphi
inc(^pdwProxyRequests);


dereferenzierung des pointers pdwProxyRequests (das p vor pdwProxyRequests steht für pointer) und erhöhung des arguments um eins, was bedeutet: pdwProxyRequest = pdwProxyRequests + 1; oder inc(pdwProxyRequests) in delphi und asm.
  Mit Zitat antworten Zitat