habe mir eine Test - dll mit dem bcc zusammen gebaut:
Code: Alles auswählen
/* add.c for dll with command #BCC -WD add.c */
#include <stdio.h>
int maxi(void)
{
printf("Hallo World\n");
return(1);
}
Code: Alles auswählen
OpenConsole()
Input()
a.l = 100
If(0 = OpenLibrary(1, "add.dll"))
Print("dll not found!")
Else
a = OpenLibrary(1, "add.dll")
Print(Str(a)+" ")
If (0 = IsFunction(1, "maxi"))
Print("function not found!")
Else
a = CallCFunction(1, "maxi")
Print(Str(a))
EndIf
EndIf
CloseLibrary(1)
Input()
CloseConsole()
