rogerson@PEDEV.Columbia.NCR.COM (Dale Rogerson) (08/21/90)
I am evalutating the Zortech C++ compiler for Windows programming
and noticed some things which are making the building of Windows
specific class libraries difficult. The main problem is that the
C++ part of the compiler does not recognize the extended keyword
'pascal' requred for Windows programming. The C compiler does
recognize this keyword. I had to use the following code in
order to get my program to compile and link:
extern "Pascal" {
#include "windows.h"
}
extern "Pascal"
int WinMain( HANDLE, HANDLE, LPSTR, int )
{
...
}
Using 'extern "Pascal"' is fine for both of these cases. However,
it can only be used at file scope and not class scope.
So I have found no clean way to do the following:
class Wnd
{
public:
long PASCAL WinProc( HANDLE, WORD, WORD, LONG );
} ; //I always forget these semicolons.
I am using version 2.01 of the compiler. Is this "fixed" in versions
2.06 or 2.1 of the compiler?
Thanks
-----Dale
Rogerson-----bright@Data-IO.COM (Walter Bright) (08/23/90)
In article <3220@PEDEV.Columbia.NCR.COM> rogerson@PEDEV.Columbia.NCR.COM (Dale Rogerson) writes:
< I am evalutating the Zortech C++ compiler for Windows programming
< and noticed some things which are making the building of Windows
< specific class libraries difficult. The main problem is that the
< C++ part of the compiler does not recognize the extended keyword
< 'pascal' requred for Windows programming.
< I am using version 2.01 of the compiler. Is this "fixed" in versions
< 2.06 or 2.1 of the compiler?
Yes. Also, a number of changes were made to 2.1 in order to support the
changes in Windows 3.