|
-
Oct 4th, 2010, 10:07 AM
#1
Thread Starter
Hyperactive Member
Convert C Macro & Union to VB
I have the below C code I want to convert to VB. How do I convert the macro and union over?
c--------------
#define bf_N 16
#define S(x,i)(bf_S[i][x.w.byte##i])
union aword {
unsigned long word;
unsigned char byte [4];
struct {
unsigned int byte3:8;
unsigned int byte2:8;
unsigned int byte1:8;
unsigned int byte0:8;
} w;
};
vb-------------
Public Const bf_N As Integer = 16
Public Const S(x,i)(bf_S[i][x.w.byte##i])As ???????
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|