I have been investigating C-style pointers in Visual Basic .NET for a while now. I have come across http://support.microsoft.com/kb/199824?wa=wsignin1.0 but I have no idea if that is the right thing or how to apply it. I have written a simple pointer using program in c and I would like it converted line for line into Visual Basic with comments wherever necessary. Here's the C:
int main()
{
int *myNumber=3; //the * means it's a pointer
doubleIt(*myNumber); //we use the void, the * means it returns a value not address
printf("%d",myNumber); //we print the variable
return 0; //we terminate the function
}
void doubleIt(int input)
{
input*=2; //double the input
}