Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

64-bit compatibility for MFC-based projects in Visual Studio

Do I need 64-bit compatibility for MS and IMAQ in an MFC-based project in Visual Studio if the individual buffer allocations don't exceed 2GB but the total memory allocated by the application does? I want to be able to allocate more than 2GB total in an MFC-based x64 application developed using Visual Studio 2008 and ensure that Measurement Studio and IMAQ will work correctly. So far, it seems as if to exceed 2GB of total memory allocation, I'll need to use the x64 compilers in Visual Studio. However, when I switched to those compilers in our current project, the application became unable to locate nearly all of the required NI header files. Can anyone shed some light on this topic for me? Happy to provide any additional information! Thanks in advance.

0 Kudos
Message 1 of 4
(7,717 Views)

Hi Moliveira,

 

It is my understanding that MFC based projects in Visual Studio utilize C++. While Measurement Studio does support 64 bit applications in Visual Studio 2008 it only support applications written in VB and C#. This may be the source of the problem if your application was previously working when compiling for 32 bit architecture.

Patrick H | National Instruments | Software Engineer
0 Kudos
Message 2 of 4
(7,701 Views)

Thanks for the response! Is there some way to get this to work? Ideally we would like to continue to use the compatible NI versions we have with the benefit of being able to allocate more than 2GB of total memory in our application. I'm just unsure if we need to do something special to have the 32-bit versions of the NI files recognized by the x64 compiler or if there's a workaround from the Visual Studio side that we would need to do to exceed that 2GB memory allocation cap. 

0 Kudos
Message 3 of 4
(7,695 Views)

Using the 64 bit compiler we not work as it is not supported. This then becomes more of a C++ and OS question. I have provided a link below on some things you may want to try to all your application the ability to allocated 2GB+ of memory. My guess would be that the operating system is limiting you currently but there may also be settings within Visual Studio that can make this happen. I hope this helps and if you need anything else please let me know.

 

http://stackoverflow.com/questions/5686459/what-is-the-maximum-memory-available-to-a-c-application-o...

 

 

Patrick H | National Instruments | Software Engineer
0 Kudos
Message 4 of 4
(7,689 Views)