I've attempted build and use the Sample Custom Report Functions outlined in the Software Developer Kit Developer Guide in Chapter 22. I've followed on the steps in building the DLL placing it in the default bin directory, placing the provided XML files in the functions directory and then restarting the Cognos Service.
I'm receiving the following error when using the function.
CRX is unable to load the library: C:/Program Files/ibm/cognos/c10_64\.\bin\.\CRXSampleSDKFunctions.dll.
I've also followed the resolution steps outline here http://www-01.ibm.com/support/docview.wss?uid=swg21342971.
Any suggestions?
Environment: Window Server 2008 and Cognos 10.1.1 64-bit.
DLL is now loading correctly. I was using Visual Studio 2010 to compile the DLL. With some trial and error I found I had to change the "Use of MFC" from "Use Standard Windows Libraries" to "Use MFC in a Static Library" within the Project Properties.
My next question is, why are the functions only accessible when creating a Layout calculation? I'd like to be able use the custom functions within a Query Calculation or Data Item Expression.