Re: /Za option

Tech-Archive recommends: Fix windows errors by optimizing your registry



I am not sure you read what I wrote : what I'm trying to find out is
what is left out and what gets in when you use /Za. Za is advertised to
disable MS extensions and is supposed to be used to check for
portability problems, and portability assumes - of course - you will
not be including any windows specific headers. To be more specific, I
expect the compilation of the following program to fail (note there are
no windows spec. hdrs ):

#include <iostream>
class __declspec(novtable) base
{
public:
virtual void beep() {}
};
class test : public base
{
public
void beep() {};
};
int main(void)
{
test *p = new test();
p->beep();
return (EXIT_SUCCESS);
}


John Carson wrote:
> "pba" <apbogdan@xxxxxxxxx> wrote in message
> news:1130249549.422097.14990@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > With VS 2003 it builds just fine, it accepts __declspec, xor and
> > __COUNTER__ - to name just a few extensions.
>
> I am not sure if you read what I wrote. If I attempt to build the following
> using /Za
>
> #include "windows.h"
> int main()
> {}
>
> then I get 49 errors.
>
> It is true that you can still use some Microsoft specific code with /Za.
> That, however, falls a long way short of allowing you to do most sorts of
> Windows programming.
>
> --
> John Carson

.



Relevant Pages

  • Re: LogonUser()
    ... // This sample can be run only on Windows XP. ... String lpszPassword, ... int dwLogonType, int dwLogonProvider, ref IntPtr phToken); ... private unsafe static extern int FormatMessage(int dwFlags, ref IntPtr ...
    (microsoft.public.dotnet.security)
  • Re: bringing Pocket Internet Explorer (PIE) to foreground
    ... Peter Foot ... the PIE window did not come to the foreground on the ASUS ... >> Windows Embedded MVP ... >>> public static extern int FindWindow (string lpClassName, ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: W2k/XP hangs with "TAB BS BS" on console
    ... >> console compiler) was executed: ... Now in this function we can see if we disassemble that 'int 2Eh' is called, ... _KiSystemService copies the parameters from the Ring 3 stack which EDX ... NT has this problem in all service packs, Windows 2000 has it and XP seems ...
    (NT-Bugtraq)
  • Re: input/output sound level calibration
    ... Inialisation et configuration mixer de la carte son ... sound_mix_apparatus (void) ... unsigned int nver; ... standard Windows pop-up mixer since it doesn't show the ...
    (comp.sys.ibm.pc.soundcard.tech)
  • RE: Would somebody be kind enough to provide a working timestamp code?
    ... anyway, and not a windows application, in which case you should have started ... > int timezone, _timezone, altzone; ... > static struct tm wce_SYSTEMTIME2tm ...
    (microsoft.public.vstudio.development)