Skip to main content
Participating Frequently
June 18, 2010
Question

Invoking external dll into FDK API Client

  • June 18, 2010
  • 3 replies
  • 522 views

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

    This topic is closed to new replies. Start a new post to keep the conversation going.

    3 replies

    Legend
    June 18, 2010

    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

    Stemen82Author
    Participating Frequently
    June 21, 2010

    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

    Legend
    June 21, 2010

    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