Well, I read the manual, but it's for C++ and I have C
That's the source of the dll.dll:
Code:
#define WIN32_LEAN_AND_MEAN 

#include <stdio.h>
#include <windows.h>
#include <string.h>


extern int __stdcall ret(HWND mWnd, HWND aWnd, char *data, char *parms, BOOL show, BOOL nopause)
{
       if (show) sprintf(data,"echo -a Do not hide of me :)");
       else sprintf(data,"echo -a %s",data);
       return 2;
}

int main (void)
{
    return 0;
}

Then the dll.def:
Code:
LIBRARY dll
EXPORTS
ret = _ret@24

I tried to use the c++ code from nLINKn, but was useless. frown. Any C manual or at least some help ?

EDIT: Forgot to say, I compile the file like that:
Quote:

c:\dev-cpp\bin\gcc.exe "C:\Documents and Settings\x\My Documents\dll.c" -o "C:\Documents and Settings\x\My Documents\dll.dll" -g3 -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib" -g3

Maybe it's compilling it as exe instead of dll ?

Last edited by stefys99; 18/08/05 03:35 PM.