• Saves Valuable Time
  • Trusted Accuracy since 2004
  • 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:
typedef std::function<void (int i)> MyDelegate;

//pre-C++11 syntax:
using MyDelegate = void (*)(int i);
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 © 2004 – 2021 Tangible Software Solutions, Inc.