I'll split the points if need be.
First, I need to export an enumerator from a dll. How is this done? In the source and in an ODL file.
Second, in an odl file, how do you specify default function parameters? The API has, among others, two default parameters of type int. In the calling application, if I don't specify them, the call goes to the dll with 0 values for the int parameters. What I want is for those parameters to be left off completely. I tried to specify the defaults in the odl file, but it won't take them, or I'm doing it wrong.
The dll is written in C++, but is used from VB apps. It is VB friendly so far, and I like to keep it that way.
The API looks like this
__declspec(dllexport) int _stdcall FunctionName(const char x, const char y, const char z, const int i = lcDefault, const int j = ccDefault);
In the ODL file it looks like this
int _stdcall FunctionName(LPSTR x, LPSTR y, LPSTR z, int i, int j);