hi,
i wrote a c code which calls a function from mytest,dll
this function returns the character "s" .
this is my code :
#include<stdio.h>
#include<windows.h>
int main(){
HANDLE ldll;
char (*str)(void);
ldll = LoadLibrary("mytest.dll");
str = GetProcAddress(ldll, "str");
printf("result : %c", str);
}
and i get this errors :
warning C4133: 'function' : incompatible types - from 'char [11]' to 'LPCWSTR'
warning C4047: 'function' : 'LPCSTR' differs in levels of indirection from 'char (__cdecl *)(void)'
warning C4024: 'GetProcAddress' : different types for formal and actual parameter 2
error C2440: '=' : cannot convert from 'FARPROC' to 'char (__cdecl *)(void)'
please help me ,
thx in advanced.