Wednesday, September 21, 2011

Re: libcall problem under windows

My problem was only that absolute path to the dll wass missing.

Now, i have another pb...is it possible to call dll that embed
threaded tasks ?

I have tried this little example and it seems to make memory leaks
(gvim fails)
// -------- Samples
//
static DWORD WINAPI myThreadProc(void* parmeter)
{
while(true)
{
out.append("running");
Sleep(1000);
}
return 0;
}

extern "C" __declspec(dllexport)
char * HelloWorld(char * param)
{
CreateThread(0, 0, myThreadProc, 0, 0, 0);
return Out(out.c_str());
}

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment