dllimport in C
Hi.
I want to import a dll file in C.I tried this.But this is not true:
1 2 3 4 5 6 7
|
#include <stdio.h>
int __declspec(dllimport)("user32.dll")MessageBox(void* hWnd, wchar_t* lpText, wchar_t* lpCaption,
unsigned int uType);
int main(){
MessageBox( 0, L"Hello world!", L"Greetings", 0 );
}
|
Last edited on
Topic archived. No new replies allowed.