• Saves Valuable Time
  • Trusted Accuracy for 14 Years
  • 15-Day Money-Back Guarantee

VB Equivalent to C++ Function Pointers

A C++ function pointer corresponds to a VB delegate.

C++ VB
//C++11 syntax:
using MyDelegate = void (*)(int i);

//pre-C++11 syntax:
typedef std::function<void (int i)> MyDelegate;
Public Delegate Sub MyDelegate(ByVal i As Integer)

Use C++ to VB Converter to convert from C++ to VB.NET.     

Additional resource: VB.NET and C++ Equivalents

Copyright © 1997 – 2018 Tangible Software Solutions, Inc.