By saying 'pointer to DWORD' you are gonna need 'PDWORD' and 'LPDWORD'. No *_PTR types are pointers. This is true even for C99 intptr_t and uintptr_t.
------------------ Best regards, lh_mouse 2014-12-19 ------------------------------------------------------------- 发件人:Jim Michaels <[email protected]> 发送日期:2014-12-19 04:16 收件人:[email protected] 抄送: 主题:Re: [Mingw-w64-public] DWORD_PTR implemented as long long unsigned int no, strangely enough, https://support.microsoft.com/kb/259693?wa=wsignin1.0 using the code idea for FORMAT_MESSAGE_ARGUMENT_ARRAY:http://msdn.microsoft.com/en-us/library/windows/desktop/ms679351%28v=vs.85%29.aspx it says va_list in this case is a * to array of DWORD_PTR. so what exactly is a DWORD_PTR? I had assumed it was a pointer, that you need to cast, and microsoft somehow did a sloppy or erroneous job of documenting or something. because in the past, _PTR has always been defined as a * (pointer) to whatever, like DWORD*. who changed the definition of the word pointer? :-( in c++ it's a nice and solid def. ------------- Jim Michaels [email protected] [email protected] http://RenewalComputerServices.com http://JesusnJim.com (computer repair info, programming) From: David Macek <[email protected]> To: [email protected] Sent: Tuesday, December 16, 2014 4:46 PM Subject: Re: [Mingw-w64-public] DWORD_PTR implemented as long long unsigned int On 16. 12. 2014 13:19, Ruben Van Boxem wrote: > 2014-12-16 9:56 GMT+01:00 Jim Michaels <[email protected] > <mailto:[email protected]>>: > > usually, any microsoft _PTR is a *, but DWORD_PTR is defined as long long >unsigned int. > winerrstr.cpp:83:24: error: invalid conversion from 'DWORD* {aka long >unsigned int*}' to 'DWORD_PTR {aka long long unsigned int}' [-fpermissive] > DWORD_PTR *dwpArray; > dwpArray=(DWORD_PTR*)new DWORD_PTR[argc+1]; > > > Please see this link for the definitions of all Windows types: > http://msdn.microsoft.com/en-us/library/windows/desktop/aa383751.aspx I think PDWORD (and other P-types) is what you're looking for. -- David Macek ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public ------------------------------------------------------------------------------ Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
