Click here to Skip to main content
15,896,153 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Dears,
I have the following method in c++
C#
typedef struct
{
    int iCashValue;
    char sCountryCode[5];
}g_BillTable;



extern "C" int WINAPI GetBillTable(BYTE iAddr, g_BillTable *cpBillTable);

and i want to call it from C#
like this
C#
using System.Runtime.InteropServices;

namespace CashAcceptorModule.Classes
{
   static class CashAccWrapperService
    {


[DllImport("Cashcode.dll")]
public static extern int GetBillTable(byte iAddr, g_BillTable* cpBillTable);

what shall i put as parameters for g_BillTable* cpBillTable

Regards,
Posted

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