471,330 Members | 1,783 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

Interop and SIZE_T

Hi all,

I've seen a few Win32 API functions with SIZE_T parameters mapped via
managed ints. Is this the most appropriate mapping or would an IntPtr be
better (thinking of future proofing for 64-bit windows)

Cheers,

Steve
Feb 18 '06 #1
1 8047

"steve" <st***@discussions.microsoft.com> wrote in message
news:B0**********************************@microsof t.com...
| Hi all,
|
| I've seen a few Win32 API functions with SIZE_T parameters mapped via
| managed ints. Is this the most appropriate mapping or would an IntPtr be
| better (thinking of future proofing for 64-bit windows)
|
| Cheers,
|
| Steve

Yep, SIZE_T should be mapped via IntPtr's. SIZE_T is a platform dependent
type, 64 bit on a 64 bit OS, 32 bit on others.
Willy.
Feb 18 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by keefah | last post: by
8 posts views Thread by Rob Edwards | last post: by
5 posts views Thread by edware | last post: by
12 posts views Thread by Alex Vinokur | last post: by
39 posts views Thread by Mark Odell | last post: by
73 posts views Thread by Yevgen Muntyan | last post: by
89 posts views Thread by Tubular Technician | last post: by
27 posts views Thread by mike3 | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.