Can some one give me an example how to pass a string variable to win32 dll function.
dll function is written in C and it accept a char*  variable.
when i tried this Im receiving the following error:
[ ] *** Error: Exception in DLL call -- Function GetString: code 0xc0000005, flags 0x0, address 0xf086b6
Silk Test code:
LPSTR GetString(out LPSTR sText)
extern "C" __declspec(dllexport) LPTSTR GetString(BSTR s)
SysReAllocString(&s, TEXT("STRING parameter"));
return TEXT("function retutn string");
another example for you...
LONG GetEmail(in LONG lpPtr ,inout STRING sEmailSubject, inout STRING sEmailBody)
C++ (dll) function:
extern "C" DWORD __declspec(dllexport) GetEmail(lpMapiMessage lpMessage, char* cSubjectString,char* cBodyString)
Did either of the suggestions work for you? It looks like you may be trying to pass a list/array of strings which will probably be more difficult to do with SilkTest.
Hi, This is Maggie, a new member of the forum.
I have problem to call my dll function written by VB from Silk. It said that "Cannot found function in ....dll"
I wonder if the arguments passed were causing problem.
sendEmail (in string s1, in string s1, in string s1,in string s1)
Can anybody help me with the problem, or let me know how to send emails from Silk.
You cannot call vb dll's from SilkTest. There are several command line utilities you can use to send e-mails. Blat being one. You can search this forum for more info.
Have you ever noticed? Anybody going slower than you is an idiot, and anyone going faster than you is a maniac.