I have not used Dev-C++ in a very long time and thought I would give it a try again. Anyway I am having issues with the following function prototypes for a DLL function.
// exported function prototype
extern "C" DLLIMPORT char * __cdecl Init(int Handle, exteventproc Addr, char * KeyString, int &maxpar, int &bufsize);
When placed in my header file it complains about a couple of things. First it complains about the int &maxpar Parameter? "syntax error before '&' token" Grant it this code is from an old version of Dev-C++ but I would have thought that this would compile in the new 4.9.9.2 version too?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When placed in my header file it complains about a couple of things. First it
complains about the int &maxpar Parameter? "syntax error before '&' token"
Grant it this code is from an old version of Dev-C++ but I would have thought
that this would compile in the new 4.9.9.2 version too
I have not used Dev-C++ in a very long time and thought I would give it a try again. Anyway I am having issues with the following function prototypes for a DLL function.
// external callback
typedef void __cdecl (*exteventproc)(char * eventtype);
// exported function prototype
extern "C" DLLIMPORT char * __cdecl Init(int Handle, exteventproc Addr, char * KeyString, int &maxpar, int &bufsize);
When placed in my header file it complains about a couple of things. First it complains about the int &maxpar Parameter? "syntax error before '&' token" Grant it this code is from an old version of Dev-C++ but I would have thought that this would compile in the new 4.9.9.2 version too?
hi,
When placed in my header file it complains about a couple of things. First it
complains about the int &maxpar Parameter? "syntax error before '&' token"
Grant it this code is from an old version of Dev-C++ but I would have thought
that this would compile in the new 4.9.9.2 version too
regards,
phe9oxis,
http://www.guidebuddha.com