www.digitalmars.com         C & C++   DMDScript  

c++.windows.32-bits - INVALID_SET_FILE_POINTER

reply "Robert M. Münch" <robert.muench robertmuench.de> writes:
Hi, does someone know where to find this constant? The MSDN docs state that
it should be defined in windows.h, which isn't the case for DMC. I can find
the SetFilePointer function but not the return code.

--
Robert M. Münch
IT & Management Freelancer
Mobile: +49 (0)177 2452 802
Fax   : +49 (0)721 8408 9112
Web   : http://www.robertmuench.de
Dec 21 2002
parent reply "Daniel Fazekas" <fds mailbox.hu> writes:
It is defined as follows in winbase.h. That is, in the Platform SDK, and not
DM's winbase.h which lacks this definition.

#define INVALID_SET_FILE_POINTER ((DWORD)-1)

Rest assured, this isn't the only time you'll find a definition missing from
the headers supplied with dm. :)
You always should have a copy of the Platform SDK handy and just copy the
appropriate definition from there.

--
Daniel

"Robert M. Münch" <robert.muench robertmuench.de> wrote in message
news:au1pmb$2fr3$1 digitaldaemon.com...
 Hi, does someone know where to find this constant? The MSDN docs state
that
 it should be defined in windows.h, which isn't the case for DMC. I can
find
 the SetFilePointer function but not the return code.

 --
 Robert M. Münch
 IT & Management Freelancer
 Mobile: +49 (0)177 2452 802
 Fax   : +49 (0)721 8408 9112
 Web   : http://www.robertmuench.de
Dec 21 2002
parent reply "Matthew Wilson" <dmd synesis.com.au> writes:
I don't suppose Walter, or anyone else, has a tool that can automatically
extract the DMC-compatible version of Platform SDK contents?



"Daniel Fazekas" <fds mailbox.hu> wrote in message
news:au26eg$2o9j$1 digitaldaemon.com...
 It is defined as follows in winbase.h. That is, in the Platform SDK, and
not
 DM's winbase.h which lacks this definition.

 #define INVALID_SET_FILE_POINTER ((DWORD)-1)

 Rest assured, this isn't the only time you'll find a definition missing
from
 the headers supplied with dm. :)
 You always should have a copy of the Platform SDK handy and just copy the
 appropriate definition from there.

 --
 Daniel

 "Robert M. Münch" <robert.muench robertmuench.de> wrote in message
 news:au1pmb$2fr3$1 digitaldaemon.com...
 Hi, does someone know where to find this constant? The MSDN docs state
that
 it should be defined in windows.h, which isn't the case for DMC. I can
find
 the SetFilePointer function but not the return code.

 --
 Robert M. Münch
 IT & Management Freelancer
 Mobile: +49 (0)177 2452 802
 Fax   : +49 (0)721 8408 9112
 Web   : http://www.robertmuench.de
Dec 22 2002
parent reply "Robert M. Münch" <robert.muench robertmuench.de> writes:
"Matthew Wilson" <dmd synesis.com.au> schrieb im Newsbeitrag
news:au5a4v$1q4c$1 digitaldaemon.com...

 I don't suppose Walter, or anyone else, has a tool that can automatically
 extract the DMC-compatible version of Platform SDK contents?
Hi, I don't know. But how about a community driven process? I'm sure quite a lot of us have written/extended the header files. So how could we all merge these together to create a Platform SDK compatible set of headers over time? Any idea? Robert
Dec 23 2002
parent reply "Matthew Wilson" <dmd synesis.com.au> writes:
I'd be interested in this, but workload won't permit any input from me until
perhaps March! Sorry.


"Robert M. Münch" <robert.muench robertmuench.de> wrote in message
news:au6tos$2v3r$1 digitaldaemon.com...
 "Matthew Wilson" <dmd synesis.com.au> schrieb im Newsbeitrag
 news:au5a4v$1q4c$1 digitaldaemon.com...

 I don't suppose Walter, or anyone else, has a tool that can
automatically
 extract the DMC-compatible version of Platform SDK contents?
Hi, I don't know. But how about a community driven process? I'm sure quite a lot of us have written/extended the header files. So how could we all merge these
together
 to create a Platform SDK compatible set of headers over time? Any idea?
 Robert
Dec 27 2002
parent reply Christof Meerwald <cmeerw web.de> writes:
On Fri, 27 Dec 2002 22:26:54 +1100, Matthew Wilson wrote:
 I'd be interested in this, but workload won't permit any input from me until
 perhaps March! Sorry.
 
 "Robert M. Münch" <robert.muench robertmuench.de> wrote in message
 news:au6tos$2v3r$1 digitaldaemon.com...
 "Matthew Wilson" <dmd synesis.com.au> schrieb im Newsbeitrag
 news:au5a4v$1q4c$1 digitaldaemon.com...

 I don't suppose Walter, or anyone else, has a tool that can
automatically
 extract the DMC-compatible version of Platform SDK contents?
Hi, I don't know. But how about a community driven process? I'm sure quite a lot of us have written/extended the header files. So how could we all merge these
together
 to create a Platform SDK compatible set of headers over time? Any idea?
 Robert
Maybe I am missing something here, but what's the problem with just using the Platform SDK? (AFAIK the most difficult part is deleting the old SDK headers included in DMC). See http://cmeerw.org/prog/dm/ms_sdk.html for a description of how I got it to work (the page still needs some work...) bye, Christof -- http://cmeerw.org JID: cmeerw jabber.at mailto cmeerw at web.de ...and what have you contributed to the Net?
Dec 27 2002
parent "Robert M. Münch" <robert.muench robertmuench.de> writes:
"Christof Meerwald" <cmeerw web.de> schrieb im Newsbeitrag
news:aui4gr$1os1$1 digitaldaemon.com...

 Maybe I am missing something here, but what's the problem with just using
 the Platform SDK? (AFAIK the most difficult part is deleting the old SDK
 headers included in DMC).

 See http://cmeerw.org/prog/dm/ms_sdk.html for a description of how I got
it
 to work (the page still needs some work...)
Hi, seems more like I'm missing something ;-)). I'll try your approach. If this works out than of course we should use the Platform SDK stuff directly provided by MS. Robert
Dec 27 2002