Quantcast
Channel: CodeGuru Forums - C++ and WinAPI
Viewing all articles
Browse latest Browse all 583

function in kernel32 not found ???

$
0
0
so I have a define.h like this
Code:

//define.h
#define MAK(dll, api)                ::api

and a filesystem.cpp file like this
Code:

...............
...............
 if( MAK(kernel32, GetFileSizeEx)(mem->file, &liSize) && liSize.HighPart == 0 )
  {.......}

I'm getting the error
Quote:

||=== Build: Debug in (compiler: GNU GCC Compiler)

error: '::GetFileSizeEx' has not been declared|
note : in expansion of macro 'MAK'
I'm using code::blocks, how do I go about this error?

Viewing all articles
Browse latest Browse all 583

Trending Articles