• Saves Valuable Time
  • Trusted Accuracy for 12 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.     


Copyright © 1997 – 2017 Tangible Software Solutions Inc.