Search:

Type: Posts; User: neilc

Search: Search took 0.01 seconds.

  1. Problem using DLL Function imports in VS .NET 2010 C++

    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",...
  2. Thanks Salem for the input. The reason why I'm...

    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...
  3. The code for the header file is: #pragma...

    The code for the header file is:



    #pragma once

    #include "NIDAQmx.h"

    #using <mscorlib.dll>
    #using <system.dll>
  4. Problem with marshalling strings in C++ for VS .NET 2003

    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....
  5. Replies
    10
    Views
    5,213

    My code will have to use the String .NET class....

    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...
  6. Replies
    10
    Views
    5,213

    @tabstop: Thanks. From the code you posted, I...

    @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?...
  7. Replies
    10
    Views
    5,213

    Hey Jim, Could you help me on how to use...

    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...
  8. Replies
    10
    Views
    5,213

    Yep, but unfortunately it will take me a while to...

    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...
  9. Replies
    10
    Views
    5,213

    Thanks for the reply. I made a few changes to...

    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:...
  10. Replies
    10
    Views
    5,213

    Workaround needed for sprintf in Windows 7

    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....
Results 1 to 10 of 11