I have a bit of C code that I need to convert to VB, but I'm not sure how exactly. If anyone is familiar with both and can help that would be great.

The bit of C code is
...
...
struct {
short ic_product[5]; /* binary encoded product name */
short plant_area;
short alias_flag;
} pr_send_buf;
...
...
...
strncpy(pr_send_buf.ic_product, ac_pc, 10); /* ac_pc would equate to a Product Code of some sort */



Does anyone have any idea of how to write the same thing in VB?

Thanks in advance,
Kevin