Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
End Users
Pocket PCActiveSyncMultimediaEBooksWirelessSmartPhones
Developers
Windows MobileSmartPhonesWinCE ProgrammingVB for WinCEVC++ for WinCEPlatform BuilderTest Tools
PocketPC DirectoryFree SoftwareWeb Resources
Related Topics
PalmMobile PhonesMore Topics ...

Pocket PC Forum / Developers / VC++ for WinCE / July 2008

Tip: Looking for answers? Try searching our database.

alignment restrictions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ou - 17 Jul 2008 05:42 GMT
Env: eVC++4.00

I wonder how to define a TCHAR[ ] with alignment restrictions?
For example, I hope the start address of a TCHAR[100] is with alignment
restrictions 256 bytes(bit0~7 are zero).

TIA
ou
Paul G. Tobey [eMVP] - 17 Jul 2008 16:17 GMT
Allocate 256 + 100*2 bytes and figure out what address you should use to
achieve your requirement (which seems pretty strange, by the way).  You can
be sure that there will be 100 TCHARs in that array where the first one will
start on a 256-byte boundary.

Paul T.

> Env: eVC++4.00
>
[quoted text clipped - 4 lines]
> TIA
> ou
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.