gsronline wrote:
>
> Hi
>
> I am converting an application from VS6 to VS7 (vs2003). There are some
> code which are asm. When I am trying to compile the files, its throwing
> errors. please let me know how to tell the compiler to treat them as ASM
>
> eg:
> #define BREAK asm __volatile__ (" break ");
>
> //compiler throws this error:
> error C2061: syntax error : identifier '__volatile__'
>
> thanks
> Rajesh
>
>
Visual C++ doesn't use the AT&T assembler that GCC uses. When you inline
ASM in Visual C++, it is using MASM, and you have to type the "__asm"
keyword.
#define BREAK __asm instruction;
[Non-text portions of this message have been removed]