CDLL Not working for me

Meeting place for R&R customers and clients to share tips and ideas. Post your questions, messages or problems here.
Post Reply
john
Posts: 45
Joined: Tue Oct 10, 2017 12:44 pm

CDLL Not working for me

Post by john » Wed Oct 15, 2003 3:03 pm

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? __

john
Posts: 45
Joined: Tue Oct 10, 2017 12:44 pm

=> RE: CDLL Not working for me

Post by john » Wed Oct 15, 2003 4:02 pm

Nevermind. I discovered that it helps if you export the functions you are trying to call in your dll. ____Working great now!__

Post Reply