Home  >> Developers Forum  >> Help with VB.NET Code please

championc

Add new friend

Join Date:2012/10/17

Location:

Posts:3

Posted at 2015-06-22 12:36:53
[ Help with VB.NET Code please ]

Hi all,


Can someone help me with VB.NET code.  I am trying to understand to define SDK Section 6.2.3.92

typedef struct _BtSdkMAPGetMsgParamStru {

 BTUINT8 msg_handle[BTSDK_MAP_MSGHDL_LEN];

 BTUINT8 charset;

 BTBOOL attachment;

 BTUINT8 fraction_req;

 BTUINT8 fraction_deliver; } 

BtSdkMAPGetMsgParamStru, *PBtSdkMAPGetMsgParamStru;


So I have the following in VB.NET

Public Structure BtSdkMAPMsgStatusStru
  Public msg_handle(BTSDK_MAP_MSGHDL_LEN-1) As Byte
  Public status_indicator As Byte
  Public status_value As Byte
End Structure 


However, where do I get the value for BTSDK_MAP_MSGHDL_LEN or how should I define it ?  It's only mentioned in the SDK as the Array parameter.

Clock

Add new friend

Join Date:2012/11/8

Location: United States of America

Posts:1

Posted at 2015-12-10 05:39:36

#define BTSDK_MAP_MSGHDL_LEN 20


(from SDK sample)

poonam

Add new friend

Join Date:2020/2/14

Location: India

Posts:0

NOTE:
1.The reply should be more than 20 characters.
2.Image Size: less than 1MB, max pixel: 300 * 300.