initialisation structure via pointeur
Salut à tous,
Je dois migrer une application de delphi vers le c++ (et le c++ n'est vrt pas ma spécialité :-))
Alors mon problème est le suivant:
j'ai une structure définié comme telle:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| typedef struct _HTTP_FILTER_LOG
{
const CHAR * pszClientHostName;
const CHAR * pszClientUserName;
const CHAR * pszServerName;
const CHAR * pszOperation;
const CHAR * pszTarget;
const CHAR * pszParameters;
DWORD dwHttpStatus;
DWORD dwWin32Status;
DWORD dwBytesSent; // IIS 4.0 and later
DWORD dwBytesRecvd; // IIS 4.0 and later
DWORD msTimeForProcessing; // IIS 4.0 and later
} HTTP_FILTER_LOG, *PHTTP_FILTER_LOG; |
Lors d'un certain event, j'appelle cette fonction
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
DWORD MaskLogEntry(const VOID * pvNotification)
{
char * szCopy;
int iLen;
HTTP_FILTER_LOG pvHTTP_FILTER_LOG;
try
{
pvHTTP_FILTER_LOG = (HTTP_FILTER_LOG) *pvNotification ;
...
...
...
...
return SF_STATUS_REQ_NEXT_NOTIFICATION;
}
catch(...)
{
return SF_STATUS_REQ_ERROR;
}
} |
Je ne sais vrt pas ce que je dois mettre au niveau de la ligne de code en rouge
en delphi, j'utilisais le code suivant
Code:
pvHTTP_FILTER_LOG := HTTP_FILTER_LOG(pvNotification^);
Si qqun pourrait m'orienter ce serait tres sympathique
D'avance merci