Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Invoking external dll into FDK API Client

Community Beginner ,
Jun 18, 2010 Jun 18, 2010

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

524
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Jun 18, 2010 Jun 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 21, 2010 Jun 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Jun 21, 2010 Jun 21, 2010
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines