Article View: borland.public.cppbuilder.nativeapi
Article #4337[C++ Error] E2034 Cannot convert 'int' to 'void *'
From: Michael Gillen
Date: Fri, 17 Feb 2006 17:32
Date: Fri, 17 Feb 2006 17:32
24 lines
1520 bytes
1520 bytes
The complaint is on the pBuf in the ReadEventLog funcion. Any ideas why? char buf[BUFFER_SIZE+1]; EVENTLOGRECORD *Rec = (_EVENTLOGRECORD*)&buf; LPVOID pBuf = &buf; DWORD nBytes = 1024; DWORD nBytesRead; DWORD nBytesRequired; DWORD* pnBytes = &nBytes; DWORD *pnBytesRead = &nBytesRead; DWORD *pnBytesRequired = &nBytesRequired; if ( !ReadEventLog(logHandle, EVENTLOG_BACKWARDS_READ + EVENTLOG_SEQUENTIAL_READ, 0, pBuf, nBytes, pnBytesRead, pnBytesRequired) ) ---------- [C++ Error] OSEvent.cpp(64): E2034 Cannot convert 'int' to 'void *' [C++ Error] OSEvent.cpp(64): E2342 Type mismatch in parameter 'hEventLog' (wanted 'void *', got 'int') -- -Michael Gillen
Technical Details
Message-ID:
<43f616d2$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,8ec6b60facd951bc,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Michael Gillen" <michael@gillenconsultinggroup-nospam.com> Subject: [C++ Error] E2034 Cannot convert 'int' to 'void *' Newsgroups: borland.public.cppbuilder.nativeapi User-Agent: XanaNews/1.17.6.6 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 NNTP-Posting-Host: 67.122.199.249 Message-ID: <43f616d2$1@newsgroups.borland.com> Date: 17 Feb 2006 10:32:50 -0700 X-Trace: newsgroups.borland.com 1140201170 67.122.199.249 (17 Feb 2006 10:32:50 -0700) Lines: 24 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail