User Profile

Collapse

Profile Sidebar

Collapse
profactory
profactory
Last Activity: Nov 30 '09, 03:10 PM
Joined: Nov 24 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Hi all!


    first of all thanks for the tips!

    I've found a solution by using the unsafe method.

    for everyone, who's interested:

    Code:
            [DllImport("key2.dll", EntryPoint = "#4")]
            unsafe public static extern bool measureKey(ref StringBuilder msg, int[] Params,int** Result,int* rSize);
    
                int[] result = new int[7];
    ...
    See more | Go to post

    Leave a comment:


  • pointer to pointer(C style) to int array(C# style)?

    Hi all,

    I have to include a C style DLL into C#. The dll has a function which should give me back a string, an array of integer and a single integer.
    The DllImport looks like this:
    Code:
    [DllImport("key2.dll", EntryPoint = "#4")]
    public static extern bool measureKey(ref StringBuilder msg, int[] Params,byte[] Result,ref int rSize);
    The C# source to call the function:
    Code:
    int[] parameter
    ...
    See more | Go to post
No activity results to display
Show More
Working...