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

Building DLL for FDK API

Guest
Aug 30, 2013 Aug 30, 2013

Copy link to clipboard

Copied

In the FDK Programmer's Guide, it says

<quote> 

Compiling and registering your own FDK clients

....

With Code Generation still selected, choose Single-Threaded from the Runtime Library

popup list.

</quote>

However, in Visual Studio, there are only 4 options for Multi-threaded and no option for Single-threaded.  I'm running Visual Studio Express 2010, v10.0.30319.1.  The instructions are quite detailed, so I think I am looking in the correct place.

Any suggestions?

TOPICS
Scripting

Views

904

Translate

Translate

Report

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 ,
Sep 03, 2013 Sep 03, 2013

Copy link to clipboard

Copied

Hi fmEveryDay,

First, sorry for the delay. I like fm Every Day too but it was a three-day US holiday and I stayed away from the computer.

Indeed, the documentation is out of date. Assuming FDK11, you need to set this to "Multi-threaded DLL (/MD)". That is the correct setting and no other setting will work. Older versions of the FDK use a different setting, but I'm guessing you are on FDK11.

It can be tricky to get a project set up correctly, so let me know how it goes. I use Express version 2010 as well, so I know it can work. I seem to recall something about a requirement to manually create a resource file when using Express. But I'll leave it here for now and see how you get along.

Russ

Votes

Translate

Translate

Report

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
Guest
Sep 03, 2013 Sep 03, 2013

Copy link to clipboard

Copied

That’s nice to know. I’m using FDK9 at the moment, but the winds of change are blowing toward FM11, so I will probably start the basics that I need and then port it when the time comes. The resource file was tricky because there is no resource editor in VS Express. I think I got it (it builds without error, so it must be right), but I have not inspected the resulting DLL yet.

Kevin

Votes

Translate

Translate

Report

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 ,
Sep 03, 2013 Sep 03, 2013

Copy link to clipboard

Copied

Kevin,

For all versions of the FDK before 11, I use Multi-threaded (/MT). I use VS2008 for all of those, though. I am confident that the /MT switch builds a robust DLL, but I won't say that /MD can't work. I've just never used it. If the DLL compiles without errors and doesn't crash FM when it loads, I'd say you are probably in good shape.

Russ

Votes

Translate

Translate

Report

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
New Here ,
Feb 05, 2015 Feb 05, 2015

Copy link to clipboard

Copied

LATEST

The FDK12 Programmer's Guide has been out for over a year now, since January 2014.  That "Compiling, Registering, and Running FDK Clients" section in the new guide still says to select Single Threaded with Visual Studio 2010.  Heck, Microsoft pulled the Single Threading option in Visual Studio 2005.  I'm wondering how Adobe ever validates its documentation.  And what do they use to build the FDK libraries in Single Threaded mode in the first place? 

So, yes I have to still put up with the "defaultlib "LIBC" conflicts with use of other libs;" warning. 

Votes

Translate

Translate

Report

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