What I want to know is if I can call a function defined in a C++ class in Visual Basic through a .dll generated from VC++2010?
Is this possible, or do I need to define the .dll with C++ raw functions outside of a class?
For example, my class looks like this--
//...
typedef class EquationSolver{
private:
static int mode;
static bool isProperEquation(string);
static string _solve(string);
static enum {MODES_SUPPORTED = 1};
public:
static __declspec(dllexport) string solve(string);
static __declspec(dllexport) void setMode(string);
static __declspec(dllexport) void setMode(size_t);
} ES;
int ES::mode = 0;
//...
Will I be able to call any of the public functions in VB, or do I have to write it using C-like function definitions (basically outside of a class and global variables)?