Overcoming "C4071 No Function Prototype Given" Warning (69898)
The information in this article applies to:
- Microsoft Windows Software Development Kit (SDK) 3.0
- Microsoft Windows Software Development Kit (SDK) 3.1
This article was previously published under Q69898 SYMPTOMS
Code that is compiled using the Microsoft C compiler's warning level 3
(/W3) or higher and that calls functions through FARPROC pointers causes
the Microsoft C compiler to report warning C4071, "No Function Prototype
Given."
CAUSE
Pointers to functions are commonly used when an application explicitly
loads dynamic-link libraries (DLLs) through the Windows LoadLibrary
function. Function pointers declared with FARPROC do not inherit function
prototype information.
RESOLUTION
Modify the function pointers declarations to include function prototype
information.
| Modification Type: | Major | Last Reviewed: | 10/30/2003 |
|---|
| Keywords: | kb16bitonly KB69898 |
|---|
|