dllimport in C
Jun 27, 2012 at 10:01pm
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 );
}
|
Jun 28, 2012 at 9:43am
Last edited on Jun 28, 2012 at 9:45am
Topic archived. No new replies allowed.