Path: utzoo!attcan!uunet!aplcen!uakari.primate.wisc.edu!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!hubcap!ncrcae!PEDEV!rogerson From: rogerson@PEDEV.Columbia.NCR.COM (Dale Rogerson) Newsgroups: comp.windows.ms Subject: Zortech C++ and Windows Programming Message-ID: <3220@PEDEV.Columbia.NCR.COM> Date: 20 Aug 90 18:20:18 GMT Organization: NCR Corp., Engineering & Manufacturing - Columbia, SC Lines: 38 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-----