CDLL Not working for me
CDLL Not working for me
I^m trying to use the CDLL function, but am having problems. Am using Report Writer 8. I create my dll with the single exported function: ____BOOL my_func ( LPSTR s )__{___strcpy ( s, "Hello there" );___return TRUE;__}____But when I create my UDF DLLTEST(C_s) = CDLL(^my.dll^, ^my_func^, s), then create my calculated field which calls DLLTEST(^junk string^), all I get on my report are asterisks in that field. Obviously I am doing something wrong in the creation of my dll.____Do I have the function signature right?__Where do I place the dll file so it can be found?__CDECL or STDCALL?____Can someone post a simple sample example to help me get going? __
=> RE: CDLL Not working for me
Nevermind. I discovered that it helps if you export the functions you are trying to call in your dll. ____Working great now!__