Search Result

Collapse
9 results in 0.0042 seconds.
Keywords
Members
Tags
unmanaged
  •  

  • How to pass const unsigned char *var to C++ unmanaged DLL

    I'm using extern keyword to use function in C++ unmanaged DLL
    one of the function parameters is const unsigned char *var,
    I tried to pass that parameter as a string , Byte array but that was useless.

    Would you please help me to find the correct data type to pass that parameter?

    Code:
    [DllImport("DMT.dll")]
            static extern int RequestData(int comm_type, int conn_num, int slave_addr, int
    ...
    See more | Go to post

  • C# use of Unmanaged C Library, run time error when reading file

    Hi,

    I have an unmanaged C library that has calculation functions.
    The function has to open a binary file to get data reference.
    Then returns a "ReadError" or the result in a User defined structure

    Code:
    MyStruct Calculate(int itemid, int input1, int input2, double input3)
    {
    //initialize variable
    MyStruct *resultAns;
    double item1_result = 0;
    double item2_result
    ...
    See more | Go to post

  • Chris Parker
    started a topic Can I call C# code from unmanaged C++ code?
    in .NET

    Can I call C# code from unmanaged C++ code?

    I have a C++ application that needs to call a C# API. Unfortunately I can't utilize the /clr compiler option, so I have to find another way to use the API in the unmanaged C++ code.

    Any thoughts on how to do this?

    Thanks
    See more | Go to post

  • drcrs
    started a topic C# Compact framework Managed and Unmanaged code
    in C

    C# Compact framework Managed and Unmanaged code

    Hi everyone,
    I have a dll in c++ and I need to expose some functions to calling from a mobile solution, and I have problems sending a unicode string value

    example code:

    -----------------------------------
    [c++ Test.dll code]:

    __declspec(dlle xport) BOOL IsSupportedFile Type(LPWSTR FileType);

    BOOL IsSupportedFile Type(LPWSTR FileType)
    {
    MessageBox(NULL , FileType,...
    See more | Go to post

  • DopeyinIdaho
    started a topic C# unmanaged data structure declaration

    C# unmanaged data structure declaration

    We have a lot of legacy code written in C/C++ that maintains data in shared memory structures. In the C/C++ implementations , for a lot of functions, we get a pointer to the shared memory address then cast that pointer to the type of structure that is contained in that shared memory.

    I have a need to "port" the same interface to C#. The requirements are that we cannot change any of the C/C++ implementation and the interfaces...
    See more | Go to post

  • ocp1000
    started a topic Integrate into windows error messages
    in .NET

    Integrate into windows error messages

    Hello,
    I'd like to integrate my program into windows error message, so when an error message pops out, a button will appear on it.

    I know it requires the use of un-managed code, yet I can't seem to find any information about it.

    Any help will be appreciated.

    John
    See more | Go to post

  • Suzan YILDIRIM
    started a topic need help importing the native DLL??

    need help importing the native DLL??

    Hi,

    i have a native or an unmanaged DLL that i will use this DLL to conrol an external device and i have tried to call it into c# but i have trouble with non-Blittable types...i have tried marshal these types but i'm not sure whether i achieved it..??

    thanks in advance

    Suzan
    See more | Go to post

  • couturep
    started a topic How to get pointer of an array of struct

    How to get pointer of an array of struct

    Hi,
    I need your precious time to help me to resolve this damn problem i have.

    I want to get a pointer from an array of struct.

    CODE :

    [StructLayout(La youtKind.Sequen tial, CharSet = CharSet.Ansi, Pack = 1)]
    unsafe public struct TECCPARAM
    {
    [MarshalAs(Unman agedType.ByValA rray, SizeConst = 64)]
    unsafe public char[] ParamStr;
    ...
    See more | Go to post

  • sganeshcse
    started a topic VC++ Unmanaged DLL in C#.net
    in .NET

    VC++ Unmanaged DLL in C#.net

    Hi All..

    I have a VC++ unmanaged dll in the shared drive. I have to call that one in to my C# application which is residing on my local hard drive.

    Clients restrictions are below

    1) We should not register Vc++ dll on the local machine
    2) We should not have the local copy of the dll

    I am struck on this for last 5 days...I am not able to find the solution....

    Please someone help...
    See more | Go to post
Working...