Hello, I'm having an issue with the syntax for DLL function imports in VS C++ 2010. The following lines are in the .NET 2003 format:
[DllImport("gxsw.dll", EntryPoint="Gx6315Initialize",...
Type: Posts; User: neilc
Hello, I'm having an issue with the syntax for DLL function imports in VS C++ 2010. The following lines are in the .NET 2003 format:
[DllImport("gxsw.dll", EntryPoint="Gx6315Initialize",...
Thanks Salem for the input. The reason why I'm having to pass unmanaged objects to Managed C++ and back, is because functions like the DAQmxCreateDOChan and DAQmxCreateDIChan won't take in a .NET...
The code for the header file is:
#pragma once
#include "NIDAQmx.h"
#using <mscorlib.dll>
#using <system.dll>
Hello,
I am working on a program for instrumentation hardware using Visual Studio C++ on the .NET 2003 framework. The code would work fine on XP, but we're trying to get everything on Windows 7....
My code will have to use the String .NET class. So, I guess std::stringstream wont help me in the conversion from unmanaged objects to managed code. After doing some reading and tinkering with the...
@tabstop: Thanks. From the code you posted, I gather you would require the DeviceDescriptor to be defined as a character array in the header file, say, static char* DeviceDescriptor; Is that correct?...
Hey Jim,
Could you help me on how to use std::string in this context? I have never used string classes before. Basically I want my code to do what the following 'sprintf' statement would have...
Yep, but unfortunately it will take me a while to upgrade my compiler. And 'sprintf' is still causing problems. Is there any other workaround? Someone told me that marshalling between a string and a...
Thanks for the reply. I made a few changes to the array definitions and am tried to use the 'sprintf_s' statements, but I keep getting the following error on the 'sprintf_s':
error C3861:...
Hello,
I am working on a program for instrumentation hardware using Visual Studio C++ on the .NET 2003 framework. The code would work fine on XP, but we're trying to get everything on Windows 7....