Copy link to clipboard
Copied
Hi,
do you know if it is possible to invoke an external dll into an FDK 8.0 API Client?
In my client code I invoke an external dll function, my client compiles, but when I start FM I receive the error message "Cannot initialize API Client....Check for errors in the APIClient section of...".
If I comment in my client code the line in wich I invoke the external dll and than recompile, FM and my client work perfectly...
Thanks,
Stefano
Copy link to clipboard
Copied
Hi Stefano,
I probably shouldn't respond because I doubt I'll really be able to answer the question. But I have two questions myself:
- What exactly to you mean by "invoke and external DLL"? Can you post some sample code?
- Are you trying to do this within F_ApiInitialize(), hence the failure to start up?
Russ
Copy link to clipboard
Copied
Hi Russ,
with "invoke an external dll" I mean that I have to wite a log file to register my fdk client events and to do this I have to use an external dll wich exposes some functions to write to a common log file. I have imported the external dll in my client project and at the beginning of client code I have included the dll header file:
#include "LogDll.h"
Then I've tried to invoke a LogDll function (not within F_ApiInitialize (), but in a custom dialog box event):
int retval=LogDllFunction();
The code compiles, but if I start FM, I receive the message error. If I comment the line above, FM and my client start normally.
Thanks,
Stefano
Copy link to clipboard
Copied
Stefano,
As I suspected, I don't have the expertise to answer the question. Sorry about that. Maybe someone else here, or perhaps the Yahoo frame_dev forum can help.
http://groups.yahoo.com/group/Frame_dev
Russ
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more