Few Basic Questions!
-
Hi Im a beginner in Windows Programming Enviroment Couldnt understand the reason for following:
1. Why are we suppossed to write WINAPI in WinMain declaration?
2. What is meant by CALLBACK?See u soon!
Spread wat u Know!
-
Hi Im a beginner in Windows Programming Enviroment Couldnt understand the reason for following:
1. Why are we suppossed to write WINAPI in WinMain declaration?
2. What is meant by CALLBACK?See u soon!
Spread wat u Know!
-
Hi Im a beginner in Windows Programming Enviroment Couldnt understand the reason for following:
1. Why are we suppossed to write WINAPI in WinMain declaration?
2. What is meant by CALLBACK?See u soon!
Spread wat u Know!
-
Hi Im a beginner in Windows Programming Enviroment Couldnt understand the reason for following:
1. Why are we suppossed to write WINAPI in WinMain declaration?
2. What is meant by CALLBACK?See u soon!
Spread wat u Know!
Cmania wrote:
Why are we suppossed to write WINAPI in WinMain declaration?
WINAPI
is defined as __stdcall (Don't remember where it is declared, but I am sure). Here[^] is a nice article on calling conventions.Cmania wrote:
2. What is meant by CALLBACK?
Read about callback functions here[^]
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா
-
Cmania wrote:
Why are we suppossed to write WINAPI in WinMain declaration?
WINAPI
is defined as __stdcall (Don't remember where it is declared, but I am sure). Here[^] is a nice article on calling conventions.Cmania wrote:
2. What is meant by CALLBACK?
Read about callback functions here[^]
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா
-
brahmma wrote:
WINAPI is defined as __stdcall (Don't remember where it is declared, but I am sure). Here[^] is a nice article on calling conventions
It was written in some book that is replaces FAR PASCAL. Is it a mere directive?
Spread wat u Know!
Cmania wrote:
It was written in some book that is replaces FAR PASCAL.
True. From MSDN: The __pascal, __fortran, and __syscall calling conventions are no longer supported. You can emulate their functionality by using one of the supported calling conventions and appropriate linker options. WINDOWS.H now supports the
WINAPI
macro, which translates to the appropriate calling convention for the target. UseWINAPI
where you previously usedPASCAL
or __far __pascal.Cmania wrote:
Is it a mere directive?
From MSDN: WINAPI is Calling convention for system functions. This type is declared in WinDef.h as follows:
#define WINAPI __stdcall
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா
-
Hi Im a beginner in Windows Programming Enviroment Couldnt understand the reason for following:
1. Why are we suppossed to write WINAPI in WinMain declaration?
2. What is meant by CALLBACK?See u soon!
Spread wat u Know!
Both of there are macros that can be defined differently on different platforms so that the same source code can be used on each.
Steve