hello ,
this is my C code :
Code:#include<stdio.h> #include<windows.h> int main(){ HANDLE ldll; typedef int (*str)(char f); str Str; ldll = LoadLibrary(TEXT("mytest.dll")); Str = (str)GetProcAddress(ldll, "str"); char k = 's'; printf("result : %d", Str(k)); }
and i get these errors :
Error 1 error C2143: syntax error : missing ';' before 'type'
Error 2 error C2065: 'k' : undeclared identifier
i couldn't find out what the problem is .