Hello.
I'm programming a dll for DBpro, but I don't know very well how make it... Ok, my code is the follow:
#include "stdafx.h"
extern "C" __declspec( dllexport )int fps();
//--------
int fps(int fr)
{
return fr;
}
The code in DBpro is:
dll = call dll (1, "fps", (10))
I have guided from this video:
http://www.youtube.com/watch?v=PxiDz4v8ex4
My problem is that I want to pass values from DBpro to my dll, but DBpro reports this error:
Runtime Error 9704 - Could not call DLL function at line 65
Line 65 is where I call the Dll. The error is in "int fr" because the function works very well if I change the code by:
Maybe I'm wrong and the error is in return, I don't know, now I'm confused.
Any help, please?