Hi all,
I found a solution to my linking problem, but it's a bit scary and I'm
wondering if there is a simpler way to do this:
The solution comes from the following article:
http://www.emmestech.com/moron_guides/moron1.html
To get ghc to link my dll properly I had to do the following:
1.
Hello Olivier,
Thursday, May 15, 2008, 1:26:28 AM, you wrote:
RFC_RC _stdcall RfcUTF8ToSAPUC(const RFC_BYTE *utf8, unsigned
utf8Length, SAP_UC *sapuc,
unsigned *sapucSize, unsigned *resultLength, RFC_ERROR_INFO *info)
foreign import ccall unsafe sapnwrfc.h RfcUTF8ToSAPUC
On Wed, May 14, 2008 at 5:46 PM, Bulat Ziganshin [EMAIL PROTECTED]
wrote:
use stdcall instead of ccall in Haskell too. afair, depending on
calling conventions, different prefixes/suffixes are used when
translating C function name into assembler (dll) name
Oops, sorry I copied the wrong line