🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: att.lang.c++
Article #244

easy question from a beginer!

#244
From: bastards
Date: Mon, 27 Jan 1997 00:00
28 lines
1175 bytes
I am trying to use an Inline Assembly command in my Borland C++ 3.1 (DOS)
it looks somethings like that:

class test{
   void ErrorProc(){
     int i;
     asm{
         mov   ax,0x45;
     }
   }
};

main(){
};

But when I try to compile, it say :

Error INLINE.CPP 4: Inline assembly not allowed in inline and templates 
functions.

Is it because BC++ 3.1 is unable to put Inline ASM into a Object Method? 
Or do I use it badly ... I know that it work just fine on Symantec 6.11..
But I do want to CODE in BC++!!  Please help me!

	Thanks
-- 
Dziablo@lords.com
Technical Details
Message-ID: <01bc0cab$86fe87a0$3464fdcf@pboucher.videotron.ca>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 108b44,850a1f0a5bb44702,start
X-Google-Attributes: gid108b44,public
X-Google-Thread: 10d4ba,850a1f0a5bb44702,start
X-Google-Attributes: gid10d4ba,public
X-Google-Thread: 109fba,850a1f0a5bb44702,start
X-Google-Attributes: gid109fba,public
From: "bastards" <bastards@ntic.qc.ca>
Subject: easy question from a beginer!
Date: 1997/01/27
Message-ID: <01bc0cab$86fe87a0$3464fdcf@pboucher.videotron.ca>
X-Deja-AN: 212616017
organization: The Happy Greloze Team
newsgroups: att.lang.c++,comp.lang.c++,comp.sys.lang.c++