Ok, to start... I am very unfamiliar with c and c++. I have a simple app written in C and I am trying to convert it to vb.net. I am just wondering about a structure that is in the file. this is the structure.
I can convert it for the most part, but that function (if that is what it is) confuses me.Code:struct Packet { int size; int (*realFunc)(void *, void *, void *, unsigned char *, int, void *); unsigned int repeat; unsigned char buf[2048]; };
This is what I have so far
What I am wondering about is the realFunc variable. Is this a function within a structure? also what does void * mean. I was under the assumption tha void was similar to declaring a sub in vb so, this really confuses me. Thanks to anyone that can helpCode:Private Structure Packet Dim size As Integer Public Function realFunc(ByVal val1 As Object, ByVal val2 As Object, _ ByVal val3 As Object, ByVal SomeByte As Byte, ByVal Size As Integer, _ ByVal val4 As Object) As Integer 'I defined them as just objects for lack 'of an understanding of what they are End Function Dim Repeat As UInt32 Dim buf() As Byte End Structure
B






Reply With Quote