Viva64: разработка 64-битных приложений

  • Published on
    16-Jun-2015

  • View
    127

  • Download
    2

Embed Size (px)

DESCRIPTION

Viva64 - /C++ 64- . , 64- , . 32- , 64- . , , Viva64.

Transcript

<ul><li> 1. Viva64: 64-: : 14.12.2006 Viva64 VivaMP PVS-Studio . PVS-Studio .Viva64 - /C++ 64- . , 64- , . 32- , 64- . , , Viva64. 64-, . , , . , . , , , , , , . - , ( ). , - , . , . Viva64, , Visual Studio2005, : ( 64 ); ; ; , , MSDN; ;</li></ul> <p> 2. ( Microsoft Visual Studio), ; Viva64 - 64 . 64- , ( , lint-(), Viva64 : 64 , 3264- 32- , ; Microsoft Visual Studio - , , ; - , ; . Viva64 . www.Viva64.com. . . , , . Viva64 - . , . , Viva64 Microsoft Visual Studio2005 ( 1) . . 3. 1 - Viva64 Microsoft Visual Studio 2005. , . Viva64 PortSample - Visual Studio 2005, , . Viva64 Windows. . Viva64, 3232- PortSample. Visual Studio 2005 Win32 "Build". ( 2) "Run". "Done". VXXX() . 2 - . 64 , 64- x64 Visual Studio. "Run" 4. , , ( ). Viva64 . V1XX.cpp Viva64 - ("Checkcurrent file"). , .. ".i", . , . Visual Studio 2005. , x64. (, Win32) . , , #ifdef/#endif . Viva64 (preprocessing) , , x64 , . Viva64: , , PortSample "Check Current Project". ( 3). 3 - . :error V101: Implicit assignment type conversion to memsize type. 5. F4 .unsigned imageWidth = 1000;unsigned imageHeght = 1000;unsigned bytePerPixel = 3;unsigned maxFrameCountInBuffer;if (IsX64Platform()) {maxFrameCountInBuffer = 2000;} else {maxFrameCountInBuffer = 100;}size_t bufferSize = imageWidth * imageHeght *// 34 bytePerPixel * maxFrameCountInBuffer; bufferSize. , 64- maxFrameCountInBuffer 2000. , 64- (), ... 32-. bufferSize 4 , 64- . , . Viva64 , . , , F1 Viva64, . , F4 . :error V102: Usage non memsize type for pointer arithmetic. , 71 :int domainWidth;int domainHeght;int domainDepth;...char *buffer;...char *current = buffer;char *end = buffer;end += domainWidth * domainHeght * domainDepth; // 71 6. . , . , 32- int, 64-, . , , (,) Viva64 memsize-. memsize-. , . , . domainWidth, domainHeigh, domainDepth ptrdiff_t . PortSample . ? Microsoft Visual C++ 8.0 ( /Wp64) (/W4) , Viva64. , 64- Viva64 . Viva64 Viva64 : 32- 64- 64- . 32- : Visual Studio 2005, Win32; x64, , ; (/W4, warning level 4) (/Wp64, Detect 64-Bit Portability Issues), ; Viva64 , ; . 64- , Viva64 . , .Viva64 - , ... , Viva64 , 64- : Viva64 ; Viva64 , ; Viva64 . 7. , Viva64 , , , , . Viva64 , .</p>

Recommended

View more >