LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Visual Studio / LabWindows / Alignment

I use a Visual Studio DLL in my project LabWindows.

 

I noticed that a unsigned int is 16 bits in LabWindows and 32 bits in Visual Studio ! So I have an alignment problem. How can I build a 32 bits application in LabWindows ?

 

Best Regards 

0 Kudos
Message 1 of 4
(3,519 Views)
Which version of CVI are you using? Starting at least from CVI6 (I cannot go back before this version!) sizeof (unsigned int) returns 4 bytes, i.e. 32 bits


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 2 of 4
(3,508 Views)
I use LabWindows/CVI 8.0.0, and the sizeof(unsigned int) returns 2. How to have 4 ?
0 Kudos
Message 3 of 4
(3,489 Views)
Which OS are you running on? How do you examine the result of sizeof operator? Simply using a DebugPrintf in Interactive Window or mapping to a message, setting it on a numeric indicator..?


Proud to use LW/CVI from 3.1 on.

My contributions to the Developer Community
________________________________________
If I have helped you, why not giving me a kudos?
0 Kudos
Message 4 of 4
(3,483 Views)