Click here to Skip to main content
12,406,795 members (61,737 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: .NET .NET4
Hi all

I have the following c++ code ( library )..


typedef struct bioapi_hrs_bir
{
    BioAPI_BIR_HEADER  Header;
    BioAPI_BIR_BIOMETRIC_DATA_PTR BiometricData;
    BioAPI_DATA_PTR Signature;
} BioAPI_BIR, *BioAPI_BIR_PTR;
 

 

typedef struct bioapi_bir_header
{
    uint32 Length;
 
} BioAPI_BIR_HEADER, *BioAPI_BIR_HEADER_PTR;
 

typedef uint8 BioAPI_BIR_BIOMETRIC_DATA, *BioAPI_BIR_BIOMETRIC_DATA_PTR;
 
typedef struct bioapi_data
{
    uint32 Length; /* in bytes */
    uint8 *Data;
} BioAPI_DATA, *BioAPI_DATA_PTR;
 
typedef uint32 BioAPI_RETURN;



The function which is in unmanaged Dll to which i shud send the values :

now the problem is how can i send values of datatype BioAPI_BIR_PTR from c# code

BioAPI_RETURN BioAPI
 ConvertTemplate(
        const BioAPI_BIR_PTR        Template,
        uint8*                      ApplicationKey,
        uint32                      EncryptionKind,
        uint8*                      EncryptionKey,
        uint32                      ConvertType,
        BioAPI_BIR_PTR              NewTemplate
    );

Thanks in advance
darshan
Posted 26-Nov-12 1:50am
Updated 26-Nov-12 1:56am
v2

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Time to start reading! Passing Structures to unmanaged code[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160730.1 | Last Updated 26 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100