//file : shddll.c #include int zomg(void){ printf("Zomg\n"); } // file main.c #include #include HINSTANCE shddll; int main(int argc, char **argv) { int ret; int (*func)(void); shddll = LoadLibraryEx("shd.dll",NULL,0); if (shddll == NULL) { puts("unable to load dll"); return 1;} func = GetProcAddress(shddll,"zomg"); if(func == NULL ) { puts("Failed to find function"); return 1;} ret = func(); FreeLibraryAndExitThread(shddll,0); return 0; }