Click here to Skip to main content
15,867,765 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all

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


C++
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

C#
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
Updated 26-Nov-12 1:56am
v2

1 solution

Time to start reading! Passing Structures to unmanaged code[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900